geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Templier <temp...@yahoo.fr>
Subject Re: Integration of Geronimo modules (Tx / JCA) in Spring
Date Thu, 30 Jun 2005 08:10:34 GMT
David,

Thanks to your hints, we finally made work the
transaction and connector modules of Geronimo with the
support of JCA in Spring.
Thanks a lot for your help!!
Thierry

> I'll try to describe briefly what's going on here,
> but it's a somewhat  
> complicated subject and I've probably forgotten a
> few details.
> 
> The J2CA spec requires us to support the following
> (IMO ridiculous)  
> scenario:
> 
> call into EJB A with user x
> A acquires connection with login based on x (such as
> same name, or  
> maybe some group name)
> On method exit, A does not close connection but
> keeps it
> call into EJB A with user y
> the connection saved in A must still be usable, but
> must now be  
> attached to a physical connection based on y.
> 
> In order to keep track of stuff like this, we have
> an InstanceContext.   
> The (ejb, servlet, app client, ...)  container
> framework is required to  
> register the appropriate instance context with the  
> ConnectionTrackingCoordinator before allowing the
> call into the  
> instance object.  This is done e.g. in the jetty
> module  
> InstanceContextBeforeAfter and in openejb's  
> ConnectionTrackingInterceptor.
> 
> If you want to support holding connections open over
> method calls, you  
> should find a way to install such an instance
> context before control  
> gets to the implementation object.  If not, lets
> talk about removing  
> this requirement for use of the geronimo j2ca
> framework.

Take a look at my blog:
http://templth.blogspot.com/


	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

Mime
View raw message