I have a simple jar app that is not using JNDI or any other management; it runs fine locally, but when I deploy it on a different host, I get this in the log, then nothing happens from that point forward:
Sep 14 05:25:53 localhost.localdomain (SessionFactoryObjectFactory.java:82) INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
In hibernate.cfg.xml, I have these two properties, which were indicated in the Configuration conception docs (Ch 3.7)
Code:
<property name="current_session_context_class" > thread </property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
and I'm doing this in code to get my SessionFactory:
Code:
SessionFactory sf = new AnnotationConfiguration().configure().buildSessionFactory();
just like the docs, except I use the AnnotationConfiguration as I'm using annotations for mapping. And again, this works locally, just not where I really need it to work.
What can I do to make this fly?