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 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 |
| 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 jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
StatefulClusterInterceptor
public StatefulClusterInterceptor(EJBContainer container)
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.