On Thu, Dec 29, 2011 at 12:23 AM, Wei CSDL Shi <shiwc...@cn.ibm.com> wrote:
> Yes, I am looking for how to setup wire between specific gadget instances. > I've checked the gadget topics, it seems that once gadget A published a > topic, all the gadget B instances which subscribed to that topic, will be > invoked. Is there a way that I can only invoke one specific gadget B > instance when I publish a topic? > That desire seems totally opposite of the whole reason that pub-sub architectures exist in the first place. The basic idea is that gadget A says "here is something that happened" with absolutely no knowledge about who might or might not be listening. The fundamental principle is to separate the event producers and the event listeners, after all. If you care about a particular B being the only one receiving that notification, why not set up a private topic that only that particular B instance listens to? Or use some completely separate 1:1 mechanism, since pub-sub is obviously not what you really want? Craig McClanahan