Re: Which process is which
Re: Which process is which
- Subject: Re: Which process is which
- From: email@hidden
- Date: Fri, 27 Jun 2003 08:10:40 -0400
I solve this problem by writing the process number in the log file.
Here is the code I add to the constructor of my Application class:
NSLog.err.appendln(name() + " version " + version() + ", port = " +
port() + ", pid = " + System.getProperty("com.webobjects.pid"));
The name and port methods are inherited from WOApplication. The version
method takes the application version from the application bundle. This
works well on Mac OS X and Solaris. I don't know about Windows.
Serge
Le jeudi, 26 juin 2003, ` 14:49 America/Montreal, Dan a icrit :
> Back in the old days of WO 4.5 you could tell which application
> process was
> which because the application name was the process name. Now in WO
> 5.2 every
> application shows up with a process name of 'java.exe' (at least on
> windows).
> Anyone come up with a clever way of determining who is who?
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.