I am wracking my brain for the past 2 days to figure out how to fix this error. I googled and looked into the forum but all efforts were in vain.
I am trying to run JMS Client to put the message into the queue.
Environment - RAD 6.0, Spring
Configuration from Admin Console
--------------------------------------
JMS Providers -gt; Default Messaging -gt; Configured Connection Factory and associated with the BUS.
JMS Providers -gt; Default Messaging -gt; Configured QueueService Integration -gt; Bus -gt; Configured a Bus
Buses gt; MyBus gt; Bus members gt; Messaging engines - Started
Now, configuration is done.
My client program
--------------------
public class JMSSender
{ private JmsTemplate102 jmsTemplate102;
/** * @return Returns the jmsTemplate102. */ public JmsTemplate102 getJmsTemplate102 () { return jmsTemplate102; }
/** * @param jmsTemplate102 * The jmsTemplate102 to set. */ public void setJmsTemplate102 (JmsTemplate102 jmsTemplate102) { this.jmsTemplate102 = jmsTemplate102; }
/** * * */ public void sendMesage () { jmsTemplate102.send (quot;JMS_RequestResponseQueuequot;, new MessageCreator () {public Message createMessage (Session session) throws JMSException{ return session.createTextMessage (quot;This is a sample messagequot;);} }); }
}Below is the stack trace
----------------------------
INFO: Pre-instantiating singletons in factory [org..beans.factory.support.DefaultL istableBeanFactory defining beans [jndiTemplate,internalJmsQueueConnectionFactory,jms QueueConnectionFactory,jmsDestinationResolver,jmsQ ueueTemplate,jmsSender]; root of BeanFactory hierarchy]
In sendMesage
Sep 27, 2006 12:48:53 PM com.ibm.ws.sib.utils.ras.SibMessage
SEVERE: SIB_MESSAGE
Sep 27, 2006 12:48:53 PM com.ibm.ws.sib.utils.ras.SibMessage
WARNING: SIB_MESSAGE
Exception in thread quot =732297:O=0:CTquot; org..jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceExceptio n: CWSIT0006E: It is not possible to contact a messaging engine in bus MyBus..; nested exception is com.ibm.websphere.sib.exception.SIResourceExceptio n: CWSIT0006E: It is not possible to contact a messaging engine in bus MyBus.
javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceExceptio n: CWSIT0006E: It is not possible to contact a messaging engine in bus MyBus..
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFa ctoryImpl.createConnection(JmsManagedConnectionFac toryImpl.java:225)
at com.ibm.ws.sib.api.jms.impl.JmsQueueConnectionFact oryImpl.createQueueConnection(JmsQueueConnectionFa ctoryImpl.java:149)
at com.ibm.ws.sib.api.jms.impl.JmsQueueConnectionFact oryImpl.createQueueConnection(JmsQueueConnectionFa ctoryImpl.java:113)
at org..jms.connection.SingleConnectio nFactory102.doCreateConnection(SingleConnectionFac tory102.java:123)
at org..jms.connection.SingleConnectio nFactory.init(SingleConnectionFactory.java:140)
at org..jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:174)
at org..jms.connection.SingleConnectio nFactory.createQueueConnection(SingleConnectionFac tory.java:189)
at org..jms.core.JmsTemplate102.create Connection(JmsTemplate102.java:154)
at org..jms.core.JmsTemplate.execute(J msTemplate.java:420)
at org..jms.core.JmsTemplate.send(JmsT emplate.java:486)
at JMSSender.sendMesage(JMSSender.java:52)
at JMSSpringTest.sendMesageToSpringJMS(JMSSpringTest. java:154)
at JMSSpringTest.main(JMSSpringTest.java:164)
Caused by: com.ibm.websphere.sib.exception.SIResourceExceptio n: CWSIT0006E: It is not possible to contact a messaging engine in bus MyBus.
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFacto ryImpl2.remoteBootstrap(TrmSICoreConnectionFactory Impl2.java:374)
I really will appreciate if someone could help.
That is likely a configuration issue - this link might provide some useful info. |