what you can try is to use an EJB session bean with a simple method that you cann and has a declarative transaction attribute to REQUIRES_NEW.
then in that EJB method you call your code that needs a transaction. I coded such a bean in my life so you can get the code here : http://anoncvs.forge.jboss.com:8080/viewrep/~raw,r=1.3/JBoss/nukes/nukes/src/main/org/jboss/nukes/core/ejb/UtilsEJB.java an example of usage is : | UtilsEJB utils = ((UtilsEJBLocalHome)ctx.lookup(UtilsEJBLocalHome.JNDI_NAME)).create(); | utils.requiresNew(new UtilsEJB.Executable() | { | System.out.println("this is running in its own transaction"); | }); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897911#3897911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897911 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user