站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

EJBDeployer (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.ejb
Class EJBDeployer

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.deployment.SubDeployerSupport
              extended byorg.jboss.ejb.EJBDeployer
All Implemented Interfaces:
EJBDeployerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerMBean

public class EJBDeployer
extends org.jboss.deployment.SubDeployerSupport
implements EJBDeployerMBean

A EJBDeployer 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.

Version:
$Revision: 1.23.2.16 $
Author:
Rickard 脰berg, Marc Fleury, Juha Lindfors, Sebastien Alborini, Peter Antman., Scott Stark, Sacha Labourey, Jason Dillon
See Also:
Container

Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SubDeployerSupport.ClassConfiguration
 
Field Summary
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ejb.EJBDeployerMBean
OBJECT_NAME
 
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
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, START_NOTIFICATION, STOP_NOTIFICATION
 
Constructor Summary
EJBDeployer()
           
 
Method Summary
 boolean accepts(org.jboss.deployment.DeploymentInfo di)
           
 void create(org.jboss.deployment.DeploymentInfo di)
           
 void destroy(org.jboss.deployment.DeploymentInfo di)
           
 Iterator getDeployedApplications()
          Returns the deployed applications.
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 boolean getStrictVerifier()
          Returns the mode of the bean verifier (strict/non-strict mode)
 javax.management.ObjectName getTransactionManagerServiceName()
          Get the TransactionManagerServiceName value.
 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)
 javax.management.ObjectName getWebServiceName()
          Get the WebServiceName value.
 void init(org.jboss.deployment.DeploymentInfo di)
           
 boolean isCallByValue()
          Get the call by value
 boolean isMetricsEnabled()
          Checks if this container factory initializes the metrics interceptor.
protected  void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
          This is here as a reminder that we may not want to allow ejb jars to have arbitrary sub deployments.
 void setCallByValue(boolean value)
          Set the call by value
 void setMetricsEnabled(boolean enable)
          Enables/disables the metrics interceptor for containers.
 void setStrictVerifier(boolean strictVerifier)
          Enables/disables the strict mode on the verifier.
 void setTransactionManagerServiceName(javax.management.ObjectName transactionManagerServiceName)
          Set the TransactionManagerServiceName value.
 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 setWebServiceName(javax.management.ObjectName webServiceName)
          Set the WebServiceName value.
 void start(org.jboss.deployment.DeploymentInfo di)
           
protected  void startService()
          Get a reference to the ServiceController
 void stop(org.jboss.deployment.DeploymentInfo di)
           
protected  void stopService()
          Implements the template method in superclass.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, isDeployable
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getLog, getName, getNextNotificationSequenceNumber, 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
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Constructor Detail

EJBDeployer

public EJBDeployer()
Method Detail

isCallByValue

public boolean isCallByValue()
Get the call by value

Specified by:
isCallByValue in interface EJBDeployerMBean
Returns:
true when call by value

setCallByValue

public void setCallByValue(boolean value)
Set the call by value

Specified by:
setCallByValue in interface EJBDeployerMBean
Parameters:
value - true when callByValue

getDeployedApplications

public Iterator getDeployedApplications()
Returns the deployed applications.

Specified by:
getDeployedApplications in interface EJBDeployerMBean

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

startService

protected void startService()
                     throws Exception
Get a reference to the ServiceController

Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Implements the template method in superclass. This method stops all the applications in this server.

Throws:
Exception

setVerifyDeployments

public void setVerifyDeployments(boolean verify)
Enables/disables the application bean verification upon deployment.

Specified by:
setVerifyDeployments in interface EJBDeployerMBean
Parameters:
verify - true to enable; false to disable

getVerifyDeployments

public boolean getVerifyDeployments()
Returns the state of bean verifier (on/off)

Specified by:
getVerifyDeployments in interface EJBDeployerMBean
Returns:
true if enabled; false otherwise

setVerifierVerbose

public void setVerifierVerbose(boolean verbose)
Enables/disables the verbose mode on the verifier.

Specified by:
setVerifierVerbose in interface EJBDeployerMBean
Parameters:
verbose - true to enable; false to disable

getVerifierVerbose

public boolean getVerifierVerbose()
Returns the state of the bean verifier (verbose/non-verbose mode)

Specified by:
getVerifierVerbose in interface EJBDeployerMBean
Returns:
true if enabled; false otherwise

setStrictVerifier

public void setStrictVerifier(boolean strictVerifier)
Enables/disables the strict mode on the verifier.

Specified by:
setStrictVerifier in interface EJBDeployerMBean
Parameters:
strictVerifier - true to enable; false to disable

getStrictVerifier

public boolean getStrictVerifier()
Returns the mode of the bean verifier (strict/non-strict mode)

Specified by:
getStrictVerifier in interface EJBDeployerMBean
Returns:
true if the Verifier is in strict mode, false otherwise

setMetricsEnabled

public void setMetricsEnabled(boolean enable)
Enables/disables the metrics interceptor for containers.

Specified by:
setMetricsEnabled in interface EJBDeployerMBean
Parameters:
enable - true to enable; false to disable

isMetricsEnabled

public boolean isMetricsEnabled()
Checks if this container factory initializes the metrics interceptor.

Specified by:
isMetricsEnabled in interface EJBDeployerMBean
Returns:
true if metrics are enabled; false otherwise

getValidateDTDs

public boolean getValidateDTDs()
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD.

Specified by:
getValidateDTDs in interface EJBDeployerMBean

setValidateDTDs

public 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.

Specified by:
setValidateDTDs in interface EJBDeployerMBean

getWebServiceName

public javax.management.ObjectName getWebServiceName()
Get the WebServiceName value.

Specified by:
getWebServiceName in interface EJBDeployerMBean
Returns:
the WebServiceName value.

setWebServiceName

public void setWebServiceName(javax.management.ObjectName webServiceName)
Set the WebServiceName value.

Specified by:
setWebServiceName in interface EJBDeployerMBean

getTransactionManagerServiceName

public javax.management.ObjectName getTransactionManagerServiceName()
Get the TransactionManagerServiceName value.

Specified by:
getTransactionManagerServiceName in interface EJBDeployerMBean
Returns:
the TransactionManagerServiceName value.

setTransactionManagerServiceName

public void setTransactionManagerServiceName(javax.management.ObjectName transactionManagerServiceName)
Set the TransactionManagerServiceName value.

Specified by:
setTransactionManagerServiceName in interface EJBDeployerMBean
Parameters:
transactionManagerServiceName - The new TransactionManagerServiceName value.

accepts

public boolean accepts(org.jboss.deployment.DeploymentInfo di)
Specified by:
accepts in interface org.jboss.deployment.SubDeployerMBean

init

public void init(org.jboss.deployment.DeploymentInfo di)
          throws org.jboss.deployment.DeploymentException
Specified by:
init in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

processNestedDeployments

protected void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
                                 throws org.jboss.deployment.DeploymentException
This is here as a reminder that we may not want to allow ejb jars to have arbitrary sub deployments. Currently we do.

Parameters:
di -
Throws:
org.jboss.deployment.DeploymentException

create

public void create(org.jboss.deployment.DeploymentInfo di)
            throws org.jboss.deployment.DeploymentException
Specified by:
create in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

start

public void start(org.jboss.deployment.DeploymentInfo di)
           throws org.jboss.deployment.DeploymentException
Specified by:
start in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

stop

public void stop(org.jboss.deployment.DeploymentInfo di)
          throws org.jboss.deployment.DeploymentException
Specified by:
stop in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

destroy

public void destroy(org.jboss.deployment.DeploymentInfo di)
             throws org.jboss.deployment.DeploymentException
Specified by:
destroy in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.