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.
The alternative is Container.
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.
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.