• 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: Instance Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance Number


  • Subject: Re: Instance Number
  • From: Jacky Gagnon <email@hidden>
  • Date: Tue, 19 Oct 2004 10:04:51 -0400

Hi,

You must specify the instance number in WebObjects Monitor...

For each instance, add this in the configuration, in Additional Arguments field :

-DWOInstanceID=n

ex: -DWOInstanceID=1 for instance number 1
-DWOInstanceID=2 for instance number 2
etc...


In your application you just call System.getProperty("WOInstanceID").toString() to know wich instance send the mail.




Jacky :-)


Le 04-10-18, à 22:07, Greg Hulands a écrit :

But don't you have one log per instance with the instance number in the
filename?

Why yes I do! When the Application handles an exception, I get it to send me an email with stack trace. It is good to be able to know the instance number in the email so I can go to the log for that instance and see what happened leading up to the exception.

Greg



On 19/10/2004, at 11:21 AM, Chuck Hill wrote:

If you can get the request that is being handled, it is available from
applicationNumber(). The application no longer returns this.




Chuck


At 11:14 AM 19/10/2004 +1000, Greg Hulands wrote:
Is it possible to get the instance number of an application at runtime?
I would like to log it in any exceptions that may occur.

Regards,
Greg

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
e.net
This email sent to email@hidden


--

Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net


_______________________________________________
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

References: 
 >Re: Instance Number (From: Chuck Hill <email@hidden>)
 >Re: Instance Number (From: Greg Hulands <email@hidden>)

  • Prev by Date: Deployment tips
  • Next by Date: killing running instance on WebServer... don't want to die ?
  • Previous by thread: Re: Instance Number
  • Next by thread: Deployment tips
  • Index(es):
    • Date
    • Thread