I don't think JustinM is using a single multi threaded app.
Correct - I could duplicate the problem using 2 single threaded clients in separate VMs.
A colleague of mine just passed on an article published by Sun (Enterprise Java Technologies Tech Tips for June 25, 2004) (http://enews.sun.com/CTServlet?id=62887183-1724121837:1088182019270) in which I found a peculiar statement:
Under the
Quote:
A Queue ensures that each message is delivered exactly once (or zero times, if it expires) to only one receiver. Only one receiver can connect to a Queue at any one time. The JMS provider (the server that implements the JMS interfaces) blocks attempts by receivers to connect to a busy Queue.
Now the first part of the statement makes sense to me (this is a fundamental of p-to-p messaging). The second statement is what caught my attention.
If only one receiver can connect to a queue at any one time, that would explain my problem. But (as many of us have seen) the POC(s) that we have run have enabled us to have multiple clients connecting to a single queue at the same time.
Now I'm not sure if I am taking this quote out of context or if IBM notion of a connection to a queue is different to a QueueConnection. what I mean is that they may have implemented the following:
- Connect to queue manager (QueueConnection)
- Create QueueReceiver
- Receive message (1)
- Acknowledge (2)
(repeat 1 and 2 multiple time)
- Disconnect from queue manager
IBM may interpret the statement above to mean that only a single receiver may receive a message at any one time (i.e. receives are synchronised between all receivers) but that multiple receivers may be 'listening' for messages at a given time. i.e
- Connect to queue manager (QueueConnection)
- Create QueueReceiver
I'm no closer to the explanation on this side and am only speculating. Unfortunately as I have mentioned previously I don't have access to either the machine that the queue manager is running on so can't go digging around in log files etc.
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