-->
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: How to configure the DataSource in JBoss?
PostPosted: Thu Sep 22, 2005 8:01 am 
Beginner
Beginner

Joined: Wed Apr 27, 2005 8:27 am
Posts: 27
I configured the DataSource of my application in server/all/deploy/ejb3.deployer/META-INF/persistence.properties. In hibernate.connection.datasource=java:/MyApplicationDS.
But when I deploy it, it shows me the message: javax.naming.NameNotFoundException: MyApplicationDS not bound.
Somebody knows what's wrong?

Thanks, Guilherme


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 12:30 pm 
Beginner
Beginner

Joined: Thu Sep 15, 2005 4:16 pm
Posts: 29
Ours is configured in the ds file like this:

<datasources>
<local-tx-datasource>
<jndi-name>jdbc/rxdefault</jndi-name>

and referenced like this in our Spring config:

<property name="dataSource" value="jdbc/rxdefault"/>

Generally not bound means that as jndi runs down the url it didn't find the name part. Many environment already setup the base url, like java: or java:comp/env before evaluating a jndi name like "MyAppDS".

If you're running on multiple application servers, it's especially important to isolate those dependencies.


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.