Programmatically accessing DBCS using java- javax.naming.CommunicationException
Summary
Programmatically accessing DBCS using java- javax.naming.CommunicationExceptionContent
I have a java program which will be deployed to JCS. We have created one table which will be used by our java program.
To interact with DBCS, i have created data source in my jcs weblogic console and trying to access as shown below
OracleConnection conn=null;
javax.sql.DataSource ds=null;
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
env.put(Context.PROVIDER_URL, "https://<host>:7002");
try{
Context context=new InitialContext( env );
//you will need to have create a Data Source with JNDI name testDS
1