ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS MQJE016 Reason 2009

Post new topic  Reply to topic
 JMS MQJE016 Reason 2009 « View previous topic :: View next topic » 
Author Message
naory
PostPosted: Sat May 06, 2006 8:55 am    Post subject: JMS MQJE016 Reason 2009 Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Hello,

I am trying to acces a remote MQ Qmanager using JMS for the first time.
I am using Spring to configure my simple client.

here is the Spring config:

Code:
        <bean id="mqJmsTemplate"        class="org.springframework.jms.core.JmsTemplate102">
            <property name="connectionFactory" ref="uatMQQueueConnectionFactory"/>
            <property name="destinationResolver" ref="jmsDestinationResolver"/>
            <property name="pubSubDomain" value="false"/>
            <property name="receiveTimeout" value="20000"/>
        </bean>

        <!-- JMS Destination Resolver -->
        <bean id="jmsDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
            <property name="jndiTemplate" ref="jndiTemplate"/>
            <property name="cache" value="true"/>
        </bean>

        <!-- IBM MQ UAT JMS Queue Connection Factory -->
        <bean id="uatMQQueueConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
            <property name="jndiTemplate" ref="jndiTemplate"/>
            <property name="lookupOnStartup" value="false"/>
            <property name="proxyInterface" value="javax.jms.QueueConnectionFactory"/>
            <property name="jndiName" value="MQ_UAT_QMGR"/>
        </bean>
       
        <bean id="myQqueueListener" class="com.itp.gt.queue.mq.MQQueueReceiver" init-method="initialize">
            <property name="queue" value="MY_Q"/>
            <property name="jmsTemplate102" ref="mqJmsTemplate"/>
        </bean>


I use JMSAdmin to define the remote queue manager and queue:
Code:

def qcf(MQ_UAT_QMGR) qmgr(QM.CBX2GSS1) tran(client) chan(java.channel) host(192.168.219.81) port(1421)
def q(MY_Q) qmgr(MQ_UAT_QMGR) queue(Q.SETT.IN)


and finally, my simple listener code is trying to read messages in a loop using:
Code:

Message msg = jmsTemplate102.receive(queue);           
TextMessage textMessage = (TextMessage) msg;
if( msg != null){
     logger.info(" Message Received -->" +  textMessage.getText());
}


however I get the following error:

Code:
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '192.168.219.81:QM.CBX2GSS1'; nested except
ion is com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009



Can anyone help on what I might be doing wrong here?

Many Thanks,
naor
Back to top
View user's profile Send private message
wschutz
PostPosted: Sat May 06, 2006 3:35 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You might want to look at the qmgr's log on 192.168.219.81 to see what it says (AMQERR01.LOG)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
naory
PostPosted: Sat May 06, 2006 9:12 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Thanks for your help. My error was due to an error in the channel's name.

However, now I'm getting a new error:

Code:
javax.jms.JMSException: MQJMS1017: non-local MQ queue not valid for receiving or browsing; nested exception is jav
ax.jms.JMSException: MQJMS1017: non-local MQ queue not valid for receiving or browsing


I've verified that the queue I'm trying to access is listed as "Local" for the queue manager i'm connecting to.

any help on this would be appreciated.

naor
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun May 07, 2006 7:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

What this means is that the queue does not have to just exist on the qmgr you are connected to it has to be as well defined on this qmgr as a "queue local".

There are different type of queues -- all defined locally -- on a qmgr.
  1. queue local -- this one you can browse and receive from
  2. queue remote -- used as a pointer to a queue local on a different qmgr
  3. queue alias -- used as a pointer to queue on the same qmgr
  4. queue model -- used as a template for dynamic creation of a queue
  5. queue cluster -- when defined locally it can be accessed on a remote qmgr, within the cluster, as you would access a queue remote there.
  6. queue local usage xmitq -- a local queue serving to move messages from one qmgr to the other via a channel. It should never be directly posted to by the application
Hope I haven't forgotten any.

The crux of the matter is that you can never browse or receive from a queue that is not defined as a queue local to the qmgr you are connected to.
Note that even though the queue local has to be locally defined to the qmgr the 2 definitions are far from being synonyms.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
naory
PostPosted: Sun May 07, 2006 9:46 am    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Thanks for the info. I finally got everything to work after discovering another error in my configuration and changing the way I define the queue using the JMSAdmin utility.

This is the queue definition that worked:

Code:
DEFINE Q(MY_Q) QMGR(MQ_UAT_QMGR) QUEUE(Q.SETT.IN) TARGCLIENT(JMS)


I am now able to both send and receive messages from this queue using the spring jmsTemplate from code running in weblogic and using weblogic's JNDI(!!!)

I do have one final question. I need to set a replyTo queue for a remote queue that I will be putting messages on. This setup is already working using the non-JMS API and as I wish to migrate the code to use the Spring+JMS solution I am wondering how to define this for JMS. I assume there would be some JMSAdmin syntax for that but couldn't find a manual for it anywhere.

Clould someone please point me to the right place to look it up?

Thanks again.

Naor
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun May 07, 2006 12:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Define it as a "normal" queue with JMSAdmin giving it it's qmgr and queue name.
Then retrieve the queue through JNDI and put the retrieved object into the JMSReplyto field of the message. (You will have to cast at a minimum to javax.jms.Destination).

If you need a dynamic queue make sure the qcf has a model queue attached. This should allow you to define a dynamic queue using the session object.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
naory
PostPosted: Mon May 08, 2006 4:56 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Thanks for your help.

I am looking for another way to get the MQConnection factory instead of JNDI.
Running the JMSAdmin script to re-register the MQConnectionFactory after weblogic restarts is not an option and I use weblogic's JNDI as the client and server are on different machines and using a file-based JNDI is not an option either.

I've tried using spring on the client box configured:

Code:
<!-- JMS Connection Factory Bean -->
<bean id="jmsConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
   <property name="queueManager">
      <value>manager</value>
   </property>
   <property name="hostName">
      <value>host</value>
   </property>
   <property name="port">
      <value>port</value>
   </property>
   <property name="channel">
      <value>channel</value>
   </property>
</bean>

<!-- JMS Template -->
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
   <property name="connectionFactory">
      <ref local="jmsConnectionFactory" />
   </property>
</bean>


but I get the following error:

Code:
May-08-2006 23:55:42  INFO (MQQueueSender.java:67) - Sending message...
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(Ljava.lang.Class;Ljava.lang.String;Z)V(Unknown Source)
at java.lang.Runtime.loadLibrary0(Ljava.lang.Class;Ljava.lang.String;)V(Unknown Source)
at java.lang.System.loadLibrary(Ljava.lang.String;)V(Unknown Source)
at com.ibm.mq.MQSESSION.loadLib(Ljava.lang.String;)V(MQSESSION.java:865)
at com.ibm.mq.server.MQSESSION$1.run()Ljava.lang.Object;(MQSESSION.java:227)


From the error it seems that MQQueueConnectionFactory is looking for the server modules that are not available on the client box.

I know that the server modules are not required for my java client to connect to a remore MQ server.

Why are these required for JMS to work?
Do I have to be running some java process on the server box? (JMSAdmin?)

could you please explain?
naor
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon May 08, 2006 5:01 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to ensure that you are a) not specifying the queue manager name - it's irrelevant for client connections as the channel, port and host name have to be unique to a queue manager, b) not attempting to do XA as XA requires the server bindings (or the Extended Transactional Client).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
naory
PostPosted: Mon May 08, 2006 5:14 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

thanks for the auick reply.

i've commented out the queuemanager from the config but still get the same error.

my current configuration is:


Code:
<bean id="jmsMQConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
        <!--property name="queueManager" value="QM.CBX2GSS2"/-->
        <property name="hostName" value="192.168.219.80"/>
        <property name="port" value="1442"/>
        <property name="channel" value="CH.CBX2GSS.SRVC"/>
</bean>


any idea what is still wrong?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon May 08, 2006 5:17 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You are sure you are not doing XA?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
naory
PostPosted: Mon May 08, 2006 5:40 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

No XA - all I'm doing in my code is:

Code:
Message msg = jmsTemplate102.receive(queueName);


the full exception I get is:

Code:
May-09-2006 01:10:25  INFO (MQQueueSender.java:67) - Sending message...
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
        at java.lang.ClassLoader.loadLibrary(Ljava.lang.Class;Ljava.lang.String;Z)V(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Ljava.lang.Class;Ljava.lang.String;)V(Unknown Source)
        at java.lang.System.loadLibrary(Ljava.lang.String;)V(Unknown Source)
        at com.ibm.mq.MQSESSION.loadLib(Ljava.lang.String;)V(MQSESSION.java:865)
        at com.ibm.mq.server.MQSESSION$1.run()Ljava.lang.Object;(MQSESSION.java:227)
        at jrockit.vm.AccessController.do_privileged(Ljava.security.PrivilegedAction;Ljava.security.AccessControlContext
;I)Ljava.lang.Object;(Unknown Source)
        at jrockit.vm.AccessController.doPrivileged(Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
        at com.ibm.mq.server.MQSESSION.<clinit>()V(MQSESSION.java:221)
        at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown Source)
        at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION()Lcom.ibm.mq.MQSESSION;(MQSESSIONServer.java:68)
        at com.ibm.mq.MQSESSION.getSession(Lcom.ibm.mq.MQManagedConnectionJ11;)Lcom.ibm.mq.MQSESSION;(MQSESSION.java:493
)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(Ljava.lang.String;Ljava.util.Hashtable;Ljavax.resource.spi.Connectio
nRequestInfo;Lcom.ibm.mq.MQManagedConnectionFactory;)V(MQManagedConnectionJ11.java:155)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(Ljavax.resource.spi.ConnectionReque
stInfo;Z)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:153)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(Ljavax.resource.spi.ConnectionReques
tInfo;)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:189)
        at com.ibm.mq.StoredManagedConnection.<init>(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resource.spi.Connecti
onRequestInfo;Lcom.ibm.mq.ManagedConnectionStore;Lcom.ibm.mq.PoolScavenger;Lcom.ibm.mq.MQSimpleConnectionManager;)V(Stor
edManagedConnection.java:80)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resourc
e.spi.ConnectionRequestInfo;)Ljava.lang.Object;(MQSimpleConnectionManager.java:171)
        at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConne
ctionManager;)Lcom.ibm.mq.MQQueueManager;(MQQueueManager.java:754)
        at com.ibm.mq.MQQueueManager.construct(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConnectionManager;Lj
avax.resource.spi.ConnectionManager;)V(MQQueueManager.java:688)
        at com.ibm.mq.MQQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQQueueManager.java:469)
        at com.ibm.mq.MQSPIQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQSPIQueueManager.java:52)
        at com.ibm.mq.jms.MQConnection.createQM()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:2255)
        at com.ibm.mq.jms.MQConnection.createQMNonXA()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:1749)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;Ljava.lang.String;Ljava.lang
.String;)V(MQQueueConnection.java:144)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;)V(MQQueueConnection.java:54
)
        at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection()Ljavax.jms.QueueConnection;(MQQueueConnectionF
actory.java:106)
        at org.springframework.jms.core.JmsTemplate102.createConnection()Ljavax.jms.Connection;(JmsTemplate102.java:154)

        at org.springframework.jms.core.JmsTemplate.execute(Lorg.springframework.jms.core.SessionCallback;Z)Ljava.lang.O
bject;(JmsTemplate.java:420)
        at org.springframework.jms.core.JmsTemplate.receive(Ljava.lang.String;)Ljavax.jms.Message;(JmsTemplate.java:619)

        at com.itp.gt.queue.mq.MQQueueReceiver.startListening()V(MQQueueReceiver.java:106)
        at com.itp.gt.queue.mq.MQQueueReceiver.run()V(MQQueueReceiver.java:53)
        at java.lang.Thread.run()V(Unknown Source)
java.lang.NoClassDefFoundError: com/ibm/mq/server/MQSESSION
        at com.ibm.mq.MQSESSIONServer.getMQSESSION()Lcom.ibm.mq.MQSESSION;(MQSESSIONServer.java:68)
        at com.ibm.mq.MQSESSION.getSession(Lcom.ibm.mq.MQManagedConnectionJ11;)Lcom.ibm.mq.MQSESSION;(MQSESSION.java:493
)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(Ljava.lang.String;Ljava.util.Hashtable;Ljavax.resource.spi.Connectio
nRequestInfo;Lcom.ibm.mq.MQManagedConnectionFactory;)V(MQManagedConnectionJ11.java:155)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(Ljavax.resource.spi.ConnectionReque
stInfo;Z)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:153)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(Ljavax.resource.spi.ConnectionReques
tInfo;)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:189)
        at com.ibm.mq.StoredManagedConnection.<init>(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resource.spi.Connecti
onRequestInfo;Lcom.ibm.mq.ManagedConnectionStore;Lcom.ibm.mq.PoolScavenger;Lcom.ibm.mq.MQSimpleConnectionManager;)V(Stor
edManagedConnection.java:80)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resourc
e.spi.ConnectionRequestInfo;)Ljava.lang.Object;(MQSimpleConnectionManager.java:171)
        at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConne
ctionManager;)Lcom.ibm.mq.MQQueueManager;(MQQueueManager.java:754)
        at com.ibm.mq.MQQueueManager.construct(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConnectionManager;Lj
avax.resource.spi.ConnectionManager;)V(MQQueueManager.java:688)
        at com.ibm.mq.MQQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQQueueManager.java:469)
        at com.ibm.mq.MQSPIQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQSPIQueueManager.java:52)
        at com.ibm.mq.jms.MQConnection.createQM()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:2255)
        at com.ibm.mq.jms.MQConnection.createQMNonXA()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:1749)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;Ljava.lang.String;Ljava.lang
.String;)V(MQQueueConnection.java:144)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;)V(MQQueueConnection.java:54
)
        at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection()Ljavax.jms.QueueConnection;(MQQueueConnectionF
actory.java:106)
        at org.springframework.jms.core.JmsTemplate102.createConnection()Ljavax.jms.Connection;(JmsTemplate102.java:154)

        at org.springframework.jms.core.JmsTemplate.execute(Lorg.springframework.jms.core.SessionCallback;Z)Ljava.lang.O
bject;(JmsTemplate.java:420)
        at org.springframework.jms.core.JmsTemplate.send(Ljava.lang.String;Lorg.springframework.jms.core.MessageCreator;
)V(JmsTemplate.java:486)
        at com.itp.gt.queue.mq.MQQueueSender.sendMessage(Ljava.lang.String;)V(MQQueueSender.java:68)
Back to top
View user's profile Send private message
naory
PostPosted: Mon May 08, 2006 6:03 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Now after changing the ip to a dnsname i get a different one:


Code:
java.lang.NoClassDefFoundError: com/ibm/mq/server/MQSESSION
        at com.ibm.mq.MQSESSIONServer.getMQSESSION()Lcom.ibm.mq.MQSESSION;(MQSESSIONServer.java:68)
        at com.ibm.mq.MQSESSION.getSession(Lcom.ibm.mq.MQManagedConnectionJ11;)Lcom.ibm.mq.MQSESSION;(MQSESSION.java:493
)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(Ljava.lang.String;Ljava.util.Hashtable;Ljavax.resource.spi.Connectio
nRequestInfo;Lcom.ibm.mq.MQManagedConnectionFactory;)V(MQManagedConnectionJ11.java:155)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(Ljavax.resource.spi.ConnectionReque
stInfo;Z)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:153)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(Ljavax.resource.spi.ConnectionReques
tInfo;)Lcom.ibm.mq.MQManagedConnectionJ11;(MQBindingsManagedConnectionFactoryJ11.java:189)
        at com.ibm.mq.StoredManagedConnection.<init>(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resource.spi.Connecti
onRequestInfo;Lcom.ibm.mq.ManagedConnectionStore;Lcom.ibm.mq.PoolScavenger;Lcom.ibm.mq.MQSimpleConnectionManager;)V(Stor
edManagedConnection.java:80)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(Lcom.ibm.mq.MQManagedConnectionFactory;Ljavax.resourc
e.spi.ConnectionRequestInfo;)Ljava.lang.Object;(MQSimpleConnectionManager.java:171)
        at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConne
ctionManager;)Lcom.ibm.mq.MQQueueManager;(MQQueueManager.java:754)
        at com.ibm.mq.MQQueueManager.construct(Ljava.lang.String;Ljava.util.Hashtable;Lcom.ibm.mq.MQConnectionManager;Lj
avax.resource.spi.ConnectionManager;)V(MQQueueManager.java:688)
        at com.ibm.mq.MQQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQQueueManager.java:469)
        at com.ibm.mq.MQSPIQueueManager.<init>(Ljava.lang.String;Ljava.util.Hashtable;)V(MQSPIQueueManager.java:52)
        at com.ibm.mq.jms.MQConnection.createQM()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:2255)
        at com.ibm.mq.jms.MQConnection.createQMNonXA()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:1749)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;Ljava.lang.String;Ljava.lang
.String;)V(MQQueueConnection.java:144)
        at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;)V(MQQueueConnection.java:54
)
        at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection()Ljavax.jms.QueueConnection;(MQQueueConnectionF


I've verifies that the class com/ibm/mq/server/MQSESSION is in the classpath for the client.

any idea?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 09, 2006 7:44 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

naory wrote:
thanks for the auick reply.

i've commented out the queuemanager from the config but still get the same error.

my current configuration is:


Code:
<bean id="jmsMQConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
        <!--property name="queueManager" value="QM.CBX2GSS2"/-->
        <property name="hostName" value="192.168.219.80"/>
        <property name="port" value="1442"/>
        <property name="channel" value="CH.CBX2GSS.SRVC"/>
</bean>


any idea what is still wrong?

What about the transport attribute ? TCP_Client ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
naory
PostPosted: Tue May 09, 2006 8:10 pm    Post subject: Reply with quote

Novice

Joined: 05 Oct 2005
Posts: 17

Doh!!! good catch! adding the following property resolved the issue:

Code:
<property name="transportType" value="1"/>


Thanks so much for your help.

naor
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS MQJE016 Reason 2009
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.