-->
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.  [ 4 posts ] 
Author Message
 Post subject: Binding and EntityManagerFactory to JNDI in Weblogic 9.2
PostPosted: Tue Oct 30, 2007 10:50 am 
Senior
Senior

Joined: Tue Mar 09, 2004 2:38 pm
Posts: 141
Location: Lowell, MA USA
I am looking to see if there's a way that one can bind a Hibernate EntityManagerFactory to a JNDI tree in Weblogic server 9.2 MP1. In JBoss AS, it's quite easy as one can simply do:

Code:
<property name="jboss.entity.manager.factory.jndi.name"
          value="java:/EntityManagerFactories/bookingData"/>


I'd be thrilled to death to find out if there's a similar option available to Weblogic. Last time I worked with Hibernate and Weblogic, it under 8.1 and I had to programatically bind the Hibernate Session to JNDI.

Just FYI, we're using JBoss Seam and Spring 2 as well, so if there's an additional option that either one of these components can provide, I'm interested in that as well. Thanks.

Ryan-

_________________
Ryan J. McDonough
http://damnhandy.com

Please remember to rate!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 30, 2007 1:56 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Unfortunately no. but you can put the sessionFactory in the JNDI (session factory name, can't remember the property on top of my head).

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 30, 2007 3:24 pm 
Senior
Senior

Joined: Tue Mar 09, 2004 2:38 pm
Posts: 141
Location: Lowell, MA USA
Thank Emmanuel. Is this a limitation of Weblogic, or just something that hasn't yet been implemented in Hibernate Entity Manager as of yet? If it's the latter, is the team interested in any contributions to make this work?

Ryan-

_________________
Ryan J. McDonough
http://damnhandy.com

Please remember to rate!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 30, 2007 3:45 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It's more that it's unnecessary in a JavaEE 5 container as the spec addresses that. so this feature is more for old time containers and I haven't spend the energy for them.

_________________
Emmanuel


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

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.