Re: Instance Number
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