TX_BEAN_MANAGED in Weblogic 5.1

Discussions

EJB programming & troubleshooting: TX_BEAN_MANAGED in Weblogic 5.1

  1. TX_BEAN_MANAGED in Weblogic 5.1 (3 messages)

    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
  2. Set :-

    <transaction-type>
        Bean
    </transaction-type>

    The alternative is Container.

    Cheers,
    Rick
  3. 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
  4. 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