« Return to Thread: UserTransaction, JOTM and Tomcat 5.5.x

Re: UserTransaction, JOTM and Tomcat 5.5.x

by Rémy Maucherat-3 :: Rate this Message:

Reply to Author | View in Thread

Since you're doing docs, META-INF/context.xml should be simplified to:
<Context>

    <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 factory="org.objectweb.jotm.UserTransactionFactory"
        jotm.timeout="60"/>

</Context>

No servlet class reloading anymore (not useful to many people), and
the Transaction element has all the necessary defaults since it's a
special resource.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: UserTransaction, JOTM and Tomcat 5.5.x