Hello to all,
Now,having got EJB3.0 working with Hibernate,
I'm set to deploy EJB 3.0 application using toplink as Persistence Provider..
But I'm getting the following error :
|
| Persistence Unit Model; state Deployed; factoryCount 1
| 03:02:15,952 ERROR [STDERR] javax.persistence.TransactionRequiredException:
| Exception Description: No transaction is currently active
| 03:02:15,953 ERROR [STDERR] at
oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:70)
| 03:02:15,953 ERROR [STDERR] at
hibernate.transaction.manager_lookup_classoracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:62)
| 03:02:15,953 ERROR [STDERR] at
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:616)
| 03:02:15,953 ERROR [STDERR] at
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.joinTransaction(EntityManagerImpl.java:646)
| 03:02:15,953 ERROR [STDERR] at
org.jboss.ejb3.entity.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:183)
| 03:02:15,953 ERROR [STDERR] at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
| 03:02:15,954 ERROR [STDERR] at
com.prapansol.demos.service.SRServiceBean.persistEntity(SRServiceBean.java:76)
|
In Hibernate we have
hibernate.transaction.manager_lookup_class
How can we make toplink look up the JBossTransactionManager class?
Any idea?
Thnks for your help in advance,
Samba
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103441#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...