This content has been marked as final.
Show 3 replies
-
1. Re: Urgent: Problem of set the jboss datasource with name
jaikiran Dec 10, 2009 2:17 AM (in response to sara1232007)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. -
2. Re: Urgent: Problem of set the jboss datasource with name
sara1232007 Dec 10, 2009 8:30 PM (in response to sara1232007)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?
Thanks.
Sara