Es-Synchronizer contains a set modules able to synchronize resources between two framework. This kind of synchronization is used between EasierGOV, EasyESB/PEtALS DSB and EasierBSM.
Es-Synchronizer API provides some ways to synchronize frameworks/platforms together. The initial goal of this API is to be able to get existing resources (i.e. mainly endpoints) and to be notified when resources appears and disappears (with the help of WS Notification implementation). Implementation can be summarized as:
- The ESB (EasyESB or PEtALS DSB ) exposes the resource API on http://localhost:8280/services/resourcesExternalEndpoint for EasyESB or on http://localhost:7600/petals/ws/ExecutionEnvironmentManager for PEtALSDSB (change host and port if needed...)
- The ESB must provide a topic for resources. This topic is defined with NS = http://www.petalslink.org/resources/event/1.0 and LocalPart = CreationResourcesTopic.
Interested parties have to subscribe to this topic using WS-Notification to be notified when new resources appear or disappear (More details on WS-Notification support is given in the WSN support section). Once the subscription is effective, the subscriber will receive WS-N Notify message which contains the ID and type of the resources.
A sample of SOAP notification message emitted by the ESB when a new endpoint is created is:
In this snippet, the notification is sent to http://localhost:9000/services/RawService and the resource ID is
{http://www.petalslink.org/endpoint/HelloWorld}HelloWorldServicePort of type endpoint.