|
|||||||||||
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.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
,
EJBDeployer
Field Summary | |
static int |
ANY
|
static String |
BASE_EJB_MODULE_NAME
|
static int |
BMT
|
static int |
CMT
|
static String |
DEFAULT_ENTITY_BMP_CONFIGURATION
|
static String |
DEFAULT_ENTITY_CMP_CONFIGURATION
|
static String |
DEFAULT_MESSAGEDRIVEN_CONFIGURATION
|
static String |
DEFAULT_STATEFUL_CONFIGURATION
|
static String |
DEFAULT_STATELESS_CONFIGURATION
|
static javax.management.ObjectName |
EJB_MODULE_QUERY_NAME
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
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 | |
EjbModule(org.jboss.deployment.DeploymentInfo di,
TransactionManager tm,
javax.management.ObjectName webServiceName)
|
Method Summary | |
void |
addLocalHome(Container con,
javax.ejb.EJBLocalHome localHome)
|
protected void |
createService()
|
protected void |
destroyService()
|
ClassLoader |
getClassLoader()
Get the class loader of this deployment unit. |
Container |
getContainer(String name)
Get a container from this deployment unit that corresponds to a given name |
Collection |
getContainers()
Get all containers in this deployment unit. |
javax.ejb.EJBLocalHome |
getLocalHome(Container con)
|
Object |
getModuleData(Object key)
|
Map |
getModuleDataMap()
|
URL |
getURL()
Get the URL from which this deployment unit was deployed |
boolean |
isCallByValue()
Whether the container is call by value |
void |
putModuleData(Object key,
Object value)
|
void |
removeContainer(Container con)
Remove a container from this deployment unit. |
void |
removeLocalHome(Container con)
|
void |
removeModuleData(Object key)
|
void |
setClassLoader(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 |
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 |
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 |
Field Detail |
public static final String BASE_EJB_MODULE_NAME
public static final javax.management.ObjectName EJB_MODULE_QUERY_NAME
public static String DEFAULT_STATELESS_CONFIGURATION
public static String DEFAULT_STATEFUL_CONFIGURATION
public static String DEFAULT_ENTITY_BMP_CONFIGURATION
public static String DEFAULT_ENTITY_CMP_CONFIGURATION
public static String DEFAULT_MESSAGEDRIVEN_CONFIGURATION
public static final int BMT
public static final int CMT
public static final int ANY
Constructor Detail |
public EjbModule(org.jboss.deployment.DeploymentInfo di, TransactionManager tm, javax.management.ObjectName webServiceName)
Method Detail |
public Map getModuleDataMap()
public Object getModuleData(Object key)
public void putModuleData(Object key, Object value)
public void removeModuleData(Object key)
public void removeContainer(Container con)
con
- public void addLocalHome(Container con, javax.ejb.EJBLocalHome localHome)
public void removeLocalHome(Container con)
public javax.ejb.EJBLocalHome getLocalHome(Container con)
public boolean isCallByValue()
public Container getContainer(String name)
name
- ejb-name name defined in ejb-jar.xml
public Collection getContainers()
getContainers
in interface EjbModuleMBean
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader cl)
public URL getURL()
protected void createService() throws Exception
Exception
protected void startService() throws 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.
Exception
- if an error occursprotected void stopService() throws Exception
Exception
protected void destroyService() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |