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.  [ 2 posts ] 
Author Message
 Post subject: weblogic 8.1 Connection pooling JNDI Hibernate.cfg.xml
PostPosted: Fri Jun 30, 2006 1:11 pm 
Newbie

Joined: Tue May 02, 2006 1:59 pm
Posts: 17
Location: California
Hello all,

I am trying to use the datasource which has been set in my weblogic in the hibernate.cfg.xml

I am using hibernate 3.0.

following is the extract from the hibernate.cfg.cml:

<hibernate-configuration>
<session-factory name="foo">
<property name="hibernate.cglib.use_reflection_optimizer">true</property>
<property name="connection.datasource">DBMSDataSource</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.show_sql">true</property>

<!-- rest all deleted (not of context to this question -->


Exception

Caused by: javax.naming.NameNotFoundException: Unable to resolve 'DBMSDataSource' Resolved ; remaining name 'DBMSDataSource'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Ljava.lang.String;Ljava.lang.String;Ljava.util.Hashtable;)Ljavax.naming.NameNotFoundException;(BasicNamingNode.java:897)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(Ljava.lang.String;Ljava.util.Hashtable;Ljava.lang.String;)Ljava.lang.Object;(BasicNamingNode.java:230)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(Ljava.lang.String;Ljava.util.Hashtable;Ljava.lang.String;)Ljava.lang.Object;(ServerNamingNode.java:154)
at weblogic.jndi.internal.BasicNamingNode.lookup(Ljava.lang.String;Ljava.util.Hashtable;)Ljava.lang.Object;(BasicNamingNode.java:188)
at weblogic.jndi.internal.WLEventContextImpl.lookup(Ljavax.naming.Name;Ljava.lang.String;)Ljava.lang.Object;(WLEventContextImpl.java:256)
at weblogic.jndi.internal.WLContextImpl.lookup(Ljava.lang.String;)Ljava.lang.Object;(WLContextImpl.java:357)
at javax.naming.InitialContext.lookup(Ljava.lang.String;)Ljava.lang.Object;(InitialContext.java:347)

Is there anything more needed in the hibernate cfg.xml file ?


Any help will be appreciated.


Thanks
Shobhana

_________________
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 30, 2006 2:15 pm 
Newbie

Joined: Tue May 02, 2006 1:59 pm
Posts: 17
Location: California
My weblogic domain config.xml looks like this :

<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
Name="DBMSConnectionPool"
Password="xxxxxxxxxxxxx" Properties="user="xx"
Targets="abc,def"
TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:IPADDRESS:DBMSN"/>
<JDBCTxDataSource JNDIName="dbms.datasource" Name="DBMSDataSource"
PoolName="DBMSConnectionPool" Targets="VRSN_process_0,VRSN_process_1"/>
</Domain>

I am using DBMSDataSource as the name of the datasource in the hte hibernate.cfg.xml

_________________
Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.