• 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: 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

  • 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: Re: Own Instance number
  • Next by Date: Re: Own Instance number
  • Previous by thread: Re: Own Instance number
  • Next by thread: Re: Own Instance number
  • Index(es):
    • Date
    • Thread