|
|||||||||
| 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 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, STARTED, STARTING, states, STOPPED, STOPPING |
| Fields inherited from interface org.jboss.ejb.ContainerFactoryMBean |
OBJECT_NAME |
| Constructor Summary | |
ContainerFactory()
|
|
| Method Summary | |
void |
deploy(java.lang.String url)
Deploy the file at this URL. |
void |
deploy(java.lang.String appUrl,
java.lang.String[] jarUrls)
|
void |
deploy(java.net.URL url)
Deploy EJBs pointed to by an URL. |
void |
deploy(java.net.URL appUrl,
java.net.URL[] jarUrls)
|
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 |
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 |
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, getState, getStateString, init, initService, 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
| 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 ContainerFactoryMBean
public void deploy(java.lang.String url)
throws java.net.MalformedURLException,
DeploymentException
deploy in interface ContainerFactoryMBeanurl - java.net.MalformedURLException - DeploymentException -
public void deploy(java.lang.String appUrl,
java.lang.String[] jarUrls)
throws java.net.MalformedURLException,
DeploymentException
deploy in interface ContainerFactoryMBean
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)
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)
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 | ||||||||