Joined: Thu Feb 28, 2008 10:48 am Posts: 7
|
Hi,
i am uisng Hibernate in my application which is running in Oracle App Server 10.1.2 middle tier.
i am struck up with this issue for last one week. the problem is i am having the following lines in my hibernate.cfg.xml for JTA Transactions
<property name="transaction.manager_lookup_class">org.hibernate.transaction.OC4JTransactionManagerLookup</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
this is not wokring out for me. it is giving me the folloiwng execption
org.hibernate.HibernateException: Could not locate TransactionManager
at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
Caused by: javax.naming.NameNotFoundException: No object bound for java:comp/pm/TransactionManager
as OC4JTransactionManagerLookUp is returning transcationmanager name as "java:comp/pm/TransactionManager".
my jndi properties are
<property name="jndi.url">opmn:ormi://localhost:80/RM_Application</property>
<property name="jndi.class">com.evermind.server.rmi.RMIInitialContextFactory</property>
<property name="jndi.security.principal">jazn.com/admin</property>
<property name="jndi.security.credentials">password1</property>
<property name="dedicated.rmicontext">true</property>
<property name="dedicated.connection">true</property>
any ideas? I feel there should be some fix for this. Please let me know your ideas.
Thanks in advance....
Purandhar
|
|