Hi All

The following thread started on the castor-dev list. The short version is:

Is it possible to cache the transaction manager in MBeans to avoid the overhead of 
JNDI lookups?

Regards

Terry Child

> Let's move this thread to jboss-dev, okay?
> 
> Best regards,
>  Oleg 
> 
> Terry Child wrote:
> 
> TC> ----- Original Message -----
> TC> From: Oleg Nitz <[EMAIL PROTECTED]>
> TC> To: <[EMAIL PROTECTED]>
> TC> Sent: Thursday, October 05, 2000 3:52 PM
> TC> Subject: Re: [castor-dev] Cache the TransactionManager?
> 
> 
> >> Terry Child wrote:
> >> TC> Is it possible to cache the TransactionManager in the JDO instead of
> TC> looking it
> >> TC> up in JNDI every time, which is slow. I've just tried the diff below and
> TC> it
> >> TC> seems to work but I don't know what implications this might have.
> >> In jBoss the transaction manager for the given bean container can be
> >> configured in jboss.xml, so from the general point of view your
> >> proposition doesn't go.
> 
> TC> I don't know enough about JBoss and MBeans to fully understand this - please
> TC> bare with me. Is it the case that different bean containers can each have a
> TC> separate TM specified, but that the MBeans apply across the whole server, so
> TC> that in theory stateless session beans and stateful ones could be using
> TC> different TMs and the only way for an MBean to know this is to use JNDI to look
> TC> the TM up 'on the fly'.
> 
> >> Although for now there is only one transaction manager in jBoss,
> >> Marc Fleury told that he is going to integrate Tyrex in the future,
> >> so we will have a choice.
> >> On the other hand, it is hard to imagine the somebody want to use two
> >> transaction managers simultaneously.
> >> Could you measure the speed improvement that is gained due to your
> >> change?
> >>
> 
> TC> I was running JBoss inside OptimizeIt. The JNDI lookup in JDO.getDatabase() was
> TC> taking 14% of the time. If it's cached the time is insignificant. Infact most of
> TC> the time was spent doing JNDI lookups either for minerva or castor. Only 2% of
> TC> the time was spent executing application code :(
> 
> TC> Regards
> 
> TC> Terry Child
> 



Reply via email to