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?
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 ]
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