geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-1574) Spring integration -- wrap our components in spring interfaces
Date Thu, 02 Feb 2006 19:07:07 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-1574?page=comments#action_12364981 ] 

David Jencks commented on GERONIMO-1574:
----------------------------------------

>>Why not simply expose the TransactionManager in JNDI ? 
1. because we don't have a global jndi context we could use, and if we did we still shouldn't
make it easy to get the tm
2. because if you use the tm rather than the TransactionContextManager you lose a lot of J2CA
functionality including connection leak "compensation" for appropriate connectors and the
"reassociate to the right connection" when you hold connections over method calls and use
container managed security for j2ca.
3. the code in springs JtaTransactionManager seems extremely complicated because it never
knows what it has to work with.  Since we know, we can have much simpler code.

>>Btw, i have made lots of tests on this area for the jencks project and the main problem
is that spring sometime assumes that the TransactionManager and UserTransaction are somewhat
linked.

What UserTransaction?  The Geronimo UT is certainly linked to our TCM, and if we use the TCM
as the backing for the spring TM anything spring comes up with for a UT will also be linked
to the TCM.  Can you explain in more detail?

>>In facts, as the spring transaction manager may be used in EJB, web apps, etc to access
managed resources, I think the factory bean should return the UserTransaction instead of the
TransactionManager.

What factory bean?

>>But some functions won't be available such as suspend / resume, because the UserTransaction
and TransactionManager implementations are not linked.
Please explain.

I'll look at your example.

 

> Spring integration -- wrap our components in spring interfaces
> --------------------------------------------------------------
>
>          Key: GERONIMO-1574
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1574
>      Project: Geronimo
>         Type: New Feature
>     Versions: 1.1
>     Reporter: David Jencks
>     Assignee: David Jencks
>      Fix For: 1.1

>
> For a reasonable spring integration, we need to expose some of our components wrapped
in spring interfaces.  The most obvious is the transaction manager.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message