• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Kathy -comparing your UserTransaction criteria with specs 10.5.9.1

 
Ranch Hand
Posts: 199
  • 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
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • 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: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep -
Thank you for the clarification.
Sudd
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic