I see different use cases for this, but the use case at hand is a slightly advanced publish-subscribe use case as follows:
I have an application publishing updates and an unknown number of consumers that expose the same “Update” Web Service (at different endpoints). The consumers can dynamically subscribe for the updates (createSubscription, suspend/resumeSubscription and removeSubscription). When the consuming applications create a new subscription, they start getting updates at the endpoint they register.
Now I can easily create/suspend/remove a trigger with the services in the pub.trigger directory, but I have not found a way to create a corresponding handler for the trigger which invokes the Update service at the correct endpoint.
The handler would be almost the same for all triggers, but should at least get the endpoint information to know where to invoke the Update service.
The current idea was to create the trigger and a trigger handler service for every new subscriber and setting the endpoint information at runtime for it.
If I use a generic handler for all the dynamically created triggers, I don’t know which endpoint this trigger represents. I have not found an easy way to find out from which trigger a particular service has been invoked at runtime.
Any better idea or approach to solve this is also appreciated.
Thanks much
Rico
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services