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.
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.