• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL configuration for standalone JMS client  RSS feed

 
Vinay karthik
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a JMS client which will call websphere MQ. Now i am trying to configure SSL in my client.

jars used

com.ibm.ws.messagingClient.jar,
com.ibm.ws.orb_8.0.0.jar,
com.ibm.ws.sib.client.thin.jms_8.0.0.jar,
com.ibm.ws.ejb.thinclient_8.0.0.jar,
com.ibm.ws.jpa.thinclient_8.0.0.jar.

My config.properties file has "com.ibm.ssl.protocol=SSL".

Java Code

Hashtable properties = new Hashtable();
properties.put(javax.naming.Context.PROVIDER_URL, "iiop://localhost:2809");
properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
properties.put("java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null,null));
InitialContext initialContext = new InitialContext(properties);

Properties configFile = new Properties();
FileInputStream input = new FileInputStream("config.properties");
configFile.load(input);
System.setProperties(configFile);


Error

com.ibm.rmi.ras.Utility.newWriter: could not write to orbtrc.09042015.1201.07.txt : java.lang.NullPointerException
com.ibm.rmi.ras.Utility.newWriter: could not write to orbtrc.09042015.1201.07.txt : java.lang.NullPointerException
com.ibm.rmi.ras.DefaultOrbTrcLogger.traceFormat: caught exception

Please help me to resolve this issue.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!