public class RemoteNamingStoreEJBClientHandler extends Object implements EJBClientHandler
EJBClientHandler which has hard dependency on the EJB client APIs| Modifier and Type | Method and Description |
|---|---|
void |
associate(org.jboss.remoting3.Connection connection)
Associates the passed
connection with an appropriate EJBClientContext. |
boolean |
equals(Object obj) |
Object |
handleLookupReturnInstance(Object instance)
This method will be invoked by the remote naming lookup protocol after it has received back the object
from the server, during a
Context.lookup(String) or Context.lookup(javax.naming.Name)
operation. |
static RemoteNamingStoreEJBClientHandler |
setupEJBClientContext(List<RemoteContext.CloseTask> closeTasks) |
public static RemoteNamingStoreEJBClientHandler setupEJBClientContext(List<RemoteContext.CloseTask> closeTasks)
public void associate(org.jboss.remoting3.Connection connection)
EJBClientHandlerconnection with an appropriate EJBClientContext.
The passed connection is typically managed by the remote naming APIsassociate in interface EJBClientHandlerconnection - The connection to be associated with the EJB client contextpublic Object handleLookupReturnInstance(Object instance)
EJBClientHandlerContext.lookup(String) or Context.lookup(javax.naming.Name)
operation. This allows the EJBClientHandler implementations to check if the returned object is an
EJB proxy and if it is, then do any relevant processing
of that proxy before returning back the processed/updated proxy.
If the passed instance is not an EJB proxy then the implementations of this EJBClientHandler
are expected to just return back the passed instance.handleLookupReturnInstance in interface EJBClientHandlerinstance - The object instance which was returned by the server after a remote naming lookupCopyright © 2015 JBoss by Red Hat. All Rights Reserved.