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

lutoff
19.58.2006 0b93c3c34f27efde6287454ed6d2483555837591
refs
author lutoff <lutoff@localhost>
Tuesday, September 19, 2006 08:58 +0200
committer lutoff <lutoff@localhost>
Tuesday, September 19, 2006 08:58 +0200
commit0b93c3c34f27efde6287454ed6d2483555837591
tree 7ad531e46a95cce6a32aeee91411b0d846ece9d1 tree | zip | gz
parent f9a021d92562ec506f98875d691b5d6ac862167e 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
opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/OpendsRmiServerSocketFactory.java 90 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/RmiConnector.java 50 ●●●●● diff | view | raw | blame | history