jrun.ejb
Class ClientInvokableContainer

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrun.j2ee.J2EEModule
                    |
                    +--jrun.ejb.Container
                          |
                          +--jrun.ejb.EJBContainer
                                |
                                +--jrun.ejb.ClientInvokableContainer
All Implemented Interfaces:
ConfigurableServicePartitionMBean, ContainerMBean, EJBContainerMBean, J2EEModuleMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
Direct Known Subclasses:
EntityContainer, StatefulSessionContainer, StatelessSessionContainer

public abstract class ClientInvokableContainer
extends EJBContainer

The superclass of Entity and Session EJB containers.

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

Field Summary
protected  java.lang.Object ejbHomeProxy
           
protected  java.lang.Object ejbLocalHomeProxy
           
protected  java.util.Map homeMethodMap
          A Map of all EJBLocalHome methods.
protected  RMIBrokerRemote rmiBroker
           
 
Fields inherited from class jrun.ejb.EJBContainer
instancePool, invoker, jsm, LOCAL, OBJECT_NAME, objectMethodMap, persistenceStore, tm
 
Fields inherited from class jrun.ejb.Container
classLoader, firstInterceptor
 
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
ClientInvokableContainer()
           
 
Method Summary
 void destroy()
          Every service is eventually destroyed.
 java.lang.Object getEJBHome(EJBInvocation ejbInvocation)
           
 java.lang.Object getEJBLocalHome(EJBInvocation ejbInvocation)
           
 java.lang.Class getHomeClass()
           
 java.lang.Object getHomeHandleHome(EJBInvocation ejbInvocation)
           
 java.util.Map getHomeMethodMap()
           
protected  java.lang.Object getIdFromHandle(javax.ejb.Handle h)
           
 java.lang.Class getLocalClass()
           
 java.lang.Class getLocalHomeClass()
           
 java.lang.Class getRemoteClass()
           
 RMIBrokerRemote getRmiBroker()
           
 java.lang.String getRoleLink(java.lang.String roleRef)
           
 void init()
          Not every service needs to init, implement it out of convenience.
 java.lang.Object invokeHomeMethod(EJBInvocation ejbInvocation)
           
 boolean isIIOP()
           
 boolean isLocal()
           
 boolean isLocalInvocation(EJBInvocation ejbInvocation)
           
 boolean isRemote()
           
protected abstract  void mapHomeMethods(java.lang.reflect.Method[] method)
           
protected abstract  void mapObjectMethods(java.lang.reflect.Method[] method)
           
 void setIIOP(boolean IIOP)
           
 void setJNDIName(java.lang.String jndiName)
           
 void setRmiBroker(RMIBrokerRemote rmiBroker)
           
 
Methods inherited from class jrun.ejb.EJBContainer
createInvokerInterceptor, destroyInterceptors, getBeanClass, getDescription, getDisplayName, getEJBMetaData, getEJBModuleName, getHandle, getInstancePool, getJNDIName, getMethodPermissions, getObjectMethodMap, getPersistenceStore, getSecurityManager, getTransactionManager, initInterceptors, invokeObjectMethod, isIdentical, persistEJBXML, persistJRunEJBXML, setEJBMetaData, setEJBModuleName, setInstancePool, setPersistenceStore, setSecurityManager, setTransactionManager, start, startInterceptors, stop, stopInterceptors
 
Methods inherited from class jrun.ejb.Container
addInterceptor, addInterceptor, getFirstInterceptor, getFirstInterceptorClass, removeInterceptor
 
Methods inherited from class jrun.j2ee.J2EEModule
getClassLoader, getDeploymentOrigin, getEJBPeers, getJ2EEMetaData, isRunning, postStart, resolveEJBLinks, setClassLoader, setDeploymentOrigin, setEJBPeers, setJ2EEMetaData, setName, setRunning
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroyServices, initServices, loadAndInit, loadChildren, setChildElements, startServices, 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 jrun.ejb.ContainerMBean
addInterceptor, getFirstInterceptorClass
 
Methods inherited from interface jrun.j2ee.J2EEModuleMBean
getDeploymentOrigin, isRunning, setDeploymentOrigin
 
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
getStatus, updateStatus
 

Field Detail

ejbHomeProxy

protected java.lang.Object ejbHomeProxy

ejbLocalHomeProxy

protected java.lang.Object ejbLocalHomeProxy

rmiBroker

protected RMIBrokerRemote rmiBroker

homeMethodMap

protected java.util.Map homeMethodMap
A Map of all EJBLocalHome methods.
Constructor Detail

ClientInvokableContainer

public ClientInvokableContainer()
Method Detail

destroy

public void destroy()
             throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service is eventually destroyed. Convenience implementation.
Overrides:
destroy in class EJBContainer

getEJBHome

public java.lang.Object getEJBHome(EJBInvocation ejbInvocation)
Overrides:
getEJBHome in class EJBContainer

getEJBLocalHome

public java.lang.Object getEJBLocalHome(EJBInvocation ejbInvocation)
Overrides:
getEJBLocalHome in class EJBContainer

getHomeHandleHome

public java.lang.Object getHomeHandleHome(EJBInvocation ejbInvocation)

getHomeClass

public java.lang.Class getHomeClass()

getHomeMethodMap

public java.util.Map getHomeMethodMap()

getLocalClass

public java.lang.Class getLocalClass()

getLocalHomeClass

public java.lang.Class getLocalHomeClass()

getRemoteClass

public java.lang.Class getRemoteClass()

getRmiBroker

public RMIBrokerRemote getRmiBroker()

setRmiBroker

public void setRmiBroker(RMIBrokerRemote rmiBroker)

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Overrides:
init in class EJBContainer

invokeHomeMethod

public java.lang.Object invokeHomeMethod(EJBInvocation ejbInvocation)
                                  throws java.lang.Exception

isLocal

public boolean isLocal()

isLocalInvocation

public boolean isLocalInvocation(EJBInvocation ejbInvocation)

isRemote

public boolean isRemote()

setIIOP

public void setIIOP(boolean IIOP)

isIIOP

public boolean isIIOP()

getIdFromHandle

protected java.lang.Object getIdFromHandle(javax.ejb.Handle h)
                                    throws java.rmi.RemoteException

mapHomeMethods

protected abstract void mapHomeMethods(java.lang.reflect.Method[] method)
                                throws java.lang.NoSuchMethodException

mapObjectMethods

protected abstract void mapObjectMethods(java.lang.reflect.Method[] method)
                                  throws java.lang.NoSuchMethodException

getRoleLink

public java.lang.String getRoleLink(java.lang.String roleRef)

setJNDIName

public void setJNDIName(java.lang.String jndiName)
Overrides:
setJNDIName in class EJBContainer


Copyright � 2002 Macromedia Corporation. All Rights Reserved.