App Connect

 View Only
  • 1.  UDP Override at run time

    Posted Tue November 30, 2021 07:03 AM
    Hello Team,

    Can anybody tell how to do the runtime UDP override in App Connect running in containerized environment. My problem is how to persistence the UDP values after each restart of the contianer.

    ------------------------------
    Anoop C Pillai
    ------------------------------


  • 2.  RE: UDP Override at run time

    Posted Tue November 30, 2021 10:23 AM
    The UDPs will not persist across container restarts.  This is expected.  If you need this type of functionality, a UDP is probably not the best option.  You would need to configure the startup to read the value some from persistent location and then set it.  The problem is of course defining that readable persistent location within a container.  You could define a persistent volume and store a property file there.

    The better option is to replace the UDP with a different option, like an environment variable.

    ------------------------------
    MATTHEW SEGALL
    ------------------------------



  • 3.  RE: UDP Override at run time

    IBM TechXchange Speaker
    Posted Tue November 30, 2021 10:33 AM
    Perhaps a User Defined Policy would fit the use case here? User defined policies can be deployed in a BAR file or provided to the container as an override in the working directory and will therefore be persisted across restart ... You could access them in the flow with Java.

    ------------------------------
    Ben Thompson
    IBM UK
    ------------------------------



  • 4.  RE: UDP Override at run time

    Posted Tue November 30, 2021 11:44 AM
    Thanks Ben Thomson for your reply,

    I will say my requirement.

    1.  I am storing the the provider system URL in one UDP variable.
    2. Suppose if I want change the URL I can update it via CURL command/Rest API.
    3. But in containerized environment , pod/container will restart some time.
    4. So the UDP value will not be persistent.
    5. How I can make the UDP value that I changed via CURL/Rest to be retained after container restart?
    In the above case, how I can achieve this using userdefined policy?

    ------------------------------
    Anoop C Pillai
    ------------------------------



  • 5.  RE: UDP Override at run time

    Posted Tue November 30, 2021 11:41 AM
    Thanks Mathew for your reply,

    I will say my requirement.

    1.  I am storing the the provider system URL in one UDP variable.
    2. Suppose if I want change the URL I can update it via CURL command/Rest API.
    3. But in containerized environment , pod/container will restart some time.
    4. So the UDP value will not be persistent.
    5. How I can make the UDP value that I changed via CURL/Rest to be retained after container restart?


    ------------------------------
    Anoop C Pillai
    ------------------------------