This topic provides a set of specific tips to help you troubleshoot problems for JMS messaging with the default messaging provider.
For general tips about troubleshooting problems with WebSphere messaging, see Tips for troubleshooting WebSphere Messaging. This topic provides additional tips specific to the default messaging provider and its use of service integration technologies.
CWSIJ0005E: An instance of the channel framework service to use for communication cannot be found
The ConnectionFactory for the default messaging provider has a dependency on the Channel Framework Service. It locates the Channel Framework Service using a lookup in the JNDI name space. To connect to a naming service, the ConnectionFactory uses an InitialContext object created using the default constructor.
When the JMS client is running within an application server environment, the InitialContext object is able to successfully connect to the naming service, the Channel Framework Service is located and the call to createConnection completes successfully.
CWSIJ0005E: An instance of the channel framework service to use for communication cannot be found
String key = "java.naming.provider.url"; String value = "iiop://some.remote.machine:9810"; System.setProperty(key, value);
This code should be run prior to invoking the createConnection method on the ConnectionFactory object.
This ensures that if no provider URL is specified programmatically, then any InitialContext objects default to using the provider URL specified on the command line.