axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <>
Subject Re: [Axis2] Management Interface - Counting requests
Date Fri, 24 Feb 2006 10:36:10 GMT
I had a chat with the fellow some time back..

Their plans are to count the number of requests(or any other stat that can
be taken by msgContxt)  to a service/operation deployed in a Axis2
server and to use a singleton to store the results, just like incrementing a
counter  in the singleton per service call.

IMO if they are to use the same singleton across services they might run in
to class loader issues when deployed in Tomcat.  This is the same kinda of
trouble we earlier had in Kandula2 when tried to use inside Tomcat.  My
suggestion is to store these information in a appropriate place inside the
Axis2 Context hierarchy (eg: If we need to use it for multiple services then
we have use ConfigurationContext... )

Any thoughts....


On 2/24/06, Sanjiva Weerawarana <> wrote:
> On Fri, 2006-02-24 at 13:21 +0600, Chathura Ekanayake wrote:
> >
> > Is there a problem of using singleton objects as I mentioned in the
> > design? Will it fail if we deploy two Axis2 engines in the same
> > servlet engine?
> Why do you need a singleton? I didn't quite get that ..
> Sanjiva.

"May the SourcE be with u"

View raw message