opensubscriber
   Find in this group all groups
 
Unknown more information…

u : users@openejb.apache.org 5 July 2012 • 5:01PM -0400

OpenEjb transaction manager recipe
by Borislav Kapukaranov

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi all,

I've got a question about handling of the transaction manager in connection
factories.
I'm using openejb-4.0.0-beta2. In the Assembler class , the
createResource(ResourceInfo serviceInfo) method creates a service out of a
service recipe.
In case the service is a ResourceAdapter it checks the transaction manager
if it is the default Geronimo one or something else and acts accordingly,
however these checks don't exist in the case where the service is a
ManagedConnectionFactory.
In that case I see a connectionManagerRecipe being created with a hardcoded
reference to the default GeronimoConnectionManagerFactory which when
invoked tries to cast the transaction manager to the Geronimo one.
In my setup I've changed the transaction manager to one provided by JOTM
and I get a ClassCast there.

Can the connectionManagerRecipe initialization be more configurable in case
a user is not using the default transaction manager?

Best Regards
Bobby

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.