Hi All,
In weblogic5.1 where(in ejb-jar.xml) to write the transaction attribute as TX_BEAN_MANAGED for a BMP entity bean. I want to use the methods(begin,commit, rollback) of the UserTransaction.
Thanks,
Srinivas.J
-
TX_BEAN_MANAGED in Weblogic 5.1 (3 messages)
- Posted by: Srinivas Janakiraman
- Posted on: April 04 2001 09:50 EDT
Threaded Messages (3)
- TX_BEAN_MANAGED in Weblogic 5.1 by Richard Kenyon on April 04 2001 10:57 EDT
- TX_BEAN_MANAGED in Weblogic 5.1 by Srinivas Janakiraman on April 04 2001 14:35 EDT
- TX_BEAN_MANAGED in Weblogic 5.1 by Richard Kenyon on April 05 2001 03:41 EDT
- TX_BEAN_MANAGED in Weblogic 5.1 by Srinivas Janakiraman on April 04 2001 14:35 EDT
-
TX_BEAN_MANAGED in Weblogic 5.1[ Go to top ]
- Posted by: Richard Kenyon
- Posted on: April 04 2001 10:57 EDT
- in response to Srinivas Janakiraman
Set :-
<transaction-type>
Bean
</transaction-type>
The alternative is Container.
Cheers,
Rick
-
TX_BEAN_MANAGED in Weblogic 5.1[ Go to top ]
- Posted by: Srinivas Janakiraman
- Posted on: April 04 2001 14:35 EDT
- in response to Richard Kenyon
Rick,
It can be used only with Session beans.
I want to update 2 tables. I am getting an exception after updating one and before the other. Still the first one is getting commited. I have given RequiresNew attribute.
Thanks,
Srinivas.J -
TX_BEAN_MANAGED in Weblogic 5.1[ Go to top ]
- Posted by: Richard Kenyon
- Posted on: April 05 2001 03:41 EDT
- in response to Srinivas Janakiraman
Sorry, I mis-read your oringinal question!
What you want to do cannot be achieved with EJB1.1, you cannot programmatically control transactions within Entity EJBs.
You'll have to either 'wrap' your code in a session EJB, or maybe split down into 2 separate entity EJB's.
Cheers,
Rick