• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Kathy -comparing your UserTransaction criteria with specs 10.5.9.1

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pradeep -
Thank you for the clarification.
Sudd
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic