javax.naming.NameNotFoundException: Unable to resolve
I have set up a jdbc data source in my weblogic server called dev_pacp in JNDI name connections that targets the AdminServer. The data source tests successfully. I found the following code to connect to this data source. As follows:
When I run it it provides the above exception. Please help. Thanks Andy
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://sandbox:7001");
ht.put(Context.SECURITY_PRINCIPAL, "weblogic");
ht.put(Context.SECURITY_CREDENTIALS, "weblogic1");
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try