dcsimg
In websphere 3.5 how to get userTransaction object for servlets
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, February 27, 2002 10:17 PM

I have this code Context c = new InitialContext(); UserTransaction ut = (UserTransaction) c.lookup("java:comp/UserTransaction"); ut.begin(); // perform multiple operations... ut.commit() I am not able to create the user transaction object in websphere3.5 environment An exception NamingException is thrown, when i print the exception using getMessage() , i get "java:comp/UserTransaction". Is there any settings which need to be done in websphere. Please help as this is of great importance regards Sunil    More>>

I have this code





Context c = new InitialContext();


UserTransaction ut = (UserTransaction) c.lookup("java:comp/UserTransaction");


ut.begin();


// perform multiple operations...


ut.commit()





I am not able to create the user transaction object in websphere3.5 environment


An exception NamingException is thrown, when i print the exception using getMessage() , i get "java:comp/UserTransaction".


Is there any settings which need to be done in websphere. Please help as this is of great importance


regards


Sunil

   <<Less
About | Sitemap | Contact