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 » Problem getting messages in a queue

Post new topic  Reply to topic
 Problem getting messages in a queue « View previous topic :: View next topic » 
You found installing MQ-JMS with your container
Very clear and easy
0%
 0%  [ 0 ]
Somewhat easy
75%
 75%  [ 3 ]
Little difficult
0%
 0%  [ 0 ]
Somehow difficult
0%
 0%  [ 0 ]
Challenging
25%
 25%  [ 1 ]
Total Votes : 4
Author Message
PatrickBlais
PostPosted: Fri Jun 25, 2004 6:41 am    Post subject: Problem getting messages in a queue Reply with quote

Novice

Joined: 07 Apr 2004
Posts: 12
Location: Montreal

Hi guys.

I have setup a foreign JMS server with a com.sun.jndi.fscontext.RefFSContextFactory factory and it works fine after setting up my queues with JMSAdmin tool.

I found out that it was important to set the the localhost value in:
Code:
JNDI Connection URL to  file://localhost/var/mqm/jndi
.

I have been successful in sending some messages in my queue but I am incapable of retreiving the messages i have put in my queue.

I have tried with the MessageListener implementation (with the onMessage) and have tried a direct receive and both do not work.

I am sure the messages are in the queue since
Code:
amqsbcgc MONETIS.BLC0.REPLY.QL EAIQD1
retrieves 4 messages in the queue.

and for the same queue, I get the following when running the code:
Code:
NO messages in queue queue://EAIQD1/MONETIS.BLC0.REPLY.QL?CCSID=819


Does anybody know the reason why?
Any input will be appreciated.

Patrick
_________________
Patrick Blais , Expertus Technologies Inc.
Analyste Programmeur
Courriel/Email: patrick.blais@expertus.ca
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Fri Jun 25, 2004 7:52 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

You need to catch & print out the MQ exception you are getting. i.e. 2045 - incorrect open options.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
PatrickBlais
PostPosted: Fri Jun 25, 2004 8:01 am    Post subject: I didnt get an exception.. Reply with quote

Novice

Joined: 07 Apr 2004
Posts: 12
Location: Montreal

Obviously it would help me out...
_________________
Patrick Blais , Expertus Technologies Inc.
Analyste Programmeur
Courriel/Email: patrick.blais@expertus.ca
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem getting messages in a queue
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.