[
https://issues.apache.org/jira/browse/OPENEJB-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294230#comment-13294230
]
Andy Gumbrecht commented on OPENEJB-1838:
-----------------------------------------
To configure MultiPulse follow these steps (This is a guide, obviously you can
change several configuration values to meet your requirements):
1. Create or edit the '[OpenEJB]/conf/multipulse.properties' file with the
following content:
server = org.apache.openejb.server.discovery.MulticastPulseAgent
bind = 239.192.3.2
port = 7142
disabled = false
group = YourGroupName
2. Optionally (but recommended) disable the multicast service defined in
'[OpenEJB]/conf/multicast.properties' by setting 'disabled' to 'true'
3. Edit the discovery '[OpenEJB]/conf/ejbd.properties' (and other services that
allow the 'discovery' property) by defining the discovery host as either
'0.0.0.0' for IPv4 or '[::]' for IPv6:
server = org.apache.openejb.server.ejbd.EjbServer
bind = 0.0.0.0
port = 4201
disabled = false
threads = 10
discovery = ejb:ejbd://0.0.0.0:{port}
4. Restart the server.
5. Clients may now connect in the usual manner by simply changing the URI
scheme to 'multipulse', observing the host (bind), port and group defined in
step 1:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL,
"multipulse://239.192.3.2:7142?group=YourGroupName");
InitialContext remoteContext = new InitialContext(p);
> Add 'MultiPulse' discovery - An alternative multicast discovery option
> ----------------------------------------------------------------------
>
> Key: OPENEJB-1838
> URL: https://issues.apache.org/jira/browse/OPENEJB-1838
> Project: OpenEJB
> Issue Type: Improvement
> Components: server
> Affects Versions: (not version related)
> Environment: All
> Reporter: Andy Gumbrecht
> Assignee: Andy Gumbrecht
> Priority: Trivial
> Labels: MultiPulse, Multicast
> Fix For: (trunk/openejb)
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Add a multicast discovery feature that does not require a constant heartbeat.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira