W dniu 2023-03-01 12:15, André Rothe via Webobjects-dev napisał(a):


WOApplication.getAgentID() is not the right thing, .instanceIdKey()
returns only a key. Any other ideas?


You could pass it in "additional command line argument" in instance configuration in JavaMonitor, just like all the -Xmx or other -DWOxxxx arguments, i.e. -DWOAppInstanceNumber 110. Then, you have available in on Application startup time via system properties, System.getProperty("WOAppInstanceNumber")

But - you have to do it manually for each instance.

I can't find to get this number other way - unless you have access to Request, beacuase instance number is more wotaskd/javamonitor thing than Application property.



Konrad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to