• 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: determining what instances are running on server?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining what instances are running on server?


  • Subject: Re: determining what instances are running on server?
  • From: Giorgio Valoti <email@hidden>
  • Date: Sat, 16 Aug 2003 09:02:08 +0200

On Venerdl, ago 15, 2003, at 20:11 Europe/Rome, Art Isbell wrote:

On Friday, August 15, 2003, at 07:11  AM, Robert A. Decker wrote:

And related to this,
anyone have a line of code that can be put in Application that will print
the pid out to the log file at launch, or even better, include the pid in
the logfile name?

Begin forwarded message:

From: email@hidden
Date: Fri Jun 27, 2003  2:10:40  AM Pacific/Honolulu
To: Dan <email@hidden>
Cc: email@hidden
Subject: Re: Which process is which

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.



Shouldn't this only work with 5.2? AFAIK, the com.webobjects.pid is not present in earlier releases, but I could be wrong... It's just 9 AM ;-)


--
Giorgio Valoti
-------------
_______________________________________________
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.

References: 
 >Re: determining what instances are running on server? (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: determining what instances are running on server?
  • Next by Date: Re: Problems using primary key as attribute
  • Previous by thread: Re: determining what instances are running on server?
  • Next by thread: Re: determining what instances are running on server?
  • Index(es):
    • Date
    • Thread