| 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.
author: brian.stansberry@jboss.org version: $Revision $ |