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:
Then you can lookup using:
If you want the datasource to be available in the java:comp/env namespace then it requires a different set of steps.
Thank jaikiran for the reponse. I have no problem to set the datasource with name "java:jdbc/juddiDB". But "java:comp/env/jdbc/juddiDB" is what I need.
Could you give me some advice for this?