Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WAS 5.1 - JDBC Data Source issue

Status
Not open for further replies.

ybh6336

Programmer
Jul 15, 2005
1
US
Hello all,

I added a new DB2 data source to the JDBC
providers for my application. The connection is fine since it succeeds when I do a 'Test Connection'. Now my application accesses the data source in the following way:

ds=(DataSource)ctx.lookup("java:/Test_OracleDS"); //ctx is context

I tried giving JNDI name for the data source as both 'Test_OracleDS' and 'java:/Test_OracleDS', but the application is not able to find the data source. I have done exactly the same thing on Weblogic and OC4J servers, and it works fine (I gave the JNDI name as 'java:/Test_OracleDS' in the other two). Is there anything else I need to do? The scope of the data source is at the server level (server1). As additional info, I have not set any 'Name Space Bindings' in the 'Environment'. Do I need to do anything with that? Really appreciate any help.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top