2 Replies Latest reply on Dec 26, 2011 9:04 AM by sangireddi

    SonicMq and SSL

    ernie666

      Hi!
      We want to send messages via SSL using SonicMQ as JMS-Provider.
      Our Message-Driven-Bean is deployed correctly.
      But when the MDB tries to connect to JMS Provider following message appears:

      2004-11-28 19:47:11,530 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroying DLQHandler
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroyed DLQHandler
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@1445d28
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
      2004-11-28 19:47:21,530 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: progress.message.jclient.QueueConnectionFactory@140109f
      2004-11-28 19:47:21,592 INFO [STDOUT] No trusted CA certificate is specified.
      2004-11-28 19:47:21,592 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
      javax.jms.JMSException: Unable to register trusted CA certificate(s) or trust decider to verify the broker certificate
      at progress.message.jimpl.JMSExceptionUtil.createJMSException(:42)
      at progress.message.jimpl.Connection.(:667)
      at progress.message.jimpl.QueueConnection.(:97)
      at progress.message.jclient.QueueConnectionFactory.createQueueConnection(:232)
      at progress.message.jclient.QueueConnectionFactory.createQueueConnection(:209)
      at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:545)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:767)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1272)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:779)



      So, it looks like JBoss can not find the SSL-Certificate. In a standalone client, which
      we used to test the connection to SonicMQ, we had to call a Batch file which did following call:

      java client -cp "%SONICMQ_CLASSPATH%;" -DSSL_CA_CERTIFICATE_DIR=e:/CA

      We tried to give JBoss the -D parameter in the run.bat but this did not solve.

      Can anybody help us and tell us where we have to put the Certificate?