• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding UserTransactions.

 
raghu vadranam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know that we can get UserTransaction object from context.
Is there any other way to get UserTransaction object ?I got a question on this in SCBCD.

I have cleared SCBCD with 91%.Thanks all of you.

raghu
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any other way to get UserTransaction object ?
The answer can be found in the javax.ejb.EJBContext interface
 
raghu vadranam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that EJBContext will give the object.
I want to know the other way.
 
Wladimir Babitzki
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the answer is in the spec


7.6.1 Bean-managed transaction demarcation

The Container must make the javax.transaction.UserTransaction interface available to the enterprise bean�s business method or onMessage method via the javax.ejb.EJBContext interface and under the environment entry java:comp/UserTransaction.


Also if yon can't/don't like to use Context JNDI should help you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic