WebSphere Application Server - Re: Standalone JMS Client problem hetting the connection - Please Advice

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2006 > Re: Standalone JMS Client problem hetting the connection - Please Advice





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Standalone JMS Client problem hetting the connection - Please Advice
Stephen Cocks

2006-09-27, 7:39 pm

Have you set a value for the "provider endpoints" on the Connection Factory
you configured via the console?

If not it will be looking to connect to localhost:7276 to bootstrap
connection to the bus (which might not be appropriate in your environment)

--
Stephen Cocks
WESB/WPS System Administration

<xgr3@yahoo.com> wrote in message
news:876711375.1159373246381.JavaMail.wassrvr@ltsgwas010.sby.ibm.com...
>
> 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 standalone JMS Client to put the message into the
> queue.
>
> Environment - RAD 6.0
>
> Configuration
> ----------------
> 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
> --------------------
>
> private void putMessage()
> {
>
> try
> {
> Hashtable env = new Hashtable();
>
> env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
> env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
>
> Context initialContext = new InitialContext(env);
>
> ConnectionFactory connectionFactory =
> (ConnectionFactory)initialContext.lookup("myconnectionfactory");
> Queue queue = (Queue)initialContext.lookup("myqueue");
>
> Connection conn = connectionFactory.createConnection();
> conn.start();
>
> Session session = conn.createSession(false,
> Session.AUTO_ACKNOWLEDGE);
>
> ...
> ...
> ...
>
>
> conn.stop();
> }
> catch(Exception e)
> {
> // oooooooopss somethign wrong
> }
> }
>
> It is erroring at Connection conn = connectionFactory.createConnection();
>
> Below is the stack trace
> ----------------------------
>
> ep 27, 2006 11:40:03 AM com.ibm.ws.sib.utils.ras.SibMessage
> SEVERE: SIB_MESSAGE
> Sep 27, 2006 11:40:03 AM com.ibm.ws.sib.utils.ras.SibMessage
> WARNING: SIB_MESSAGE
> 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 mybus..
> at
> com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:225)
> at
> com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:148)
> at JMSTest.getContext(JMSTest.java:122)
> at JMSTest.main(JMSTest.java:165)
> Caused by: com.ibm.websphere.sib.exception.SIResourceException:
> CWSIT0006E: It is not possible to contact a messaging engine in bus mybus.
> at
> com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. remoteBootstrap(TrmSICoreConnectionFacto
ryImpl2.java:374)
> at
> com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. createConnection(TrmSICoreConnectionFact
oryImpl2.java:147)
> at
> com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2. createConnection(TrmSICoreConnectionFact
oryImpl2.java:95)
> at
> com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createCoreConnection(JmsJcaConnectionFac
toryImpl.java:498)
> at
> com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createCoreConnection(JmsJcaConnectionFac
toryImpl.java:434)
> at
> com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl. createConnection(JmsJcaConnectionFactory
Impl.java:277)
> at
> com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl. createConnection(JmsManagedConnectionFac
toryImpl.java:195)
>
> I really will appreciate if someone could help.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com