Thank you for your answer!
In other words once you have the WORequest you can get the application
number from that.
If you don’t have the WORequest handy, maybe you can get the WOContext
(like from a WOComponent) and then get the request.
I'm on the Application constructor, so there is no req
Thank you for your answer.
But - you have to do it manually for each instance.
That I would avoid, it is a source of errors, you have to use unique
numbers without any check.
André
___
Do not post admin requests to the list. They will be ignored.
Am 01.03.2023 12:15, schrieb André Rothe via Webobjects-dev:
Can I get the instance number of the own WO application?
I found
http://localhost:1085/cgi-bin/WebObjects/wotaskd.woa/wa/woconfig
which is accessible without credentials and returns an XML with the
instance number. This URL I can
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 -
Hi André,
You can try: context.request.applicationNumber
In other words once you have the WORequest you can get the application number
from that.
If you don’t have the WORequest handy, maybe you can get the WOContext (like
from a WOComponent) and then get the request.
Cheers,
— Aaron
> On
Hi,
Can I get the instance number of the own WO application? I have multiple
instances of the same application running in parallel, but I need the ID
which is defined within WOMonitor from inside the running instance.
It could be possible to extract the instance number from a request url,
bu