[jboss-user] [Messaging, JMS & JBossMQ] - JmsMessageConsumer vs SpiMessageConsumer

kspreddy do-not-reply at jboss.com
Thu Mar 1 09:32:22 EST 2007


Hello,

I am not sure of the different between org.jboss.resource.adapter.jms.JmsMessageConsumer and org.jboss.mq.SpiMessageConsumer. (similarly JmsSession vs SpiSession)

Is there any doc that explain when to use what?

The reason why I am asking this question is: Using JmsSession/jmsMessageConsumer creates a seperate thread to listen to the queue where as SpiSession/SpiMessageConsumer won't create extra thread but the same thread is registered as a listener for multiple calls to setMessageListener method.

Thanks,
Siva

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024277#4024277

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024277



More information about the jboss-user mailing list