|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--org.jboss.util.ServiceMBeanSupport
|
+--org.jboss.ejb.ContainerFactory
A ContainerFactory is used to deploy EJB applications. It can be given a URL to an EJB-jar or EJB-JAR XML file, which will be used to instantiate containers and make them available for invocation. Now also works with message driven beans
Container| Field Summary | |
static int |
ANY
|
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
|
| Fields inherited from class org.jboss.util.ServiceMBeanSupport |
log, server |
| Fields inherited from interface org.jboss.ejb.ContainerFactoryMBean |
OBJECT_NAME |
| Fields inherited from interface org.jboss.util.ServiceMBean |
STARTED, STARTING, states, STOPPED, STOPPING |
| Constructor Summary | |
ContainerFactory()
|
|
| Method Summary | |
void |
deploy(java.lang.String url,
java.lang.String appId)
Deploy the file at this URL. |
void |
deploy(java.lang.String appUrl,
java.lang.String[] jarUrls,
java.lang.String appId)
Deploy an application |
void |
deploy(java.net.URL url,
java.lang.String appId)
Deploy EJBs pointed to by an URL. |
void |
deploy(java.net.URL appUrl,
java.net.URL[] jarUrls,
java.lang.String appId)
|
void |
destroyService()
Implements the template method in superclass. |
java.util.Iterator |
getDeployedApplications()
Returns the deployed applications. |
java.lang.String |
getName()
Implements the abstract getName() method in superclass to
return the name of this object. |
javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
Implements the abstract getObjectName() method in superclass
to return this service's name. |
boolean |
getValidateDTDs()
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
boolean |
getVerifierVerbose()
Returns the state of the bean verifier (verbose/non-verbose mode) |
boolean |
getVerifyDeployments()
Returns the state of bean verifier (on/off) |
boolean |
isDeployed(java.lang.String url)
is the aplication with this url deployed |
boolean |
isDeployed(java.net.URL url)
check if the application with this url is deployed |
boolean |
isMetricsEnabled()
Checks if this container factory initializes the metrics interceptor. |
void |
setBeanCacheJMSMonitoringEnabled(boolean enable)
Set JMS monitoring of the bean cache. |
void |
setMetricsEnabled(boolean enable)
Enables/disables the metrics interceptor for containers. |
void |
setValidateDTDs(boolean validate)
Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
void |
setVerifierVerbose(boolean verbose)
Enables/disables the verbose mode on the verifier. |
void |
setVerifyDeployments(boolean verify)
Enables/disables the application bean verification upon deployment. |
void |
stopService()
Implements the template method in superclass. |
void |
undeploy(java.lang.String url)
Undeploy the file at this URL. |
void |
undeploy(java.net.URL url)
Remove previously deployed EJBs. |
| Methods inherited from class org.jboss.util.ServiceMBeanSupport |
destroy, getServer, getState, getStateString, init, initService, nextSequenceNumber, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, 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.util.ServiceMBean |
getState, getStateString |
| Methods inherited from interface org.jboss.util.Service |
destroy, init, start, stop |
| Field Detail |
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 ContainerFactory()
| Method Detail |
public java.util.Iterator getDeployedApplications()
getDeployedApplications in interface ContainerFactoryMBean
public javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
getObjectName() method in superclass
to return this service's name.getObjectName in class ServiceMBeanSupportserver - name - MalformedObjectNameException - public java.lang.String getName()
getName() method in superclass to
return the name of this object.getName in interface ServiceMBeangetName in class ServiceMBeanSupportpublic void stopService()
stopService in class ServiceMBeanSupportpublic void destroyService()
destroyService in class ServiceMBeanSupportpublic void setVerifyDeployments(boolean verify)
setVerifyDeployments in interface ContainerFactoryMBeanverify - true to enable; false to disablepublic boolean getVerifyDeployments()
getVerifyDeployments in interface ContainerFactoryMBeanpublic void setVerifierVerbose(boolean verbose)
setVerifierVerbose in interface ContainerFactoryMBeanverbose - true to enable; false to disablepublic boolean getVerifierVerbose()
getVerifierVerbose in interface ContainerFactoryMBeanpublic void setMetricsEnabled(boolean enable)
setMetricsEnabled in interface ContainerFactoryMBeanenable - true to enable; false to disablepublic boolean isMetricsEnabled()
isMetricsEnabled in interface ContainerFactoryMBeanpublic void setBeanCacheJMSMonitoringEnabled(boolean enable)
setBeanCacheJMSMonitoringEnabled in interface ContainerFactoryMBeanpublic boolean getValidateDTDs()
getValidateDTDs in interface ContainerFactoryMBeanpublic void setValidateDTDs(boolean validate)
setValidateDTDs in interface ContainerFactoryMBean
public void deploy(java.lang.String url,
java.lang.String appId)
throws java.net.MalformedURLException,
DeploymentException
deploy in interface ContainerFactoryMBeanurl - java.net.MalformedURLException - DeploymentException -
public void deploy(java.lang.String appUrl,
java.lang.String[] jarUrls,
java.lang.String appId)
throws java.net.MalformedURLException,
DeploymentException
ContainerFactoryMBeandeploy in interface ContainerFactoryMBeanorg.jboss.ejb.ContainerFactoryMBeanappUrl - Url to the application itselfjarUrls - Array of URLs to the JAR files containing the EJBsappId - Id of the application this EJBs belongs to
used for managementjava.net.MalformedURLException - DeploymentException -
public void undeploy(java.lang.String url)
throws java.net.MalformedURLException,
DeploymentException
undeploy in interface ContainerFactoryMBeanurl - java.net.MalformedURLException - DeploymentException -
public void deploy(java.net.URL url,
java.lang.String appId)
throws DeploymentException
The latter is useful for development since no packaging is required.
url - URL where EJB deployment information is containedDeploymentException -
public void deploy(java.net.URL appUrl,
java.net.URL[] jarUrls,
java.lang.String appId)
throws DeploymentException
public void undeploy(java.net.URL url)
throws DeploymentException
url - DeploymentException -
public boolean isDeployed(java.lang.String url)
throws java.net.MalformedURLException
isDeployed in interface ContainerFactoryMBeanurl - java.net.MalformedURLException - public boolean isDeployed(java.net.URL url)
url -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||