TransactionManager tm;
| try {
| tm = (TransactionManager)new
InitialContext().lookup(java:/TransactionManager);
| TypeX x = (TypeX)Transactions.required(tm, new
Transactions.Runnable()
| {
|
hi cpage,
Thx for your reply.
Actually can i open JTA Transaction as shown below.This code is working fine
now.But i dont know whether i can call this way though i am getting result.
UserTransaction ut =
(UserTransaction)(initCtx.lookup(java:comp/UserTransaction));
|
As i have metioned it is not portal application.It is just simple JSF
application.I am not using Portlet.
Can anybody tell me how to open JTA transaction before calling UserModule
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985298#3985298
Reply to the post
You need to have a JTA transaction open before you call the method createUser
on the UserModule if you are using the database implementation of the user
module.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3984915#3984915
Reply to the post :
Can u tell me how to open JTA transaction.
Thanks in advance
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985109#3985109
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985109