Response broadcasting
In addition to being able to receive each transaction response directly, the transaction responses can also be broadcast to any system that is listening.
InfoSphere® MDM has
a default broadcast constructor that is configured in the following
configuration entry:
/IBM/DWLCommonServices/Notifications/BroadcastConstructor/classNameThe default value of this configuration setting is
com.ibm.mdm.common.notification.BroadcastConstructorHowever,
you can replace it with your own by adding your own to a bundle and
specifying its class name in the configuration entry.Before OSGi
Customizing required a change to the configuration entry.
With OSGi
Customizing requires a change
to the configuration entry, and you must register your broadcast constructor
in a blueprint file similar to the following example:
<service id="BroadcastConstructor"
interface="com.ibm.mdm.common.servicefactory.api.CommonServiceFactory">
<service-properties>
<entry key="common.service" value="BroadcastConstructor.x.y.z.myConstruct"/>
</service-properties>
<bean class="com.ibm.mdm.common.servicefactory.CommonServiceFactoryImpl">
<argument type="java.lang.Class"
value="com.dwl.base.requestHandler.interfaces.IResponseConstructor"/>
<argument type="java.lang.Class" value="x.y.z.myConstruct" />
<argument ref="blueprintBundle"/>
</bean>
</service>