[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] Client connections to different servers

zhang wrote:
how can one client be subscriber of one xmlBlaster instance and
     publisher of another xmlBlaster instance?

I think client must specify their xmlBlaster instance at startup.

Try two different XmlBlasterConnection:

   // add your specific settings here
   String[] args1 = { "-hostname", "host1.com", -port", "8089" }
   XmlBlasterConnection con1 = new XmlBlasterConnection(args1, true);
   // publish ...


   String[] args2 = { "-hostname", "host2.com", -port", "9977" }
   XmlBlasterConnection con2 = new XmlBlasterConnection(args2, true);
   // subscribe ...