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 » WSAD 5.1 and MQ 3.5

Post new topic  Reply to topic
 WSAD 5.1 and MQ 3.5 « View previous topic :: View next topic » 
Author Message
moi3
PostPosted: Fri Jun 24, 2005 10:46 am    Post subject: WSAD 5.1 and MQ 3.5 Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

I'm setting up an environment to use external mq instead of the built in jms provider on my win2000 machine for development. here are the steps that i did

1) I used the admin console-->Resources-->Websphere MQ JMS provider and created the following qcf and queue destination

Name:myQCF
JNDI:jms/myQCF
Queue Manager: MY.MQ

Name: myQ
JNDI: jms/myQ
Queue Nanager: MY.MQ (This is a remote queue)
Queue: MY.Q

2) I opened the web.xml-->Resource and added 2 items

Name: myQCF
Type: javax.jms.QueueConnectionFactory
JNDI: jms/myQCF

Name: myQ
Type: javax.jms.Queue
JNDI: jms/myQ

3) I opened up the websphere test server--->JMS tab and added under JMS destinations and JMS connection factories the following 2 items

Name: myQCF
JNDI: jms/myQCF

Name: myQ
JNDI: jms/myQ

Under JMS Server properties, I added the queue name as myQ and leave the default property for JMS provider as MQ Simulator for Java Developers

I used AMQSPUT and tested out the connection for the queues and channels and they worked fine so there's nothing wrong with the queues and channels.

When I ran my J2EE app, when I tried to send a message, I got the following error.

[24/06/05 11:22:02:834 PDT] 1bab174b SystemErr R javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue
[24/06/05 11:22:02:834 PDT] 1bab174b SystemErr R at com.ibm.mq.jms.MQQueueSession.getQueueOpenException(MQQueueSession.java:935)
[24/06/05 11:22:02:834 PDT] 1bab174b SystemErr R at com.ibm.mq.jms.MQQueueSession.getOutputQueue(MQQueueSession.java:876)
[24/06/05 11:22:02:834 PDT] 1bab174b SystemErr R at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:205)
[24/06/05 11:22:02:834 PDT] 1bab174b SystemErr R at com.ibm.ejs.jms.JMSQueueSenderHandle.<init>(JMSQueueSenderHandle.java:86)

I DON'T KNOW IF I'M MISSING ANY STEPS IN CONFIGURING THIS. I used this article as a guide. Any one has any ideas? Thanks

http://www-106.ibm.com/developerworks/ibm/library/i-jms2/
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Jun 24, 2005 11:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Catch the linked exception. It will tell you exactly what is wrong. I'd also recommend that you don't use the MQ Java for Developers. It may not support remote queues.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
moi3
PostPosted: Fri Jun 24, 2005 1:50 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

Thanks for your reply but it does not work either. Somehow WASD can't establish a connection with the queue.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Jun 24, 2005 2:25 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

moi3 wrote:
Thanks for your reply but it does not work either. Somehow WASD can't establish a connection with the queue.

He didn't tell you it would WORK if you caught the linked exception.

He said it would tell you what is WRONG.

And we can't help you until we know what is wrong - and the linked exception will tell us that.

So what's the linked exception?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
moi3
PostPosted: Fri Jun 24, 2005 2:44 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

I ran it again and this time there's no error but the remote queue is empty. I stopped the sender channel already so the message should be in the queue.
Back to top
View user's profile Send private message Send e-mail
moi3
PostPosted: Fri Jun 24, 2005 3:30 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

thanks everyone's replies but i got it working already. i need to delete all the jms qcf and queues from the jms internal server.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Jun 24, 2005 6:32 pm    Post subject: Reply with quote

Grand High Poobah

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

moi3 wrote:
thanks everyone's replies but i got it working already. i need to delete all the jms qcf and queues from the jms internal server.

Exactly what I thought ... Multiple objects with the same jndi name doesn't work. The jndi name needs to be unique in the name space....

Enjoy
Back to top
View user's profile Send private message Send e-mail
sanks
PostPosted: Thu Jan 12, 2006 2:07 am    Post subject: Reply with quote

Apprentice

Joined: 21 Mar 2005
Posts: 27

javax.jms.InvalidDestinationException: MQJMS2008 will only happen when destination Queue Name or Qmanager name is not correct or not running properly. Nothing else. Before going to other, check the above things very care fully.
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 » WSAD 5.1 and MQ 3.5
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.