Results 1 to 2 of 2

Thread: JMS problem getting the connection - Please Advice

  1. #1
    Join Date
    Aug 2006
    Posts
    28

    Default JMS problem getting the connection - Please Advice

    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 -> Default Messaging -> Configured Connection Factory and associated with the BUS.
    JMS Providers -> Default Messaging -> Configured Queue


    Service Integration -> Bus -> Configured a Bus
    Buses > MyBus > Bus members > 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 ("JMS_RequestResponseQueue", new MessageCreator ()
    {
    public Message createMessage (Session session) throws JMSException
    {
    return session.createTextMessage ("This is a sample message");
    }
    });
    }
    }


    Below is the stack trace
    ----------------------------

    INFO: Pre-instantiating singletons in factory [org.springframework.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 "P=732297:O=0:CT" org.springframework.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.springframework.jms.connection.SingleConnectio nFactory102.doCreateConnection(SingleConnectionFac tory102.java:123)
    at org.springframework.jms.connection.SingleConnectio nFactory.init(SingleConnectionFactory.java:140)
    at org.springframework.jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:174)
    at org.springframework.jms.connection.SingleConnectio nFactory.createQueueConnection(SingleConnectionFac tory.java:189)
    at org.springframework.jms.core.JmsTemplate102.create Connection(JmsTemplate102.java:154)
    at org.springframework.jms.core.JmsTemplate.execute(J msTemplate.java:420)
    at org.springframework.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.

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    That is likely a configuration issue - this link might provide some useful info.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •