Friday, May 3, 2002 08:08 AM
Hi, In VAJ 4.0 I'm using two EJBs; bean A is CMP and B is a stateless SessionBean. Bean A has to insert (in its ejbCreate) a record in table A in the database. To do so it first calls bean B's method that get some id out of table B. Furthermore, the method then updates table B. This is done correctly in the database. The value of the id is given back correctly to bean A but the insert is not done into table A. There were no rollbacks nor exceptions. I used for A TX_REQUIRED and for B TX_BEAN_MANAGED, but apparently this is wrong. What attributes do I have to use? Thanks, so far.
Re: What transaction attribute to use in CMP bean calling session bean?
Friday, May 3, 2002 08:10 AM