• 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

Transaction completion on stateful session beans (EJB 3.1)

 
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm reading the book Enterprise JavaBeans by Bill Burke and Andrew Lee and I got kind confused with something. On the transactions chapter there is a subtopic called "Transactional stateful session beans", there they explain a lot about the behavior, characteristics and how to use / add SessionSynchronization to your bean.

What I haven't understood is how the transaction manager will know that the transaction ended once there is no such boundaries as method begin and end or UserTransaction.begin() and UserTransaction.commit() / .rollback(). How can I demarcate the end of a transaction in SFB?

I know that I can't call the method annotated with @Remove because it will throw an exception. I must explicitly end my transaction before doing it.

Someone knows?
 
Jayr Motta
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer found in https://coderanch.com/t/491473/java-EJB-SCBCD/certification/Remove-method-inside-transaction-stateful
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic