• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Kathy -comparing your UserTransaction criteria with specs 10.5.9.1

 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kathy -
You said that CMT demarcated beans CANNOT use UserTransaction. The specs 10.5.9.1 (CreateException in the Entity bean chapter) says that "client may determine the transaction status using the UserTransaction interface". This is for 2.0 entity beans which definitely can only use CMT.
Can you please explain to me this difference ?
Thanks and regards, Sudd
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client can use userTransaction but not the bean using CMT.
Let us say that a client initiated a Tx using UserTranaction interface by invoking begin. It then invokes some CMT bean method. Suppose an exception occurs in some method, the bean may invoke setRollBackOnly(). The client can get to know the status using UserTransaction.
[ June 06, 2003: Message edited by: Pradeep Bhat ]
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep -
Thank you for the clarification.
Sudd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic