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 Mar 1, 2023, at 6:15 AM, André Rothe via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> 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, but I 
> need it during the startup phase in the constructor of the WOApplication 
> subclass.
> 
> WOApplication.getAgentID() is not the right thing, .instanceIdKey() returns 
> only a key. Any other ideas?
> 
> Thanks
> André
> _______________________________________________
> 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/aaron%40chatnbike.com
> 
> This email sent to aa...@chatnbike.com

 _______________________________________________
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