On Mar 23, 2009, at 8:49 AM, <[email protected]> <[email protected]
> wrote:
Hi David,
I changed the value as you suggested, and run into the next
exception. Now the user transaction is missing.
Caused by: javax.naming.NameNotFoundException: Name "java:comp/
UserTransaction" not found.
at
org
.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:
172)
at
org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:
129)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at
org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:
60)
... 72 more
If I debug the initial context after start up I get the java:comp/
UserTransaction. But the initial context inside hibernate, has not
entry in its context.
That should work if the bean is using bean managed transactions
(<transaction-type>Bean</transaction-type> in the <session> section of
the ejb-jar.xml).
It is a little strange that Hibernate would still use a
UserTransaction when they have a reference to the TransactionManager
via the that TxLookup class configured in the hibernate.cfg.xml. Do
you have any context for when and where this is happening?
-David