tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <>
Subject Re: UserTransaction, JOTM and Tomcat 5.5.x
Date Tue, 07 Feb 2006 21:48:03 GMT
Thanks Remy - this is good stuff, I didn't know about the
<Transaction> element.  Is that new in 5.5.x?  Is it documented

As far as the JARs location - this shouldn't matter should it?  I can
put it in $CATALINA_HOME/common/lib *or* in WEB-INF/lib - right?

I've tried changing my context, and moving all JARs/properties local
to my WAR, but it still doesn't work.  Can you post your WAR for
download? works for me if you can't post it somewhere.

I'll make sure and submit a patch to JOTM's documentation once I get
this figured out.



On 2/7/06, Remy Maucherat <> wrote:
> 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.
> META-INF/context.xml:
> <Context reloadable="true" crossContext="true">
>     <Resource name="jdbc/myDB" auth="Container" type="javax.sql.DataSource"
>         factory="org.objectweb.jndi.DataSourceFactory"
>         driverClassName="org.hsqldb.jdbcDriver"
>         username="sa" password="" url="jdbc:hsqldb:."/>
>     <Transaction name="UserTransaction" auth="Container"
>         type="javax.transaction.UserTransaction"
>         factory="org.objectweb.jotm.UserTransactionFactory"
>         jotm.timeout="60"/>
> </Context>
> 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.
> --
> xxxxxxxxxxxxxxxxxxxxxxxxx
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> xxxxxxxxxxxxxxxxxxxxxxxxx
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message