This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Software Teaming: A Mob Programming, Whole-Team Approach and have Woody Zuill and Kevin Meadows on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic