Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMS in WebSphere Application Server 6.0

843830Jun 27 2005 — edited Oct 27 2005
Hi all,

I'm new to WebSphere, I installed a trial version of WAS 6.0 and attemting to just use the embedded default messaging engine. I think I configured everything correctly (tough I don't get why you need to configure a BUS when it's irrelevant) but always get the following exception from my client:

Jun 27, 2005 12:12:20 PM com.ibm.ws.sib.utils.ras.SibMessage
SEVERE: SIB_MESSAGE
Jun 27, 2005 12:12:21 PM com.ibm.ws.sib.utils.ras.SibMessage
WARNING: SIB_MESSAGE
Exception in thread "P=135964:O=0:CT" javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to contact a messaging engine in bus TestBus..
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:225)
at com.ibm.ws.sib.api.jms.impl.JmsQueueConnectionFactoryImpl.createQueueConnection(JmsQueueConnectionFactoryImpl.java:149)
at com.ibm.ws.sib.api.jms.impl.JmsQueueConnectionFactoryImpl.createQueueConnection(JmsQueueConnectionFactoryImpl.java:113)
at MainIBM.main(MainIBM.java:19)
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to contact a messaging engine in bus TestBus.
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.remoteBootstrap(TrmSICoreConnectionFactoryImpl2.java:374)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.createConnection(TrmSICoreConnectionFactoryImpl2.java:147)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.createConnection(TrmSICoreConnectionFactoryImpl2.java:95)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:498)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:434)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createConnection(JmsJcaConnectionFactoryImpl.java:277)
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:195)
... 3 more

Does anybody know what the problem may be?

here's a snippet of my client code:

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.jms.*;
import java.util.*;

public class MainIBM
{
public static void main(String []args) throws Exception {
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://127.0.0.1:2809/");

Context ctx = new InitialContext(env);

QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("jms/cf");
Queue queue = (Queue)ctx.lookup("jms/tq");

QueueConnection connection = qcf.createQueueConnection(); <<-- exception occurs here

...


Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2005
Added on Jun 27 2005
5 comments
372 views