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:
committed by
Oleg Zhurakousky
parent
3d26bd1a5f
commit
d28fefc884
@@ -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 <util:list/> 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">
|
||||
|
||||
Reference in New Issue
Block a user