Re: [jgroups-dev] problem about linux dhcp
Bela Ban <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <[email protected]> |
By default JGroups picks the first non-loopback address, so it should use your DHCP configured address. You can set this address using -Djgroups.bind_addr=x.x.x.x. I suggest you post to the Infinispan forum or mailing list, with a concrete example of how this happened... FangYuan wrote: > HI guys: > Now I'm using jgroups with infinispan at linux host. Now jgroups always > use 127.0.0.1 as bind_addr when using DHCP . It seems like infinispan > doesn't change some configuration . While running jgroups independently > doesn't have such problem. I have traced starting up of jgroups , I find > something wrong in getAddresses function of Configurator class. This > function always get 127.0.0.1 as localhost address . I don't know the > reason . > And I found two functions in Configurator class is misleading . > They are createInetAddressMap and setupProtocolStack . Could someone > help me to understand their purpose and implementation . > Thanks. -- Bela Ban Lead JGroups / Clustering Team JBoss ------------------------------------------------------------------------------ _______________________________________________ Javagroups-development mailing list