Search code examples
wso2esb

WSO2 Read JVM environment argument into property mediator or endpoint mediator


I am storing the servername and port as a JVM argument (e.g. -Dservername=blah,-Dserverport=blah

Is there any way to set an endpoint address to read from these values? Is there an easier way than creating a custom mediator to store the variables in the message context?

Thanks!


Solution

  • If you read the system property from class mediator, set properties to synapsecontext, then use that within sequence..

    Check this similar thread