Discussions

EJB programming & troubleshooting: Do unit test for ejb3 with "Embeddable EJB 3.0"

  1. Do unit test for ejb3 with "Embeddable EJB 3.0" (1 messages)

    . Recently we are trying to integrate Session Bean(EJB3.0) and Hibernate(3.0) as customers request. We choose container to manager transaction, it works well, Also we prepare to do unit test for the Session Bean with Embeddable EJB 3.0, but we meet a problem with the Transaction Manager, here are some related TM information : ========================================= hibernate.cfg.xml ========================================= java:MSSQLDS true org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.CMTTransactionFactory org.hibernate.transaction.CMTTransactionFactory ======================================================= Session Bean sample code ======================================================= @TransactionAttribute(TransactionAttributeType.REQUIRED) public void register() { ...... } QUESTION? As you know we use container manager transaction, but we don't know how to manager transaction with Embeddable EJB 3.0? .
  2. What kind of Transaction Manager do "embedded-jboss" support? Does it support Container Manager Transaction?