App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 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

    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 2 days ago

    Hi,

    We have stored our user-defined policies in a configmap in openshift. During startup of the container this configmap is referenced. So when a change is done to a user-defined policy we need to change the configmap and restart the container.

    mvg

    Kim



    ------------------------------
    Kim Meynendonckx
    ------------------------------



  • 6.  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
    ------------------------------



  • 7.  RE: UDP Override at run time

    Posted 2 days ago

    Your suggestion is very good and works well.

    But they say here you can make the changes persistent. I'm testing it and it doesn't work. Have you ever tried it?



    ------------------------------
    Pedro Manuel
    ------------------------------



  • 8.  RE: UDP Override at run time

    Posted 2 days ago

    Hi Pedro

    Have you set this inside your server.conf.yaml?

    UserVariables: 
      udp-persist-global-overrides: true

    You can supply a servers.conf.yaml override to your ACE container via a configuration resource. But I haven't tested it, can give it a try this week.



    ------------------------------
    Regards
    Matthias Blomme
    Integration Specialist
    Integration Designers
    Turnhout
    ------------------------------



  • 9.  RE: UDP Override at run time

    Posted 2 days ago

    Yes, I did that, but the values still did not persist. After restarting the integration server, the values returned to their default values. 



    ------------------------------
    Pedro Manuel
    Integration Developer
    Standard Bank Angola
    Luanda
    ------------------------------