How to get OracleConnection in Oracle 12c WebLogic without specify IP weblogic server using Java Spring Framework

I have to deploy WAR to oracle 12c weblogic server and access it's datasource. but i will deploy it in several weblogic server with different IP. is there any way to get connection to weblogic datasource without specify ip of the weblogic itself? assuming that the WAR is deployed in the same weblogic server and needed to access it's datasouce specified in the weblogic?

i can get oracle connection but must specify the IP. here is my code :


String urlparam = "t3://";

String datasourceparam = "jdbc/devtest";

Hashtable env = new Hashtable();

env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts