On 13/02/2008, Jeroen van Bergen <vanbergen.jeroen@gmail.com> wrote:
>
>
>
> wha wrote:
> >
> > I can't see your entire code.
> > I don't know if you have a setMessageListener(YourConsumerClass) for your
> > consumer.
> > Your consumer class must implement MessageListener.
> >
>
> What I gathered from the JMS API documentation is that a call to receive()
> of a Consumer (as defined in the JMS API) amounts to the same thing.
> Furthermore I want to have control over when my consumer actually consumes
> messages, so I'm using receiveNoWait() to consume messages from the queue.
Do you just do one call to receiveNoWait() then nothing else? It
sometimes takes up to a second for the first message to arrive?
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com
|