Joined: Wed Apr 19, 2006 11:17 am Posts: 5
|
|
Hi,
Being relatively new to hibernate I was pretty happy when I got it working in a fair time developing in the eclipse IDE. But then I had to deploy the app to weblogic 8.1 where I use weblogic workshop to make some webservices that used the same code i used in eclipse (for hibernate 3). But when testing the webservice from weblogic workshop it actually shuts down the server!! Debugging made me identify it was when query.list was called
// extract
Query query = session.createQuery("from HelloWorld");
return query.list();
So I also tried creating a jdbc connection pool and a datasource using the weblogic server console and then updating my hibernate.cgf.xml to use jndi to identify the datasource... looks like this
<session-factory>
<!-- Database connection settings -->
<property name="connection.datasource">DD_Oracle</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="jndi.url">t3://localhost:7001</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<mapping resource="HelloWorld.hbm.xml"/>
</session-factory>
but still the same prob. Can anyone help please? Does anyone know of any useful urls or example projects to help me with this? I'd really appreciate it plus you'll help me stop losing hair... well maybe just slow it down a bit.
Thanks
|
|