jrun.j2ee
Class J2EEModule

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrun.j2ee.J2EEModule
All Implemented Interfaces:
ConfigurableServicePartitionMBean, J2EEModuleMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
Direct Known Subclasses:
ApplicationContainer, AxisService, Container, EnterpriseApplication, J2EEConnector, WebApplicationService

public class J2EEModule
extends ConfigurableServicePartition
implements J2EEModuleMBean

The J2EEModule is a parent class for all modules (WebApplication, EJBContainer, EnterpriseApplication, ResourceAdaptoer, etc) that the DeployerService deals with.

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

Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
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.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
J2EEModule()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getDeploymentOrigin()
           
 java.util.Collection getEJBPeers()
           
 J2EEMetaData getJ2EEMetaData()
           
 boolean isRunning()
           
 void postStart()
          For j2ee modules within an ear that depend on all other modules being started
protected  void resolveEJBLinks(java.util.Iterator ejbLinkIterator)
          This method goes through the EJB links for this container's EJB and looks up the JNDI name for each EJB link by searching through all the EJB containers in the parent service's service partition.
 void setClassLoader(java.lang.ClassLoader classloader)
           
 void setDeploymentOrigin(java.lang.String deploymentOrigin)
           
 void setEJBPeers(java.util.Collection ejbPeers)
           
 void setJ2EEMetaData(J2EEMetaData j2eeMetaData)
           
 void setName(java.net.URL url)
           
 void setRunning(boolean isRunning)
           
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroy, destroyServices, init, initServices, loadAndInit, loadChildren, setChildElements, start, startServices, stop, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
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

J2EEModule

public J2EEModule()
Method Detail

getJ2EEMetaData

public J2EEMetaData getJ2EEMetaData()

isRunning

public boolean isRunning()
Specified by:
isRunning in interface J2EEModuleMBean

setDeploymentOrigin

public void setDeploymentOrigin(java.lang.String deploymentOrigin)
Specified by:
setDeploymentOrigin in interface J2EEModuleMBean

getDeploymentOrigin

public java.lang.String getDeploymentOrigin()
Specified by:
getDeploymentOrigin in interface J2EEModuleMBean

getEJBPeers

public java.util.Collection getEJBPeers()

postStart

public void postStart()
               throws java.lang.Exception
For j2ee modules within an ear that depend on all other modules being started

resolveEJBLinks

protected void resolveEJBLinks(java.util.Iterator ejbLinkIterator)
This method goes through the EJB links for this container's EJB and looks up the JNDI name for each EJB link by searching through all the EJB containers in the parent service's service partition. This method should probably be used by web applications to resolve EJB links, but the problem of web applications not being in the enterprise application's service partition currently prevents this.

setJ2EEMetaData

public void setJ2EEMetaData(J2EEMetaData j2eeMetaData)

setName

public void setName(java.net.URL url)

setEJBPeers

public void setEJBPeers(java.util.Collection ejbPeers)

setRunning

public void setRunning(boolean isRunning)

getClassLoader

public java.lang.ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(java.lang.ClassLoader classloader)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.