This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 3, 2014, 2:58 PM
3 Posts

Connecting to ActiveMQ

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: ActiveMQ,JMS
  • Replies: 0

I am attempting to connect to an ActiveMQ message bus to send data to another application.  I have a code example from Developer Works but it is geared more towards WebSphere.  When I try to make the connection, I receive the following error:

Failed to create InitialContext using factory specified in hashtable [Root exception is java.lang.NullPointerException]

The only change that I have made to the example is this code snippet:

// setup connection to JNDI provider
 Hashtable environment = new Hashtable();   
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "tcp://myserver.company.com:41616");

Any help woul be appriciated.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal