On 2/7/06, Remy Maucherat <[EMAIL PROTECTED]> 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 carol.properties 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]