Problem with an EJB transaction
1 posts in topic
Flat View  Flat View

Posted By:   mihalj_kertes
Posted On:   Wednesday, July 3, 2002 06:15 AM

I have created a stateless session bean with

transaction attribute = "RequiresNew" for all of

its methods.

One of these methods has a two step transaction:

1) insert into table1 using EntityBean1_Home.create()

2) insert into table2 using EntityBean2_Home.create()

Both these Entity Beans have trans attribute = "Required".

Problem: The step 2 is failing but the step 1 is not rolled back.

Please help.

Re: Problem with an EJB transaction

Posted By:   Shujat_Khan  
Posted On:   Friday, July 5, 2002 06:35 AM

What about trying to set the transaction attribute for the entity-ejb to some other value, maybe RequiresNew, or Supported...

I am sure there are transaction-values which accept propagation,

Hope this helps.
About | Sitemap | Contact