jrun.ejb
Class EJBContainerFactory

jrunx.kernel.ServiceAdapter
  |
  +--jrun.j2ee.J2EEModuleFactory
        |
        +--jrun.ejb.EJBContainerFactory
All Implemented Interfaces:
EJBContainerFactoryMBean, J2EEModuleFactoryMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean
Direct Known Subclasses:
EJBContainerFactory, EJBContainerFactory

public class EJBContainerFactory
extends J2EEModuleFactory
implements EJBContainerFactoryMBean

The EJBContainerFactory takes a single ejb-jar.xml (jar or exploded directory structure) and creates a Container for each enterprise bean inside it.

Author:
Sean Neville, Nick Tsivranidis, Paul Reilly
See Also:
Serialized Form

Field Summary
static java.lang.String EJB_JAR_XML
           
static java.lang.String EJB_PUBLIC_ID
           
static java.lang.String EJB_SYSTEM_ID
           
static java.lang.String JRUN_EJB_JAR_XML
           
static java.lang.String JRUN_EJB_PUBLIC_ID
           
static java.lang.String JRUN_EJB_SYSTEM_ID
           
static java.lang.String JRUN_XML_EXTENSION
           
static java.lang.String XML_EXTENSION
           
 
Fields inherited from class jrun.j2ee.J2EEModuleFactory
DEFAULT_JMX_DOMAIN
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrun.ejb.EJBContainerFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
EJBContainerFactory()
           
 
Method Summary
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String ejbModuleName)
          This method is used by the DeployerService.
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String ejbModuleName, ServicePartition parentService, java.net.URL altDDURL)
          This method is used by the EnterpriseApplicationFactory.
 java.lang.String getObjectName()
           
 boolean isIIOP()
          Are containers being created with IIOP enabled
protected  EJBJarMetaData loadEJBJarMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String ejbModuleName, java.net.URL altDDURL)
           
protected  java.net.URL loadJRunEJBJarMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String ejbModuleName, EJBJarMetaData ejbJarMetaData)
           
 void setIIOP(boolean iiop)
          set to true to make EJB containers use IIOP
 
Methods inherited from class jrun.j2ee.J2EEModuleFactory
addMandatoryFingerPrint, addOptionalFingerPrint, addPotentialFingerPrint, cacheResource, cacheResources, clearResources, createXMLReader, getMandatoryFingerPrintList, getOptionalFingerPrintList, getPotentialFingerPrintList, getResource, getResource, getResources, getTemporaryDirectory, isPersistXML, isValidateXML, matchesFingerPrints, register, setMandatoryFingerPrint, setOptionalFingerPrint, setPersistXML, setPotentialFingerPrint, setTemporaryDirectory, setValidateXML
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrun.j2ee.J2EEModuleFactoryMBean
addMandatoryFingerPrint, addPotentialFingerPrint, clearResources, getMandatoryFingerPrintList, getPotentialFingerPrintList, getResource, getResources, getTemporaryDirectory, isPersistXML, isValidateXML, setMandatoryFingerPrint, setPersistXML, setPotentialFingerPrint, setTemporaryDirectory, setValidateXML
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Field Detail

XML_EXTENSION

public static final java.lang.String XML_EXTENSION

JRUN_XML_EXTENSION

public static final java.lang.String JRUN_XML_EXTENSION

EJB_JAR_XML

public static final java.lang.String EJB_JAR_XML

JRUN_EJB_JAR_XML

public static final java.lang.String JRUN_EJB_JAR_XML

EJB_PUBLIC_ID

public static final java.lang.String EJB_PUBLIC_ID

EJB_SYSTEM_ID

public static final java.lang.String EJB_SYSTEM_ID

JRUN_EJB_PUBLIC_ID

public static final java.lang.String JRUN_EJB_PUBLIC_ID

JRUN_EJB_SYSTEM_ID

public static final java.lang.String JRUN_EJB_SYSTEM_ID
Constructor Detail

EJBContainerFactory

public EJBContainerFactory()
Method Detail

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String ejbModuleName)
                            throws DeploymentException
This method is used by the DeployerService.
Specified by:
create in interface J2EEModuleFactoryMBean
Overrides:
create in class J2EEModuleFactory
Parameters:
url - The URL pointing to the local open directory or EJB jar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
ejbModuleName - The EJB module name. For open directories, this will be the directory name. For jar files, this will be the jar file name.

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String ejbModuleName,
                                   ServicePartition parentService,
                                   java.net.URL altDDURL)
                            throws DeploymentException
This method is used by the EnterpriseApplicationFactory.
Specified by:
create in interface EJBContainerFactoryMBean
Parameters:
url - The URL pointing to the local open directory or EJB jar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
ejbModuleName - The EJB module name. For open directories, this will be the directory name. For jar files, this will be the jar file name.
parentService - This is the Enterprise Application service that EJB containers will reside within.
altDDURL - The optional URL for the post assembly deployment descriptor file.

setIIOP

public void setIIOP(boolean iiop)
Description copied from interface: EJBContainerFactoryMBean
set to true to make EJB containers use IIOP
Specified by:
setIIOP in interface EJBContainerFactoryMBean

isIIOP

public boolean isIIOP()
Description copied from interface: EJBContainerFactoryMBean
Are containers being created with IIOP enabled
Specified by:
isIIOP in interface EJBContainerFactoryMBean

getObjectName

public java.lang.String getObjectName()
Overrides:
getObjectName in class J2EEModuleFactory

loadEJBJarMetaData

protected EJBJarMetaData loadEJBJarMetaData(java.net.URL url,
                                            java.lang.String deploymentOrigin,
                                            java.lang.String ejbModuleName,
                                            java.net.URL altDDURL)
                                     throws DeploymentException

loadJRunEJBJarMetaData

protected java.net.URL loadJRunEJBJarMetaData(java.net.URL url,
                                              java.lang.String deploymentOrigin,
                                              java.lang.String ejbModuleName,
                                              EJBJarMetaData ejbJarMetaData)
                                       throws java.lang.Exception


Copyright � 2002 Macromedia Corporation. All Rights Reserved.