[jboss-user] [Installation, Configuration & Deployment] - Re: Complicated DataSouce and JNDI javax.naming.NamingExcept
jaikiran
do-not-reply at jboss.com
Fri Aug 4 03:59:25 EDT 2006
anonymous wrote : DataSource source = (DataSource)context.lookup("DCDEV"); // DOES NOT WORK
The reason why this wont work is because, by default the datasources are bound in the java: namespace. If you want it to be bound in the global namespace then add the following statement to your ds configuration file(i.e. oracle-ds.xml)
<local-tx-datasource>
| <jndi-name>DCDEV</jndi-name>
| <use-java-context>false</use-java-context>
| ......
| <!-- All your other stuff -->
|
| </local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963103#3963103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963103
More information about the jboss-user
mailing list