public class RmiRegistry extends AbstractResourceAdapter
Constructor and Description |
---|
RmiRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addRmiService(RmiService service)
Add an RMI service to register with this Registry.
|
int |
getPort()
The port for the Registry.
|
java.lang.String |
getServer() |
void |
init() |
void |
setPort(int port)
The port for the Registry, default is 1099.
|
void |
setServer(java.lang.String server)
The server that runs the RMI registry.
|
void |
start(BootstrapContext ctx)
Called when the resource starts.
|
void |
stop()
stop (unbind and unexport) all services
|
endpointActivation, endpointDeactivation, getXAResources
public void setServer(java.lang.String server)
public java.lang.String getServer()
public void setPort(int port)
public int getPort()
public void addRmiService(RmiService service) throws ConfigException
ConfigException
@PostConstruct public void init() throws ConfigException
ConfigException
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException
AbstractResourceAdapter
start
in interface ResourceAdapter
start
in class AbstractResourceAdapter
ResourceAdapterInternalException
public void stop()
stop
in interface ResourceAdapter
stop
in class AbstractResourceAdapter