|
Re: multicast ping: msg#00024java.javagroups.general
You could do this with simple multicasting code, or you could use JGroups (with the bare-bones.xml config) to simply send out a multicast and wait for the first reply. So, no, you don't need to rip out some JGroups-internal code and use it in your project, but you could simply use a JChannel to do that. Robert Bowen wrote: > Hello all. > > I've been out of the JGroups loop for a while but diligently perusing > the mailing list. > > I had a question about an app I need to write. What I need to do is, > in a given moment send out a multicast "ping" and return the ip of the > first machine that answers. I know that internally this is what > JGroups does to keep an updated list of "alive" machines. My question > is, can I use the same internal mechanism JGroups uses? I don't think > so, not without deconstructing the code. > > The other option is to send out my own multicast message, but if I'm > not mistaken, multicast messages don't send back responses. > > Any thoughts? -- Bela Ban Lead JGroups / Manager JBoss Clustering Group JBoss - a division of Red Hat ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | multicast ping, Robert Bowen |
|---|---|
| Next by Date: | Group merge problem after network disconnect, Shan Ponnusamy |
| Previous by Thread: | multicast ping, Robert Bowen |
| Next by Thread: | Re: multicast ping, Robert Bowen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |