• 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 number of active instances per instance from outside an application...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining number of active instances per instance from outside an application...


  • Subject: Re: Determining number of active instances per instance from outside an application...
  • From: Francis Labrie <email@hidden>
  • Date: Fri, 2 Feb 2007 08:48:13 -0500

Hi,


Shravan Kumar.M wrote:
Basically, we have couple of applications running on several ports. We need a way to identify the number of active sessions on each instance from outside the application for a given application and instance.

Do we have any commands to achieve this or do we need to programatically achieve this ?


You can access to this information sending requests to wotaskd services, just like does JavaMonitor.  You'll get an XML document which contains several informations including the number of active sessions.

You can fetch this data using WebObjects application, Java, command line tools, etc. Youl just have to respect the request structure described below and parse the XML result to sum up all active sessions of all application instances.


WebObjects Application Instances Information Request

To get WebObjects application instances information XML, a POST HTTP message should be sent to wotaskd service on each application server host requesting the "/cgi-bin/WebObjects/wotaskd.woa/wa/monitorRequest" direct action.

Header

The header of this message shoud contains the encoded password set for the wotaskd service through the JavaMonitor application, just like this:

password: 10E960A85159ED401DE39185EAA5DC98109B

You can find this encoded password in the "<SiteConfig><site><password>" field of the "/Library/WebObjects/Configuration/SiteConfig.xml" file on one of the application server host.

Body

The body of this message should contains this:

<monitorRequest type="NSDictionary">
        <queryWotaskd type="NSString">INSTANCE</queryWotaskd>
</monitorRequest>

Example

This is an example using curl command:

curl --data '<monitorRequest type="NSDictionary"><queryWotaskd type="NSString">INSTANCE</queryWotaskd></monitorRequest>' --header 'password: <EncodedWOTaskDPassword>' http://<ApplicationServerHost>:1085/cgi-bin/WebObjects/wotaskd.woa/wa/monitorRequest


Kind regards,


OS communications informatiquesFrancis Labrie, Architecte de systèmes, OS communications informatiques - Votre moteur de communication
email@hidden | Téléphone : (450) 676-1238, poste 27 | Télécopieur : (450) 676-5276

 _______________________________________________
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: 
 >Determining number of active instances per instance from outside an application... (From: "Shravan Kumar.M" <email@hidden>)

  • Prev by Date: Re: Determining number of active instances per instance from outside an application...
  • Next by Date: Re: Recording for PlaybackManager not working?
  • Previous by thread: Re: Determining number of active instances per instance from outside an application...
  • Next by thread: Project Wonder Validity Framework
  • Index(es):
    • Date
    • Thread