-->
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: WebSphere 6 / Hibernate 3.0.5: ENC
PostPosted: Tue Sep 27, 2005 5:02 pm 
Newbie

Joined: Mon Jul 18, 2005 10:15 am
Posts: 17
I'm using, happily, Hibernate 3.0.5 with WebSphere 6 and everything works great! ... well, except:

The Issue:
My configure file looks like

<session-factory name="java:hibernate/SessionFactory">
<property name="connection.datasource">jdbc/myDBDev</property>
... ...

while I saw folks in this forum using something like

<property name="connection.datasource">java:comp/env/jdbc/sos</property>

( http://forum.hibernate.org/viewtopic.php?t=947683 )

Using the ENC (environment naming context) would be ideal as otherwise I have to change the configure file for each environment (DEV, TEST, UAT, PROD).

So my question:
a) how to map the ENC (java:comp/env/jdbc/sos) to JDBC provider data source (jdbc/sos)
b) how to do the look-up and then initialize the Hibernate.

Be advised I might have more than one EJB and I know how to map the resource / EJB references for EJB / Web containers.

TIA
-JB


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.