In our case, both the parameters don't change at all so I made it into a class
variable. I am not sure whether it is multi-thread safe but should be ok since
it is a read-only object tree. If the parameters do change just use the
tuple (path, axis2xml) as key and ConfigurationContext as the key value.

Cheers

Aravind

On 3/7/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
Sean,

how could the factory cache a previously created instance since you can
use different parameters for different calls?

Michele

On Wed, 2007-03-07 at 06:36 -0800, sean curtis wrote:
> Ok, I'll do that for us ;) If this isnt added to the next release, hopefully 
everyone who uses axis2 as a client reads this and gets the benefit of OOM better 
performance and elminating a pervasive memory leak problem.
>
> ----- Original Message ----
> From: Davanum Srinivas <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, March 6, 2007 6:32:42 PM
> Subject: Re: Axis2 Client performance issue - AxisConfiguration Caching
>
> You can cache configContext  itself!
>
> -- dims
>
> On 3/6/07, sean curtis <[EMAIL PROTECTED]> wrote:
> > When running some recent tests against our webserver that contains our 
client code, it seems that the client causes a huge bottleneck in performance. 
Perhaps we have it configured incorrectly, but doing some initial looking at the 
source code, the question came up:
> >
> > When using the following code:
> >
> > ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(getAxis2RepositoryPath(),
 getAxis2ConfigFileLocation());
> >
> > does this actually cause a re-parse, reconfigure of the axis2.xml file on 
each call? If so, that seems to point to a massive performance bottleneck in saying 
we have to parse a basically static file every time we want to call our services.
> >
> > As I said, we might have it configured incorrectly, but this came up as a 
possible issue. Can anyone shed light? Is there a setting we can use to let it cache 
this configuration?
> >
> > thanks
> >
> >
> >
> >
> >
> >
> > 
____________________________________________________________________________________
> > No need to miss a message. Get email on-the-go
> > with Yahoo! Mail for Mobile. Get started.
> > http://mobile.yahoo.com/mail
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to