|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.jca.ra.AbstractResourceAdapter
com.caucho.resources.rmi.RmiRegistry
public class RmiRegistry
An RMI registry and its services. This resource is used to register services with an RMI Registry. The Registry is either on localhost, in which case it is created in the local JVM unless it already exists, or the Registry is on a remote server, in which case it is assumed that the Registry has already been started.
Constructor Summary | |
---|---|
RmiRegistry()
|
Method Summary | |
---|---|
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 |
Methods inherited from class com.caucho.jca.ra.AbstractResourceAdapter |
---|
endpointActivation, endpointDeactivation, getXAResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RmiRegistry()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |