|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ejb.EjbModule
An EjbModule represents a collection of beans that are deployed as a unit.
The beans may use the EjbModule to access other beans within the same deployment unit.
Container
(src) ,
EJBDeployer
(src) Field Summary | |
static int |
ANY
|
static java.lang.String |
BASE_EJB_MODULE_NAME
|
static int |
BMT
|
static int |
CMT
|
static java.lang.String |
DEFAULT_ENTITY_BMP_CONFIGURATION
|
static java.lang.String |
DEFAULT_ENTITY_CMP_CONFIGURATION
|
static java.lang.String |
DEFAULT_MESSAGEDRIVEN_CONFIGURATION
|
static java.lang.String |
DEFAULT_STATEFUL_CONFIGURATION
|
static java.lang.String |
DEFAULT_STATELESS_CONFIGURATION
|
static ObjectName (src) |
EJB_MODULE_QUERY_NAME
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
EjbModule(DeploymentInfo (src) di,
TransactionManager (src) tm,
ObjectName (src) webServiceName)
|
Method Summary | |
void |
addLocalHome(Container (src) con,
EJBLocalHome (src) localHome)
|
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
protected void |
destroyService()
Sub-classes should override this method to provide custum 'destroy' logic. |
java.lang.ClassLoader |
getClassLoader()
Get the class loader of this deployment unit. |
Container (src) |
getContainer(java.lang.String name)
Get a container from this deployment unit that corresponds to a given name |
java.util.Collection |
getContainers()
Get all containers in this deployment unit. |
EJBLocalHome (src) |
getLocalHome(Container (src) con)
|
java.lang.Object |
getModuleData(java.lang.Object key)
|
java.util.Map |
getModuleDataMap()
|
java.net.URL |
getURL()
Get the URL from which this deployment unit was deployed |
boolean |
isCallByValue()
Whether the container is call by value |
void |
putModuleData(java.lang.Object key,
java.lang.Object value)
|
void |
removeContainer(Container (src) con)
Remove a container from this deployment unit. |
void |
removeLocalHome(Container (src) con)
|
void |
removeModuleData(java.lang.Object key)
|
void |
setClassLoader(java.lang.ClassLoader cl)
Set the class loader of this deployment unit |
protected void |
startService()
The mbean Service interface start method calls
the start method on each contatiner, then the init method on each
container. |
protected void |
stopService()
Stops all the containers of this application. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, 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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BASE_EJB_MODULE_NAME
public static final ObjectName (src) EJB_MODULE_QUERY_NAME
public static java.lang.String DEFAULT_STATELESS_CONFIGURATION
public static java.lang.String DEFAULT_STATEFUL_CONFIGURATION
public static java.lang.String DEFAULT_ENTITY_BMP_CONFIGURATION
public static java.lang.String DEFAULT_ENTITY_CMP_CONFIGURATION
public static java.lang.String DEFAULT_MESSAGEDRIVEN_CONFIGURATION
public static final int BMT
public static final int CMT
public static final int ANY
Constructor Detail |
public EjbModule(DeploymentInfo (src) di, TransactionManager (src) tm, ObjectName (src) webServiceName)
Method Detail |
public java.util.Map getModuleDataMap()
public java.lang.Object getModuleData(java.lang.Object key)
public void putModuleData(java.lang.Object key, java.lang.Object value)
public void removeModuleData(java.lang.Object key)
public void removeContainer(Container (src) con)
con
- public void addLocalHome(Container (src) con, EJBLocalHome (src) localHome)
public void removeLocalHome(Container (src) con)
public EJBLocalHome (src) getLocalHome(Container (src) con)
public boolean isCallByValue()
public Container (src) getContainer(java.lang.String name)
name
- ejb-name name defined in ejb-jar.xml
public java.util.Collection getContainers()
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader cl)
public java.net.URL getURL()
protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
start
method calls
the start method on each contatiner, then the init method on each
container. Conversion to a different registration system with one-phase
startup is conceivable.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
- if an error occursprotected void stopService() throws java.lang.Exception
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void destroyService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
destroyService
in class ServiceMBeanSupport (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |