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 » Strange MQ-JMS behavior

Post new topic  Reply to topic
 Strange MQ-JMS behavior « View previous topic :: View next topic » 
Author Message
jags
PostPosted: Fri Jan 11, 2002 7:21 pm    Post subject: Reply with quote

Newbie

Joined: 10 Jan 2002
Posts: 2
Location: Jags

Hi All,

I have an application that uses JMS over MQSeries 5.1 on Windows 2000. I create a queue connection using MQConnectionFactory and I set a message listener on the queue. This connection is created with the Session.CLIENT_ACKNOWLEDGE. When a message arrives in the queue, the listener gets an onMessage() callback. The listener performs some process and commits the queue. The application ends normally after this, but the message is put back into the queue.

The reason it is strange is that this behavior is reproducible only when the MQSeries and the application are run in the same machine. If the MQSeries is installed on a remote machine, things behave the way I expect them to. i.e. The message is not in the queue after the application ends.

Has anyone noticed this problem?

Regards,
Jags
Back to top
View user's profile Send private message Send e-mail
jags
PostPosted: Mon Jan 14, 2002 7:34 pm    Post subject: Reply with quote

Newbie

Joined: 10 Jan 2002
Posts: 2
Location: Jags

The problem is solved. The queue connections were initialized multiple times in the same thread. This caused this strange behavior. It is still strange why the behavior was not consistent with the MQSeries on a remote machine.

Regards,
Jags
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Strange MQ-JMS behavior
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.