mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
19.58.2006 e5bf2a8578b2316d866a45f93b259570c687b10b
refs
author lutoff <lutoff@localhost>
Tuesday, September 19, 2006 08:58 +0200
committer lutoff <lutoff@localhost>
Tuesday, September 19, 2006 08:58 +0200
commite5bf2a8578b2316d866a45f93b259570c687b10b
tree 306df7f661539f012e2c7cd4666e7a562f3b843f tree | zip | gz
parent 23a954009f2051abbfa38c5695f2a181af1cea2f view | diff
Pb description (issue #648):
The Jmx connector handler is starting a local RMI registry on port 1689 (actually the port specified in the config.ldif file). Even if you stop the DS server, but if the process is keeping alive, the RMI registry will remain active and will still listen on this port.

Fix:
Instead of using the default factory to get the RMI registry, we use our own socketFactory and keep a reference to the created socket. At server shutdown time, this socket is closed and the RMI registry Remote Object is 'unexported'

Modified Class
org.opends.server.protocols.jmx.RmiConnector

New Class
org.opends.server.protocols.jmx.OpendsRmiServerSocketFactory
1 files added
1 files modified
140 ■■■■■ changed files
opends/src/server/org/opends/server/protocols/jmx/OpendsRmiServerSocketFactory.java 90 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java 50 ●●●●● diff | view | raw | blame | history