App Connect

 View Only
Expand all | Collapse all

How to trigger IntegrationServer to reload BAR file if barURL is the same but file is updated

  • 1.  How to trigger IntegrationServer to reload BAR file if barURL is the same but file is updated

    Posted Thu September 08, 2022 03:53 AM
    Hello,

    I want to run IntegrationServers using bar files stored in external endpoints. I am following the BLOG: https://community.ibm.com/community/user/integration/blogs/rob-convery1/2021/06/25/acecc-bars-from-external-endpoints

    My question is, if the BAR file is regenerated (likes DevOps). And I place the newer version to the same HTTP server, under the same path as before. The BarURL would be the same as previous BAR version.

    In such case can IntegrationServer detect the newer BAR version and reload it? How should I trigger IntegrationServer to reload it?

    Regards,
    Eric

    ------------------------------
    ZHI QIANG KOU
    ------------------------------


  • 2.  RE: How to trigger IntegrationServer to reload BAR file if barURL is the same but file is updated
    Best Answer

    Posted Fri September 09, 2022 06:09 AM

    Hello Zhi Qiang Kou,

    Any reason as to why every change to the bar file cannot have a new version number appended to the name? This would then require an update of the barURL key which would trigger an update.
    Just gone over the link you provided and even that as a V1 appended to the bar file name.
    The only alternative I can think of to this is making an unrelated change to the Integration Server C.R. that would trigger an update to the Deployment and pods while maintaining the same bar url. 



    ------------------------------
    Peter Giathi
    ------------------------------



  • 3.  RE: How to trigger IntegrationServer to reload BAR file if barURL is the same but file is updated

    Posted Mon September 12, 2022 09:56 PM
    Thanks Peter for your reply.

    The requirement is from our local customer. They are running DevOps task and do not want to update BAR file name frequently. I will pass the information to customer and get feedback.

    Thanks a lot,
    Eric

    ------------------------------
    ZHI QIANG KOU
    ------------------------------



  • 4.  RE: How to trigger IntegrationServer to reload BAR file if barURL is the same but file is updated

    Posted Tue September 13, 2022 04:40 AM
    You're welcome,

    Just a thought as a continuation to my previous comment.
    If you don't want to change the file name, then maybe keep track of the bar file version using an annotation in the Integration Server C.R.
    So every time an update is made to the bar file, the file name does not change but in order to trigger an update to the Integration Server C.R. an update is made to an annotation under the metadata.annotations key.

    ------------------------------
    Peter Giathi
    ------------------------------