posted 12 years ago
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?
Feel free to ask me anything!
www.BlackBeltFactory.com/ui#!/ref=jmotta, SCJP 6, OCWCD JEE5, OCE EJB JEE6