3 Replies Latest reply on May 5, 2006 2:40 AM by stone_42

    Publisher-Subscriber with JBossWS

      Hello,

      I want to implement something like a publisher subscriber pattern with web services, where one publisher web service sends messages to all subscriber web services having registered before. To fulfill this task, the publisher web service requires something like a reference to each subscribed subscriber web service, e.g. the URL where it is deployed.
      I would like the subscriber web services to hand their URL to the publisher web service (in plain Java, I would call "publisher.subscribe(this)"). Is there any possibility in JBossWS to resolve the URL of a web service from within it, i.e. something like "this" in Java?

      Thanks for your help,
      Martin Steinle

        • 1. Re: Publisher-Subscriber with JBossWS

          Hi Martin,

          Interesting problem, have you considered leveraging JMS as the backend to perform the publish subcribe portion with a service front end that allows a new request to be posted?

          My 2 cents, sounds like an interesting services challenge.

          Ernie

          • 2. Re: Publisher-Subscriber with JBossWS
            burrsutter

            Have you checked out WS-Eventing in JBossWS? I've not personally looked at it beyond the content of the user guide however it sounds very much like what you are looking for.

            http://labs.jboss.com/portal/jbossws/user-guide/en/html/wseventing.html

            Please let us know as I'm curious to hear the various real world use cases for this standard.

            What kind of business problem are you trying to solve with Pub-Sub in web services? Are any non-Java technologies being used and need to participate?

            Thanks,
            Burr
            burr.sutter@jboss.com

            • 3. Re: Publisher-Subscriber with JBossWS

              Now I had a look at WS-Eventing, it seems to be the solution to the problem I have.
              My use case for it is -as I think- quite common. It is from workflow management, where business processess (e.g. implemented as web services) can issue user tasks to a web service called task manager (that would be the publisher). When a user has completed, the process (the subscriber) is asynchronously informed about that.
              In the future, we will implement our processes in BPEL, and also .NET web services should be able to issue tasks. So the publisher is Java (at the moment, it is running on JBossWS4EE), and the subscribers can be anything that is able to interact as a web service client.

              Thanks for your information,
              Martin