jrun.ejb.interceptors
Class StatefulClusterInterceptor

jrunx.kernel.ServiceAdapter
  |
  +--jrun.ejb.interceptors.AbstractInterceptor
        |
        +--jrun.ejb.interceptors.StatefulClusterInterceptor
All Implemented Interfaces:
Interceptor, InterceptorMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, StatefulClusterInterceptorMBean

public class StatefulClusterInterceptor
extends AbstractInterceptor
implements StatefulClusterInterceptorMBean

Interceptor for copying instance state and state changes to a secondary stateful container in a clustered SFSB scenario. The Instance itself is not copied, nor is the method re-invoked, but rather a state object that can be used to reconstruct an equivalent instance is transferred, allowing the secondary container to recreate the instance when and if needed.

Author:
PS Neville
See Also:
BuddyAlgorithm, Serialized Form

Fields inherited from class jrun.ejb.interceptors.AbstractInterceptor
container, ISFIRST_MESSAGE, ISLAST_MESSAGE, next, previous
 
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.interceptors.StatefulClusterInterceptorMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
StatefulClusterInterceptor(EJBContainer container)
           
 
Method Summary
 java.lang.Object invokeHomeMethod(EJBInvocation ctx)
           
 java.lang.Object invokeObjectMethod(EJBInvocation ctx)
           
 
Methods inherited from class jrun.ejb.interceptors.AbstractInterceptor
getContainer, getContainerName, getEJBMetaData, getNext, getNextInterceptorName, getPrevious, getPreviousInterceptorName, setNext, setPrevious
 
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.InterceptorMBean
getContainerName, getNextInterceptorName, getPreviousInterceptorName
 
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

StatefulClusterInterceptor

public StatefulClusterInterceptor(EJBContainer container)
Method Detail

invokeHomeMethod

public java.lang.Object invokeHomeMethod(EJBInvocation ctx)
                                  throws java.lang.Exception
Overrides:
invokeHomeMethod in class AbstractInterceptor

invokeObjectMethod

public java.lang.Object invokeObjectMethod(EJBInvocation ctx)
                                    throws java.lang.Exception
Overrides:
invokeObjectMethod in class AbstractInterceptor


Copyright � 2002 Macromedia Corporation. All Rights Reserved.