• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Own Instance number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Own Instance number


  • Subject: Re: Own Instance number
  • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
  • Date: Wed, 1 Mar 2023 16:57:37 -0500

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
> <email@hidden> 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      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: Own Instance number
      • From: André Rothe via Webobjects-dev <email@hidden>
References: 
 >Own Instance number (From: André Rothe via Webobjects-dev <email@hidden>)

  • Prev by Date: Own Instance number
  • Next by Date: Re: Own Instance number
  • Previous by thread: Own Instance number
  • Next by thread: Re: Own Instance number
  • Index(es):
    • Date
    • Thread