Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Transactions in BMP

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I wanted to understand how exactly is the container able to manage transactions in case of a BMP .
In the sample code I've seen at a few places for BMPs , in the ejbLoad or ejStore method , the JDBC conection is closed at the end of the function .

Is it , that all pooled or XA connections obtained from the container via a datasource object , are automatically managed for transactions . ( Its not really clear how this happens , if the connection is closed ...!! or even the connection close is intercepted by the container ? ) .

Also , it probably may never be done , but if the connection is not obtained from the server datasource ( like a simple JDBC connection ) , will the container still be able to manage transactions .

Hope I made clear the point that I am not able to understand .


Thanks
Tarun :roll:
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic