|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.naming.ExternalContext
A MBean that binds an arbitrary InitialContext into the JBoss default InitialContext as a Reference. If RemoteAccess is enabled, the reference is a Serializable object that is capable of creating the InitialContext remotely. If RemoteAccess if false, the reference is to a nonserializable object that can only be used from within this VM.
NonSerializableFactory
Nested Class Summary | |
static class |
ExternalContext.SerializableInitialContext
The external InitialContext information class. |
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
ExternalContext()
No-args constructor for JMX. |
|
ExternalContext(String jndiName,
String contextPropsURL)
|
Method Summary | |
boolean |
getCacheContext()
|
String |
getInitialContext()
Get the class name of the InitialContext implementation to use. |
String |
getJndiName()
Set the jndi name under which the external context is bound. |
Properties |
getProperties()
Get the InitialContex class environment properties. |
boolean |
getRemoteAccess()
|
void |
setCacheContext(boolean cacheContext)
|
void |
setInitialContext(String className)
Set the class name of the InitialContext implementation to use. |
void |
setJndiName(String jndiName)
Set the jndi name under which the external context is bound. |
void |
setProperties(Properties props)
Set the InitialContex class environment properties. |
void |
setPropertiesURL(String contextPropsURL)
Set the InitialContex class environment properties from the given URL. |
void |
setRemoteAccess(boolean remoteAccess)
|
protected void |
startService()
Start the service by binding the external context into the JBoss InitialContext. |
protected void |
stopService()
Stop the service by unbinding the external context into the JBoss InitialContext. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Constructor Detail |
public ExternalContext()
public ExternalContext(String jndiName, String contextPropsURL) throws IOException, NamingException
Method Detail |
public String getJndiName()
getJndiName
in interface ExternalContextMBean
public void setJndiName(String jndiName) throws NamingException
setJndiName
in interface ExternalContextMBean
NamingException
public boolean getRemoteAccess()
getRemoteAccess
in interface ExternalContextMBean
public void setRemoteAccess(boolean remoteAccess)
setRemoteAccess
in interface ExternalContextMBean
public boolean getCacheContext()
getCacheContext
in interface ExternalContextMBean
public void setCacheContext(boolean cacheContext)
setCacheContext
in interface ExternalContextMBean
public String getInitialContext()
getInitialContext
in interface ExternalContextMBean
public void setInitialContext(String className) throws ClassNotFoundException
setInitialContext
in interface ExternalContextMBean
ClassNotFoundException
public void setPropertiesURL(String contextPropsURL) throws IOException
setPropertiesURL
in interface ExternalContextMBean
IOException
public void setProperties(Properties props) throws IOException
setProperties
in interface ExternalContextMBean
IOException
public Properties getProperties() throws IOException
getProperties
in interface ExternalContextMBean
IOException
protected void startService() throws Exception
Exception
protected void stopService() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |