tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerard Biemolt" <>
Subject tomcat usertransation
Date Fri, 07 Sep 2007 10:13:43 GMT
Hi All,

I'm currently trying to create a transaction between a standalone
application and a web service. By starting a usertransaction in
the standalone app and bridging it to/with the web service.
However I'm unable to get use a transaction in the web service.
I took these steps:

- published a transactional webservice with apache axis on tomcat 5.5
- added to /conf/server.xml
  <Transaction name="UserTransaction" factory=" onFactory "/>
- added to /conf/context.xml
   <ResourceLink name="UserTransaction" global="UserTransaction" type=""/>
- added the following lines to the code:
            InitialContext ctx = new InitialContext();
            ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
which gives the javax.naming.NameNotFoundException: Name UserTransaction is
not bound in this Context

Am I missing some xml-statements somewhere?

thanks in advance,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message