[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-960) ClusteredPostOffices are bound to 127.0.0.1 on JGroups config
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Thu May 10 10:12:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBMESSAGING-960?page=comments#action_12361977 ]
Brian Stansberry commented on JBMESSAGING-960:
----------------------------------------------
In JG 2.4.1 / AS 4.2, the address JGroups is bound to is derived as follows (same applies to AS trunk):
1) If system property jgroups.bind.address is set, use that; ignore the bind_addr setting in the XML
1a) Using the -b switch sets this system property
1b) If '0.0.0.0' is passed to -b, can't use that so org.jboss.Main uses the value returned by InetAddress.getLocalHost().getHostName().
1c) If user want JGroups to use a different address than what they use for -b, they can -Djgroups.bind.address=xxx in which case org.jboss.Main will not override their setting with the -b value
2) If system property jgroups.bind.address not set, then JGroups will use the value specified in the bind_addr attribute in XML.
3) If neither bind_addr nor system property is set, JGroups will use the value returned by InetAddress.getLocalHost().getHostName(). This is the default behavior for the AS channels, since user has to do something to set system properties and we don't specifiy anything in bind_addr in XML.
4) If user does -Djgroups.ignore.bind.address=true, JGroups will ignore the jgroups.bind.address property and use the XML value. This is an approach you could take if for some reason you wanted to specify different values for bind_addr in different config files.
> ClusteredPostOffices are bound to 127.0.0.1 on JGroups config
> -------------------------------------------------------------
>
> Key: JBMESSAGING-960
> URL: http://jira.jboss.com/jira/browse/JBMESSAGING-960
> Project: JBoss Messaging
> Issue Type: Bug
> Affects Versions: 1.2.0.SP1
> Reporter: Clebert Suconic
> Assigned To: Clebert Suconic
> Fix For: 1.2.0.SP2
>
>
> We should verify what to do with bind-addr:
> mcast_addr="228.8.8.8" use_outgoing_packet_handler="true" loopback="true" ucast_send_buf_size="32000" ip_ttl="32" bind_addr="127.0.0.1"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list