Wave: JNDI connection cannot be obtained via com.spirit.directory.SpiritDirectoryContextFactory using SSL protocol (Doc ID 1025119.1)

Last updated on FEBRUARY 05, 2013

Applies to:

Oracle Java CAPS JMS Grid - Version 5.1.1 and later
Information in this document applies to any platform.
Information in this document applies to any platform.
***Checked for relevance on 05-Feb-2013***

Symptoms

JNDI connection cannot be obtained via com.spirit.directory.SpiritDirectoryContextFactory using SSL protocol

>>>>>>WARN 2006-05-09 16:55:01,677 (com.spirit.directory.SpiritDirectoryContextFactory) - Failed To get Context

The Wave InitialContext is obtained as shown below:

private static final Properties JMS_PROPERTIES = new Properties();
static {
JMS_PROPERTIES.setProperty("messageChannels", "ssl://Shashi2k:6124,ssl://Shashi2k:6125");
JMS_PROPERTIES.setProperty("pingEnabled", "true");
JMS_PROPERTIES.setProperty("username", "admin");
JMS_PROPERTIES.setProperty("password", "admin");
JMS_PROPERTIES.setProperty("secure","true");
JMS_PROPERTIES.setProperty("clientRootCACertFilename", "rsa-root.pem");
JMS_PROPERTIES.setProperty("clientCertFilename", "rsa-client.pem");
JMS_PROPERTIES.setProperty("privateKeyFilename", "rsa-client.pem");
JMS_PROPERTIES.setProperty("privateKeyPassword", "password");
JMS_PROPERTIES.setProperty("cipher", "TLS_RSA_WITH_3DES_EDE_CBC_SHA");

JMS_PROPERTIES.setProperty("java.naming.factory.initial", "com.spirit.directory.SpiritDirectoryContextFactory");
JMS_PROPERTIES.setProperty("doClientAuthentication", "false");
}

InitialContext ctx = new InitialContext( JMS_PROPERTIES);
connection = ((QueueConnectionFactory)ctx.lookup("QueueConnectionFactory")).createQueueConnection();

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms