This content has been marked as final.
Show 2 replies
-
1. Re: CMP and Transactions
lafr Nov 2, 2005 4:34 PM (in response to dan-b)I would not expect this.
Because all beans but SessionBeanA have Transaction attribute set to Required they should run in the same db session.
So the newly created record should be seen by the finder.
When a finder is executed, all "dirty" EntityBeans are flushed to the database. -
2. Re: CMP and Transactions
sh_sadrai Nov 3, 2005 4:37 PM (in response to dan-b)I have the same problem.
My first method that is REQUIRES_NEW creates a new object.
second method that is REQUIRED retrieves some other objects from that obj like mypayment.getBookingID().getId(), but it is null. it seems session hasnt been flushed yet. How can I access my saved obj?