jrunx.jrun3
Class EJBContainerFactory

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

public class EJBContainerFactory
extends EJBContainerFactory
implements EJBContainerFactoryMBean

This is a custom EJB container factory for deploying JRun 3.1 EJB jars. Since the only clues that this is a JRun 3.2 EJB jar are inside the ejb-jar.xml's env-entry elements, we create a temporary EJBJarMetaData object to see if any of the env-entry elements start with "ejipt".

Author:
Paul Reilly
See Also:
Serialized Form

Fields inherited from class jrun.ejb.EJBContainerFactory
EJB_JAR_XML, EJB_PUBLIC_ID, EJB_SYSTEM_ID, JRUN_EJB_JAR_XML, JRUN_EJB_PUBLIC_ID, JRUN_EJB_SYSTEM_ID, JRUN_XML_EXTENSION, 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 jrunx.jrun3.EJBContainerFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
EJBContainerFactory()
           
 
Method Summary
 java.net.URL getResource(java.net.URL url, java.lang.String fingerPrint)
          Subclasses should implement this method to provide additional logic for finding resources.
protected  EJBJarMetaData loadEJBJarMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String ejbModuleName, java.net.URL altDDURL)
           
 
Methods inherited from class jrun.ejb.EJBContainerFactory
create, create, getObjectName, isIIOP, loadJRunEJBJarMetaData, setIIOP
 
Methods inherited from class jrun.j2ee.J2EEModuleFactory
addMandatoryFingerPrint, addOptionalFingerPrint, addPotentialFingerPrint, cacheResource, cacheResources, clearResources, createXMLReader, getMandatoryFingerPrintList, getOptionalFingerPrintList, getPotentialFingerPrintList, 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.ejb.EJBContainerFactoryMBean
create, isIIOP, setIIOP
 
Methods inherited from interface jrun.j2ee.J2EEModuleFactoryMBean
addMandatoryFingerPrint, addPotentialFingerPrint, clearResources, create, getMandatoryFingerPrintList, getPotentialFingerPrintList, 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
 

Constructor Detail

EJBContainerFactory

public EJBContainerFactory()
Method Detail

getResource

public java.net.URL getResource(java.net.URL url,
                                java.lang.String fingerPrint)
Description copied from class: J2EEModuleFactory
Subclasses should implement this method to provide additional logic for finding resources. For example looking in the parent directory of the URL.
Specified by:
getResource in interface J2EEModuleFactoryMBean
Overrides:
getResource 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
Overrides:
loadEJBJarMetaData in class EJBContainerFactory


Copyright � 2002 Macromedia Corporation. All Rights Reserved.