-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Borland Enterprise Server and JNDI bound SessionFactory
PostPosted: Fri Sep 19, 2008 3:55 am 
Newbie

Joined: Fri Mar 14, 2008 4:20 am
Posts: 17
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.