Constructs an RMIConnector
that will connect
the RMI connector server with the given address.
The address can refer directly to the connector server,
using one of the following syntaxes:
service:jmx:rmi://[host[:port]]/stub/encoded-stub
service:jmx:iiop://[host[:port]]/ior/encoded-IOR
(Here, the square brackets []
are not part of the
address but indicate that the host and port are optional.)
The address can instead indicate where to find an RMI stub
through JNDI, using one of the following syntaxes:
service:jmx:rmi://[host[:port]]/jndi/jndi-name
service:jmx:iiop://[host[:port]]/jndi/jndi-name
An implementation may also recognize additional address
syntaxes, for example:
service:jmx:iiop://[host[:port]]/stub/encoded-stub
Parameters:
-
url - the address of the RMI connector server.
-
environment - additional attributes specifying how to make
the connection. For JNDI-based addresses, these attributes can
usefully include JNDI attributes recognized by {@link
InitialContext#InitialContext(Hashtable) InitialContext}. This
parameter can be null, which is equivalent to an empty Map.
Throws:
-
IllegalArgumentException - if
url
is null.