|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.EjbModule
public class 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 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(DeploymentInfo di,
TransactionManager tm,
ObjectName webServiceName)
Deprecated. DeploymentInfo is obsolete |
|
EjbModule(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
org.jboss.metadata.ApplicationMetaData metaData)
|
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()
|
EJBTimerService |
getTimerService()
|
URL |
getURL()
Get the URL from which this deployment unit was deployed |
ObjectName |
getWebServiceName()
|
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 |
void |
setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
|
void |
setSecurityManagement(ISecurityManagement sm)
|
void |
setTimerService(EJBTimerService timerService)
|
void |
setTransactionManagerFactory(org.jboss.tm.TransactionManagerFactory tm)
|
void |
setWebServiceName(ObjectName webServiceName)
|
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.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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 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.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.ApplicationMetaData metaData)
@Deprecated public EjbModule(DeploymentInfo di, TransactionManager tm, ObjectName webServiceName)
Method Detail |
---|
public void setTransactionManagerFactory(org.jboss.tm.TransactionManagerFactory tm)
setTransactionManagerFactory
in interface EjbModuleMBean
public void setSecurityManagement(ISecurityManagement sm)
setSecurityManagement
in interface EjbModuleMBean
public void setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
setPolicyRegistration
in interface EjbModuleMBean
public EJBTimerService getTimerService()
getTimerService
in interface EjbModuleMBean
public void setTimerService(EJBTimerService timerService)
setTimerService
in interface EjbModuleMBean
public ObjectName getWebServiceName()
getWebServiceName
in interface EjbModuleMBean
public void setWebServiceName(ObjectName webServiceName)
setWebServiceName
in interface EjbModuleMBean
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)
cl
- public URL getURL()
protected void createService() throws Exception
createService
in class ServiceMBeanSupport
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.
startService
in class ServiceMBeanSupport
Exception
- if an error occursprotected void stopService() throws Exception
stopService
in class ServiceMBeanSupport
Exception
protected void destroyService() throws Exception
destroyService
in class ServiceMBeanSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |