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 » slow messaging using JMS

Post new topic  Reply to topic
 slow messaging using JMS « View previous topic :: View next topic » 
Author Message
fanningpj
PostPosted: Wed Feb 27, 2002 3:46 am    Post subject: Reply with quote

Newbie

Joined: 03 Dec 2001
Posts: 7

I've got two threads, one sending messages and the other receiving. The two threads share the same QueueConnection and QueueSession. The connection is 'started' throughout. I'm doing synchronous receives in a loop using the same QueueReceiver. A new QueueSender is created for each send and then closed.
This runs quickly in JBossMQ (50+ messages per second) whereas when I use MQSeries v5.2, it takes 5 seconds for EACH message. I'm obviously doing something which MQSeries doesn't like.
To re-engineer this in my particular would be quite painful. Can anyone see what I might be doing wrong?

Thanks in advance,
PJ
Back to top
View user's profile Send private message Visit poster's website
abmanesh
PostPosted: Wed Feb 27, 2002 11:48 am    Post subject: Reply with quote

Apprentice

Joined: 06 Nov 2001
Posts: 39

Sessions are not thread safe. You can sure have anomalies if you create multiple threads using the same session.
If you want to have one thread producing messages while other consume
messages, use separate Session for each thread.

[ This Message was edited by: abmanesh on 2002-02-27 11:49 ]
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 » slow messaging using JMS
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.