dcsimg
onMessage() and receive(0)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   wendy_wang
Posted On:   Monday, October 25, 2004 02:00 AM

Is there any implementation difference between setting up a MessageListener and calling receive(0) on SwiftMQ router?

We have a JMS Client tries to retrieve messages from a topic and passes these messages to the other application. If choosing to use receive(0) , will it block some resources on the router or just the calling thread on the client side be blocked?

Re: onMessage() and receive(0)

Posted By:   Andreas_Mueller  
Posted On:   Monday, October 25, 2004 02:53 AM

Both work on the client-side message cache. During onMessage, a thread from the client's session pool is blocked. For receive(), the thread calling the method is blocked. There are no resources used at the router.
About | Sitemap | Contact