jrun.connector
Class J2EEConnectorFactory

jrunx.kernel.ServiceAdapter
  |
  +--jrun.j2ee.J2EEModuleFactory
        |
        +--jrun.connector.J2EEConnectorFactory
All Implemented Interfaces:
J2EEConnectorFactoryMBean, J2EEModuleFactoryMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean

public class J2EEConnectorFactory
extends J2EEModuleFactory
implements J2EEConnectorFactoryMBean

Creates the J2EEConnector object instances specified in the rar through the Create method Each J2EEConnector instance corresponds to an instance of the ManagedConnectionFactory

Author:
Ramesh Natarajan
See Also:
, Serialized Form

Field Summary
static java.lang.String CONNECTOR_DOMAIN
           
static java.lang.String CONNECTOR_FACTORY_NAME
           
static java.lang.String J2EE_CONNECTOR
           
static java.lang.String JRUN_RAR_DESCRIPTOR
           
static java.lang.String RAR_DESCRIPTOR
           
 
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.connector.J2EEConnectorFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
J2EEConnectorFactory()
           
 
Method Summary
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String connectorModuleName)
          This method is used by the DeployerService.
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String connectorModuleName, java.net.URL altDDURL)
          This method is used by the EnterpriseApplicationFactory.
 java.lang.String getName()
          Request the name by which the server refers to this service.
 java.net.URL[] getNestedJarUrls(java.net.URL url, java.lang.String temporaryDirectory)
           
 java.lang.String getObjectName()
           
 void parseDescriptor(java.net.URL url, java.net.URL altDDURL, ConnectorMetaData connectionMetaData, JRunConnectionfactoryMetaData jrunConnectionfactoryMetaData, java.lang.String deployOrigin)
           
 
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, 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, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Field Detail

CONNECTOR_DOMAIN

public static final java.lang.String CONNECTOR_DOMAIN

J2EE_CONNECTOR

public static final java.lang.String J2EE_CONNECTOR

CONNECTOR_FACTORY_NAME

public static final java.lang.String CONNECTOR_FACTORY_NAME

RAR_DESCRIPTOR

public static final java.lang.String RAR_DESCRIPTOR

JRUN_RAR_DESCRIPTOR

public static final java.lang.String JRUN_RAR_DESCRIPTOR
Constructor Detail

J2EEConnectorFactory

public J2EEConnectorFactory()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ServiceMBean
Request the name by which the server refers to this service.
Specified by:
getName in interface ServiceMBean
Overrides:
getName in class ServiceAdapter

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String connectorModuleName)
                            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 connector rar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
connectorModuleName - The connector module name. For open directories, this will be the directory name. For jar files, this will be the rar file name.

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String connectorModuleName,
                                   java.net.URL altDDURL)
                            throws DeploymentException
This method is used by the EnterpriseApplicationFactory.
Specified by:
create in interface J2EEConnectorFactoryMBean
Parameters:
url - The URL pointing to the local open directory or rar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
connectorModuleName - The connector module name. For open directories, this will be the directory name. For rar files, this will be the rar file name.
altDDURL - The optional URL for the post assembly deployment descriptor file.

getNestedJarUrls

public java.net.URL[] getNestedJarUrls(java.net.URL url,
                                       java.lang.String temporaryDirectory)
                                throws java.lang.Exception

getObjectName

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

parseDescriptor

public void parseDescriptor(java.net.URL url,
                            java.net.URL altDDURL,
                            ConnectorMetaData connectionMetaData,
                            JRunConnectionfactoryMetaData jrunConnectionfactoryMetaData,
                            java.lang.String deployOrigin)
                     throws DeploymentException


Copyright � 2002 Macromedia Corporation. All Rights Reserved.