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
ds=(javax.sql.DataSource) context.lookup ("jdbc/testDS");
conn=(OracleConnection) ds.getConnection();
java.util.Properties prop = new java.util.Properties();
System.out.println("Connection object details : "+conn);
conn.close();
}catch(Exception ex){
//handle the exception
System.out.println("Exception "+ ex);
}
. But I am getting below mentioned error
Exception javax.naming.CommunicationException: https://<host>:7002: [RJVM:000575]Destination <host>, 7002 unreachable.; nested exception is:
javax.net.ssl.SSLHandshakeException: General SSLEngine problem; [RJVM:000576]No available router to destination.; nested exception is:
java.rmi.ConnectException: [RJVM:000576]No available router to destination. [Root exception is java.net.ConnectException: https://<host>:7002: [RJVM:000575]Destination <host>, 7002 unreachable.; nested exception is:
javax.net.ssl.SSLHandshakeException: General SSLEngine problem; [RJVM:000576]No available router to destination.; nested exception is:
java.rmi.ConnectException: [RJVM:000576]No available router to destination.]
Could any one please suggest me the reason for above issue?
Thanks in advance.
Kotresh