org.jboss.proxy.ejb
Class SingleRetryInterceptor

java.lang.Object
  extended by org.jboss.proxy.Interceptor
      extended by org.jboss.proxy.ejb.RetryInterceptor
          extended by org.jboss.proxy.ejb.SingleRetryInterceptor
All Implemented Interfaces:
Externalizable, Serializable

public class SingleRetryInterceptor
extends RetryInterceptor

An interceptor that will retry failed invocations by restoring the InvocationContext invoker. This is triggered by a ServiceUnavailableException which causes the interceptor to retry the lookup of the transport invoker using the jndi name obtained from the invocation context under the key InvocationKey.JNDI_NAME, with the additional extension of "-RemoteInvoker" if the invocation type is InvocationType.REMOTE and "-HomeInvoker" if the invocation type is InvocationType.HOME. The JNDI environment used for the lookup can be set via the setRetryEnv. Typically this is an HA-JNDI configuration with one or more bootstrap urls. If not set, an attempt will be made to use NamingContextFactory.getInitialContext(Hashtable) to find the JNDI environment. This will only be useful if java.naming.factory.initial was set to org.jboss.naming.NamingContextFactory. If neither of the above steps yield a set of naming environment properties, a default InitialContext will be used.

Version:
$Revision $
Author:
brian.stansberry@jboss.org
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.proxy.Interceptor
nextInterceptor
 
Constructor Summary
SingleRetryInterceptor()
          No-argument constructor for externalization.
 
Method Summary
 
Methods inherited from class org.jboss.proxy.ejb.RetryInterceptor
getMaxRetries, getRetry, getSleepTime, invoke, readExternal, setMaxRetries, setRetry, setRetryEnv, setSleepTime, writeExternal
 
Methods inherited from class org.jboss.proxy.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRetryInterceptor

public SingleRetryInterceptor()
No-argument constructor for externalization.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.