Mailing List webobjects-dev@wocommunity.org Message #323
From: Valerio Luccio <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] Re: WOMonitor on CentOS
Date: Mon, 8 Nov 2021 16:38:03 -0500
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>

Thanks,

not sure when I'll be able to get to this.

On 11/4/21 6:24 AM, Hugi Thordarson wrote:


        
not sure I'm following this. 

Which Application dispatchRequest am I supposed to monitor ? The application I wrote ? wotaskd ? WOMonitor ?

On my reading, Hugi meant that you should do something like this in Application.dispatchRequest() for the application you wrote:

	@Override
	public WOResponse dispatchRequest(WORequest request) {
		LOG.trace("      request = " + request);
		LOG.trace("request.uri() = " + request.uri());
		return super.dispatchRequest(request);
	}

Where LOG is a logger object of whatever type you use.
Exactly :).

And the properties file I mentioned (/etc/WebObjects/Properties) is just a global configuration file for all WO instances on the machine, so it's a convenient location to set, well, global configuration. Such as the "er.extensions.WOHostUtilities.localhostips" property I mentioned. (that was the magic solution for me when I had similar problems a few years back).

Cheers,
- hugi
#############################################################
This message is sent to you because you are subscribed to
  the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>

--
Valerio Luccio    
High Performance Computing     10 Astor Place, Room 415
New York University     New York, NY 10003

"In an open world, who needs windows or gates ?"
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster