java.lang.Object | |||||
↳ | org.springframework.jndi.JndiAccessor | ||||
↳ | org.springframework.jndi.JndiLocatorSupport | ||||
↳ | org.springframework.jndi.JndiObjectLocator | ||||
↳ | org.springframework.ejb.access.AbstractSlsbInvokerInterceptor | ||||
↳ | org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor |
Known Direct Subclasses |
Known Indirect Subclasses |
Base class for interceptors proxying remote Stateless Session Beans. Designed for EJB 2.x, but works for EJB 3 Session Beans as well.
Such an interceptor must be the last interceptor in the advice chain. In this case, there is no target object.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jndi.JndiLocatorSupport
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jndi.JndiAccessor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fetches an EJB home object and delegates to
doInvoke . | |||||||||||
Set a home interface that this invoker will narrow to before performing
the parameterless SLSB
create() call that returns the actual
SLSB proxy. | |||||||||||
Set whether to refresh the EJB home on connect failure.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform the given invocation on the current EJB home.
| |||||||||||
Check for EJB3-style home object that serves as EJB component directly.
| |||||||||||
Determine whether the given RMI exception indicates a connect failure.
| |||||||||||
Return whether the cached EJB home object is potentially
subject to on-demand refreshing.
| |||||||||||
This overridden lookup implementation performs a narrow operation
after the JNDI lookup, provided that a home interface is specified.
| |||||||||||
Return a new instance of the stateless session bean.
| |||||||||||
Refresh the EJB home object and retry the given invocation.
| |||||||||||
Remove the given EJB instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.ejb.access.AbstractSlsbInvokerInterceptor
| |||||||||||
From class
org.springframework.jndi.JndiObjectLocator
| |||||||||||
From class
org.springframework.jndi.JndiLocatorSupport
| |||||||||||
From class
org.springframework.jndi.JndiAccessor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Fetches an EJB home object and delegates to doInvoke
.
If configured to refresh on connect failure, it will call
refreshAndRetry(MethodInvocation)
on corresponding RMI exceptions.
invocation | the AOP method invocation |
---|
Throwable |
---|
Set a home interface that this invoker will narrow to before performing
the parameterless SLSB create()
call that returns the actual
SLSB proxy.
Default is none, which will work on all J2EE servers that are not based
on CORBA. A plain javax.ejb.EJBHome
interface is known to be
sufficient to make a WebSphere 5.0 Remote SLSB work. On other servers,
the specific home interface for the target SLSB might be necessary.
Set whether to refresh the EJB home on connect failure. Default is "false".
Can be turned on to allow for hot restart of the EJB server. If a cached EJB home throws an RMI exception that indicates a remote connect failure, a fresh home will be fetched and the invocation will be retried.
NoSuchObjectException
Perform the given invocation on the current EJB home. Template method to be implemented by subclasses.
invocation | the AOP method invocation |
---|
Throwable | in case of invocation failure |
---|
Check for EJB3-style home object that serves as EJB component directly.
home | the EJB home object |
---|
EjbAccessException |
---|
Determine whether the given RMI exception indicates a connect failure.
The default implementation delegates to RmiClientInterceptorUtils.
ex | the RMI exception to check |
---|
Return whether the cached EJB home object is potentially subject to on-demand refreshing. Default is "false".
This overridden lookup implementation performs a narrow operation after the JNDI lookup, provided that a home interface is specified.
NamingException |
---|
Return a new instance of the stateless session bean. To be invoked by concrete remote SLSB invoker subclasses.
Can be overridden to change the algorithm.
NamingException | if thrown by JNDI |
---|---|
InvocationTargetException | if thrown by the create method |
Refresh the EJB home object and retry the given invocation. Called by invoke on connect failure.
invocation | the AOP method invocation |
---|
Throwable | in case of invocation failure |
---|
Remove the given EJB instance. To be invoked by concrete remote SLSB invoker subclasses.
ejb | the EJB instance to remove |
---|