[jboss-dev-forums] [Design of JBoss Transaction Services] - How to use UserTransactionSession...
markuslutz
do-not-reply at jboss.com
Wed Nov 8 08:02:59 EST 2006
Hi,
my webapp is using a stateless session bean to read and write data to the database (BMT and JDBC - calls). Now I would like to wrap some remote function calls in a transaction i.e.
InitialContext initialContext = new InitialContext(environment);
| MyHome myHome=(MyHome)initialContext.lookup("ejb/mybean");
| MyRemote myRemote=myHome.create();
| //code to wrap
| User user= myRemote.createUser()
| myRemote.createRights(user,listOfRights)
| //-----
| myRemote.remove();
Is this possible with UserTransactionSession ? I couldn't find a documentation or any example how to use it .
Thanks for any help
Markus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984121#3984121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984121
More information about the jboss-dev-forums
mailing list