Patent ID: 8621037

Claim:
A method to create a bi-directional event subscription, comprising: receiving a discovery request from a web browser for a URI of a subscription factory of a first topic; providing a URI of the subscription factory of the first topic; receiving a request from the web browser to create a bidirectional subscription; creating a first subscription resource to represent an outbound event flow from a first topic to a second topic; sending a discovery request to a remote host for a URI of a subscription factory of the second topic; receiving from the remote host the URI of the subscription factory of the second topic; requesting that the remote host create a second subscription resource, to represent an inbound event flow from the second topic to the first topic, wherein the request further comprises a request to entangle the second subscription with the first subscription; receiving from the remote host a URI of the second subscription resource; entangling the first subscription with the second subscription to form the bi-directional event subscription, wherein entangled subscriptions are created in one transaction and deleted in one transaction, such that one subscription of the entangled subscriptions does not exist without the other subscription of the entangled subscriptions; and providing to the web browser a URI of the first subscription.