|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.kernel.ServiceAdapter | +--jrun.naming.NamingService
This is the JNDI bootstrap class. It is a JRun and JMX service fired not via the server deployer, but by the core JRun bootstrap class (jrunx.kernel.JRun). This is necessary because the service infrastructure requires JNDI as an internal element instead of as a plugin.
The NamingService listens on a particular port that is configured via the Context.PROVIDER_URL in the server's SERVER-INF/jndi.properties file. It accepts requests from remote JRunNamingContext objects.
When a request arrives, it handles security authentication via a rendezvous with the JRunSecurityManager, and then sends a security id and a ContextProxy stub to the remote JRunNamingContext.
| Field Summary | |
static java.lang.String |
OBJECT_NAME
JMX Object Name of this service. |
static ContextManager |
rootContext
The top-level Context Proxy. |
static JRunNamingContext |
serverContext
This server's server-scoped context. |
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Fields inherited from interface jrun.naming.NamingServiceMBean |
AUTH, CLUSTER |
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Constructor Summary | |
NamingService()
Deploys JNDI upon construction. |
|
| Method Summary | |
int |
getJRMPPort()
Get the port on which context proxy objects returned by the server are listening. |
int |
getOrbPort()
Get the port on which COSNaming is listening. |
int |
getPort()
Get the port on which the service listens for remote JRunNamingContext requests. |
static int |
getServerPort()
Return port, on which NamingService was started and accepts requests and start listening for requests from remote JRunNamingContext objects. |
void |
handleEvent(ServerEvent event,
java.lang.Object handback)
Handle a server event |
boolean |
isUsingCORBA()
|
void |
restartJNDI()
Convenience method for JMX |
void |
run()
Handle requests from remote JRunNamingContext objects. |
void |
setJRMPPort(int port)
Set the port on which context proxy objects returned by the server are listening. |
void |
setOrbPort(int port)
Set the port on which COSNaming is listening. |
void |
setPort(int port)
Set the port on which the service listens for remote JRunNamingContext requests. |
void |
setUsingCORBA(boolean b)
|
void |
start()
Enable remote access to JNDI by converting the root Context into a clustered service and starting the Naming server's network listener. |
void |
stop()
Every service other than mere data collections should stop |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, updateStatus |
| Field Detail |
public static ContextManager rootContext
public static JRunNamingContext serverContext
public static final java.lang.String OBJECT_NAME
| Constructor Detail |
public NamingService()
| Method Detail |
public static int getServerPort()
public void start()
throws java.lang.Exception
start in interface Servicestart in class ServiceAdapter
public void handleEvent(ServerEvent event,
java.lang.Object handback)
ServerEventListenerhandleEvent in interface ServerEventListenerjrunx.kernel.ServerEventListenerevent - The server eventhandback - The object handback supplied when the listener was registeredpublic void run()
run in interface java.lang.Runnablepublic void stop()
ServiceAdapterstop in interface Servicestop in class ServiceAdapter
public void restartJNDI()
throws java.lang.Exception
restartJNDI in interface NamingServiceMBeanpublic void setPort(int port)
setPort in interface NamingServiceMBeanpublic int getPort()
getPort in interface NamingServiceMBeanpublic void setJRMPPort(int port)
setJRMPPort in interface NamingServiceMBeanpublic int getJRMPPort()
getJRMPPort in interface NamingServiceMBeanpublic void setOrbPort(int port)
setOrbPort in interface NamingServiceMBeanpublic int getOrbPort()
getOrbPort in interface NamingServiceMBeanpublic boolean isUsingCORBA()
isUsingCORBA in interface NamingServiceMBeanpublic void setUsingCORBA(boolean b)
setUsingCORBA in interface NamingServiceMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||