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

Some CMT and BMT doubts in EJB?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)With REQUIRES_NEW attribute Container creates a new transaction and the callers transaction is suspended Just get better understanding of REQUIRES_NEW , does it achieve the above behaviour by associating transaction with new connection. Once complete the current transaction it assume the previous connection? when the commit happens for new transaction?

2)Can somebody point me the brief eamxple CMT and BMT where sesion bean using JDBC. Basically looking how we get the connection,commit, rollback in CMT and BMT

3)In CMT, Transaction manager Complete the transaction associated with the current thread. My question here is how does it commit the transaction . I know of commiting the transaction with connection but here how does it the get to know which connection associated with current thread as in one example i saw of creation the connection inside the method with new operator.
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic