INT-2487 Object Name Patterns for Notifications

Permit the specification of an ObjectName pattern in
NotificationListeningMessageProducer.

Permit a collection of ObjectNames (patterns).

INT-2487 Polishing

Use varargs and a SpEL Reference instead of 2 setters.

Log an error if no MBeans matching pattern(s).

INT-2487 Polishing: PR Review Comments

Add patterns to ERROR log when no MBean(s) found.

Add doc to schema and reference.
This commit is contained in:
Gary Russell
2012-08-31 17:53:18 -04:00
committed by Oleg Zhurakousky
parent 3d26bd1a5f
commit d28fefc884
7 changed files with 149 additions and 34 deletions

View File

@@ -56,6 +56,21 @@
event-driven and registered with the <interfacename>MBeanServer</interfacename>
directly. It does not require any poller configuration.
</para>
<note>
For this component only, the <emphasis>object-name</emphasis> attribute can contain an
ObjectName pattern (e.g. "org.foo:type=Bar,name=*") and the adapter will receive notifications
from all MBeans with ObjectNames that match the pattern. In addition, the <emphasis>object-name</emphasis>
attribute can contain a SpEL reference to a &lt;util:list/&gt; of ObjectName patterns:
<programlisting><![CDATA[<jmx:notification-listening-channel-adapter id="manyNotificationsAdapter"
channel="manyNotificationsChannel"
object-name="#{patterns}"/>
<util:list id="patterns">
<value>org.foo:type=Foo,name=*</value>
<value>org.foo:type=Bar,name=*</value>
</util:list>]]></programlisting>
The names of the located MBean(s) will be logged when DEBUG level logging is enabled.
</note>
</section>
<section id="jmx-notification-publishing-channel-adapter">