[jboss-user] [Persistence] - Re: Urgent: Problem of set the jboss datasource with name

jaikiran do-not-reply at jboss.com
Thu Dec 10 02:17:34 EST 2009


java:comp/env namespace has a special meaning. Why are you setting the JNDI in the datasource to this format? Why not set the jndi-name in the -ds.xml to:

<jndi-name>jdbc/juddiDB</jndi-name>

Then you can lookup using:

initCtx.lookup("java:jdbc/juddiDB");

If you want the datasource to be available in the java:comp/env namespace then it requires a different set of steps.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269926#4269926

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269926



More information about the jboss-user mailing list