tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <>
Subject Re: UserTransaction, JOTM and Tomcat 5.5.x
Date Tue, 07 Feb 2006 15:29:28 GMT
On 2/7/06, Remy Maucherat <> wrote:
> For 1), it's simple: Resources are bound in "comp/env", while the
> UserTransaction should go in "comp". ResourceLink has a special case
> for UserTransaction, so it works. There's a special Transaction
> element which would avoid having to do that, but it's not implemented.
> It wouldn't be hard to add support for it in
> org.apache.catalina.core.NamingContextListener.

Actually, I checked again and the Transaction element seems to be
properly implemented, and it should be used since it will bind the UT
to the right place (unlike the Resource element).

It works very well for me right now.

<Context reloadable="true" crossContext="true">

    <Resource name="jdbc/myDB" auth="Container" type="javax.sql.DataSource"
        username="sa" password="" url="jdbc:hsqldb:."/>

    <Transaction name="UserTransaction" auth="Container"


WEB-INF/lib contains all the jotm JARs (and the hsql JAR).
WEB-INF/classes contains the config (the lmi protocol
didn't work for me, so I switched to jrmp). So it can be packaged as a
ready to run WAR. I still don't understand how that &%ç!ç& carol
hijacks the java: ENC in its default configuration, however.

Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message