Chris Ridmann
Chris Ridmann

Reputation: 2896

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!

Upvotes: 0

Views: 736

Answers (1)

Ratha
Ratha

Reputation: 9702

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

Check this similar thread

Upvotes: 1

Related Questions