[jboss-user] [JBoss Messaging] - Re: Poor performance after replacing JBossMQ

timfox do-not-reply at jboss.com
Tue Sep 26 15:54:11 EDT 2006


Yes.

When you create a consumer on a topic, it creates what is called a "subscription", this can either be durable or non durable (non durable survives a failure like a jms queue).

Each subscription is basically a queue itself, but the difference from a jms queue is that if you create the subscription with a selector then it will only receive messages that match the selector.

Therefore when you consume from it, there is no need to scan it since you already know that all messages match, hence it is much faster.

This is the "correct" pattern, as long as a message only ever matches one of the selectors.

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

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



More information about the jboss-user mailing list