Posted: Fri Jun 25, 2004 6:41 am Post subject: Problem getting messages in a queue
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
Posted: Fri Jun 25, 2004 8:01 am Post subject: I didnt get an exception..
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
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