transactions-ejb2.0
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ram_t
Posted On:   Wednesday, April 11, 2001 05:14 AM

how can I make my transaction which starts with a stateless session bean method which has to create three entity beans in a single transaction,so that all the entity beans are created or neither of the bean is created.I have tried with different transaction attribute for container managed transaction., But my problem is if the first entity bean is created and second one is not created,then the whole transaction is not getting rolled back. Infact the container shows that the transaction is rolled back but the Oracle data base is commiting the first bean creation. How to synchronise the data base with the Weblogic6.0 server. Rama chandra    More>>

how can I make my transaction which starts with a stateless session
bean method which has to create three entity beans in a single
transaction,so that all the entity beans are created or neither of the
bean is created.I have tried with different transaction attribute for
container managed transaction.,
But my problem is if the first entity bean is created and second one
is not created,then the whole transaction is not getting rolled back.
Infact the container shows that the transaction is rolled back but the
Oracle data base is commiting the first bean creation.
How to synchronise the data base with the Weblogic6.0 server.
Rama chandra

   <<Less

Re: transactions-ejb2.0

Posted By:   Jim_Krygowski  
Posted On:   Wednesday, April 11, 2001 05:52 AM

It sounds as if your entity beans' transaction attributes may be set to "requires new". If so, you should set the attribute to "supports" or "requires" in the deployment descriptor for each of the entity beans.
About | Sitemap | Contact