Re: Own Instance number

2023-03-02 Thread André Rothe via Webobjects-dev
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

Re: Own Instance number

2023-03-02 Thread André Rothe via Webobjects-dev
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.

Re: Own Instance number

2023-03-02 Thread André Rothe via Webobjects-dev
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

Re: Own Instance number

2023-03-01 Thread Konrad Kubacki via Webobjects-dev
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 -

Re: Own Instance number

2023-03-01 Thread Aaron Rosenzweig via Webobjects-dev
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

Own Instance number

2023-03-01 Thread André Rothe via Webobjects-dev
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