• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Whose handling transactions?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If I have a stateless session bean that is calling stored procedure or
a chain of stored procedures, whose transaction is used? Is it bean's or what, can anyone explain me how this works in WebSphere?
br
Veera
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'd need to pick up a J2EE book and have a look at transactions, but in the broadest of terms:
J2EE supports the 2-phase protocol, which allows the server to gather and combine transactions from multiple '2-phase transaction supporting locations'. Taking this back to your question, as long as the database and drivers are XA compliant (a clever way of saying 'we do that 2-phase thingy') the server maintains a transaction context, and any external transactions (like those in the database) are considered part of the server transaction.
I'm going to stop here, since I've exhausted my knowledge on the area
 
reply
    Bookmark Topic Watch Topic
  • New Topic