Show Table of Contents
5.6.2. Detached Invoker Reference
5.6.2.1. The JRMPInvoker - RMI/JRMP Transport
The
org.jboss.invocation.jrmp.server.JRMPInvoker class is an MBean service that provides the RMI/JRMP implementation of the Invoker interface. The JRMPInvoker exports itself as an RMI server so that when it is used as the Invoker in a remote client, the JRMPInvoker stub is sent to the client instead and invocations use the RMI/JRMP protocol.
The JRMPInvoker MBean supports a number of attribute to configure the RMI/JRMP transport layer. Its configurable attributes are:
- RMIObjectPort: sets the RMI server socket listening port number. This is the port RMI clients will connect to when communicating through the proxy interface. The default setting in the
jboss-service.xmldescriptor is 4444, and if not specified, the attribute defaults to 0 to indicate an anonymous port should be used. - RMIClientSocketFactory: specifies a fully qualified class name for the
java.rmi.server.RMIClientSocketFactoryinterface to use during export of the proxy interface. - RMIServerSocketFactory: specifies a fully qualified class name for the
java.rmi.server.RMIServerSocketFactoryinterface to use during export of the proxy interface. - ServerAddress: specifies the interface address that will be used for the RMI server socket listening port. This can be either a DNS hostname or a dot-decimal Internet address. Since the
RMIServerSocketFactorydoes not support a method that accepts an InetAddress object, this value is passed to theRMIServerSocketFactoryimplementation class using reflection. A check for the existence of apublic void setBindAddress(java.net.InetAddress addr)method is made, and if one exists theRMIServerSocketAddrvalue is passed to theRMIServerSocketFactoryimplementation. If theRMIServerSocketFactoryimplementation does not support such a method, theServerAddressvalue will be ignored. - SecurityDomain: specifies the JNDI name of an
org.jboss.security.SecurityDomaininterface implementation to associate with theRMIServerSocketFactoryimplementation. The value will be passed to theRMIServerSocketFactoryusing reflection to locate a method with a signature ofpublic void setSecurityDomain(org.jboss.security.SecurityDomain d). If no such method exists theSecurityDomainvalue will be ignored.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.