This content has been marked as final.
Show 4 replies
-
1. Re: Looking up datasource defined in Jboss
jbossq Jun 21, 2010 6:25 PM (in response to jithu.mada)You set the use-java-context to true in the db2-ds.xml, so the jndi name of your datasource is java:/DB2DS. Change the lookup parameter to "java:/DB2DS", it will work.
-
2. Re: Looking up datasource defined in Jboss
jithu.mada Jun 22, 2010 10:04 AM (in response to jbossq)Thanks for your reply. I made the change but I am still getting the same exception.
-
3. Re: Looking up datasource defined in Jboss
jaikiran Jun 22, 2010 10:23 AM (in response to jithu.mada)Jithu mada wrote:
Hi,
I need to lookup a datasource defined in Jboss from a standalone Java program.
Since you are looking up from a standlaone program, you won't be able to use the datasource without changing the configuration. See this for details http://community.jboss.org/wiki/HowCanIAccessADataSourceFromAClient. You can then use "DB2DS" as the jndi name for the lookup
-
4. Re: Looking up datasource defined in Jboss
jithu.mada Jun 22, 2010 10:29 AM (in response to jaikiran)Thank you.