diff --git a/src/docbkx/jmx.xml b/src/docbkx/jmx.xml index 8a957daa10..26ba8abbef 100644 --- a/src/docbkx/jmx.xml +++ b/src/docbkx/jmx.xml @@ -19,7 +19,8 @@ object-name="example.domain:name=publisher"/> ]]> - The notification-listening-channel-adapter registers with an MBeanServer at startup, and + + The notification-listening-channel-adapter registers with an MBeanServer at startup, and the default bean name is "mbeanServer" which happens to be the same bean name generated when using Spring's <context:mbean-server/> element. If you need to use a different name be sure to include the "mbean-server" attribute. @@ -101,16 +102,14 @@
Operation Invoking Channel Adapter - The operation-invoking-channel-adapter enables Message-driven invocation of + The operation-invoking-channel-adapter enables Message-driven invocation of any managed operation exposed by an MBean. Each invocation requires the - operation name to be invoked and the ObjectName of the target MBean. In each - case, the adapter will first check for header values on the Message itself. - The keys for these headers are defined as JmxHeaders.OPERATION_NAME and - JmxHeaders.OBJECT_NAME, respectively. If relying on those Message headers, - the configuration is trivial. - + operation name to be invoked and the ObjectName of the target MBean. Both of these must be explicitly provided via adapter configuration: + ]]> - That adapter only needs to be able to discover the "mbeanServer" bean. If + Then the adapter only needs to be able to discover the "mbeanServer" bean. If a different bean name is required, then provide the "mbean-server" attribute with a reference. @@ -123,17 +122,25 @@ would be ignored. - Similar to the behavior described above for the Notification type resoltion, - the operation-invoking-channel-adapter will also fallback to default values if - provided: - -]]> If you want to expose a channel for a single common operation to be invoked by Messages that need not contain headers, then that option works well.
+ +
+ Operation Invoking outbound Gateway + + Similar to operation-invoking-channel-adapter Spring Integration also provides operation-invoking-outbound-gateway + which could be used when dealing with non-void operations and return value is required. + Such return value will be sent as message payload to the 'reply-channel' specified by this Gateway. + +]]> + Another way of provideing the 'reply-channel' is by setting MessageHeaders.REPLY_CHANNEL Message Header + +
Control Bus