Hello all,
can anyone give an example how to bind the SessionFactory to JNDI on the Borland Enterprise Server (BES)?
When I try to do so, I an Exception with the following message "Only instances of org.omg.CORBA.Object can be bound".
I configured hibernate the following way:
Code:
AnnotationConfiguration cfg = new AnnotationConfiguration();
cfg.configure("hibernate.cfg.xml");
cfg.setProperty("hibernate.session_factory_name", "hibernate/myHibernateSession");
cfg.buildSessionFactory();
My config-file includes the following parameters:
Code:
...
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BESTransactionManagerLookup</property>
<property name="current_session_context_class">jta</property>
...
Thanks for reading!