Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
Mapping documents:<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.jndi.url">iiop://localhost:2809/</property>
<property name="hibernate.jndi.class">com.ibm.websphere.naming.WsnInitialContextFactory</property>
<property name="hibernate.session_factory_name">HibernateSessionFactory</property>
<property name="hibernate.connection.datasource">jdbc/p1wpsdev</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
<property name="hibernate.transaction.auto_close_session">true</property>
<property name="jta.UserTransaction">thisNode/servers/WebSphere_Portal/jta/usertransaction</property>
<property name="org.hibernate.cache">true</property>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:db2 v8.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Hi everyone,
I'm using hibernate with WebSphere Portal v5.1 (based on WebSphere Application server v. 5.1.1),Hibernate SessionFactory initialized on portlet initalization and binded to jndi.
Jndi lookup from another WebSphere Server fails,my console shows:
Code:
org.hibernate.impl.SessionFactoryObjectFactory Not found: 2c9585dd0659e94f010659e95a130000
I figure SessionFactory should be possible,so what is wrong?
Regards,
Guy Shkolnik