[OPENDJ-821] Add support for setting the listen-address on JMXConnectionHandler... Created: 20/Mar/13  Updated: 08/Nov/19  Resolved: 02/Mar/15

Status: Done
Project: OpenDJ
Component/s: core server
Affects Version/s: 2.6.0, 2.4.6
Fix Version/s: 3.0.0, 2.8.0, 2.6.2

Type: Improvement Priority: Major
Reporter: Ludovic Poitou Assignee: Ludovic Poitou
Resolution: Fixed Votes: 0
Labels: release-notes

Dev Assignee: Ludovic Poitou
QA Assignee: Christophe Sovant
Support Ticket IDs:


This has been reported on the OpenDJ mailing list by Chee Chong Low, as below.
Looking at the code, the JMXConnectionHandler doesn't have any code to check the listen-address and pass it down to the RMIConnector.

Chee Chong Low wrote:
In config.ldif, we know the default listen address is
It is possible to manually change the default listen address to a static IP address via the ds-cfg-listen-address attribute.

However, this only works for
1. dn: cn=Administration Connector,cn=config
2. dn: cn=LDAP Connection Handler,cn=Connection Handlers,cn=config
3. dn: cn=LDAPS Connection Handler,cn=Connection Handlers,cn=config

There is no effect when I added ds-cfg-listen-address to dn: cn=JMX Connection Handler,cn=Connection Handlers,cn=config.

In fact, there is no default value to it in the first place. Why?

Comment by Ludovic Poitou [ 20/Mar/13 ]

JMX is built on RMI which doesn't offer an interface to select the listen address of the socket created.
The only factory to create a server socket is RMIServerSocketFactory.createServerSocket(int port).
The interface hasn't evolved since Java 1.2 (and I doubt it will evolved anymore).
I therefore suggest to close this issue as will not fix.
There might be workarounds to hack around the socket creation, but I'm not sure it's really worth the effort.

Comment by Peter Major [X] (Inactive) [ 24/Oct/14 ]

How about doing something similar to JBoss?

Comment by Ludovic Poitou [ 24/Oct/14 ]

That approach would work, yes.

Comment by Chris Ridd [ 02/Mar/15 ]

Reopening so I can change the resolution.

Comment by Matthew Swift [ 07/Nov/19 ]

Moved to closed state because the fixVersion has already been released.

Generated at Tue Jul 07 23:23:12 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.