activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonas Lim" <j...@exist.com>
Subject Re: receive() method not working on TopicSubscriber
Date Mon, 11 Sep 2006 01:21:31 GMT
Hi,

Can you check if you're calling the connection's start method 
(connection.start()) before calling the receive() method?

Regards,
Jonas


----- Original Message ----- 
From: "rabidgremlin" <rabidgremlin@gmail.com>
To: <activemq-users@geronimo.apache.org>
Sent: Monday, September 11, 2006 7:48 AM
Subject: receive() method not working on TopicSubscriber


> Hi All,
>
> I have a piece of code which sets up a TopicSubscriber with a
> MessageListener. This works fine.
>
> I'm now trying to poll the TopicSubscriber instead (it suits my code
> better).
>
> So now my code does not register a listener and simply calls receive() on
> the TopicSubscriber.
>
> However this does not work :( The receive() method never returns.
>
> What do I need to do differently to get the receive() method to function
> correctly ?
>
> Thanks
>
> Jonathan
> 


Mime
View raw message