JChannel ch=new JChannel(props);
Event cfg=new Event(Event.CONFIG);
Map m=new HashMap();
m.put("additional_data", "MyChannelName");
cfg.setObject(m);
ch.connect(); // <-- will get a local address with additional_data attachedSo, now you can associate MyChannelName with the IpAddress. Your app would only use ipAddr.getAdditionalData() to identify the address, rather than host:port.
Sacha, try this out and let me know whether you have additional reqs.
Scott M Stark wrote:
But what is the nameservice for these 'logical' names, and what layer uses them?
-- Bela Ban www.javagroups.com (408) 316-4459
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
