On 7/29/06, jlo_gestalt <[EMAIL PROTECTED]> wrote:
This is a wonderful post. We also have a requirement to trace all the messages going across the NMR regardless of destination. A few more questions though. The pub/sub solution seemed interesting and easy. But with ServiceMix using Queue Semantics by default, do you need to switch it to use Topic Semantics? Also, are only the components who define the subscriptionSpec tag get all the messages, or do all components get them and they just filter the ones that correspond to themselves? If so, wouldn't this be a performance issue with all the components receiving a copy of every message going across the NMR?
Only the components that are subscribers are given a copy of the exchange. Actually, a new exchange is created for all components. Note that this only works for InOnly meps, and for components using an activationSpec (so not for std JBI components). My second question is concerning the auditor classes. I am looking at the
javadocs you included as a link and it is unclear as to how to get an implementation for any of the interfaces or abstract class. For example, how does a developer get a reference to an AbstractAuditor?
The implementations are http://incubator.apache.org/servicemix/maven/servicemix-core/apidocs/org/apache/servicemix/jbi/audit/jdbc/JdbcAuditor.html http://incubator.apache.org/servicemix/maven/servicemix-core/apidocs/org/apache/servicemix/jbi/audit/lucene/LuceneAuditor.html Also it looks like there is a 4th way. By getting a reference to
JbiContainer and adding a class as a listener using the addListener method. Is this a correct assumption?
Yes. The auditors should use this way, as the reference to the container can be injected. There is a JIRA for that. --
View this message in context: http://www.nabble.com/Capture-any-message-off-the-NMR--tf1902644.html#a5551120 Sent from the ServiceMix - User forum at Nabble.com.
-- Cheers, Guillaume Nodet
