Re: Own Instance number
Re: Own Instance number
- Subject: Re: Own Instance number
- From: Konrad Kubacki via Webobjects-dev <email@hidden>
- Date: Thu, 2 Mar 2023 08:13:47 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden