org.jboss.ejb3.proxy.impl.remoting
Class ProxyRemotingUtils

java.lang.Object
  extended by org.jboss.ejb3.proxy.impl.remoting.ProxyRemotingUtils

public class ProxyRemotingUtils
extends Object

ProxyRemotingUtils

Version:
$Revision: $
Author:
ALR

Field Summary
protected static String DEFAULT_CLIENT_BINDING
          The default URL for InvokerLocator in the case @RemoteBinding does not specify it Synchronization policy on "this"
protected static String DEFAULT_CLIENT_BINDING_IF_CONNECTOR_NOT_FOUND
          The default URL for InvokerLocator if if cannot be read from the EJB3 Remoting Connector
 
Constructor Summary
ProxyRemotingUtils()
           
 
Method Summary
static org.jboss.ejb3.proxy.spi.container.InvokableContext createRemoteProxyToContainer(String containerName, String containerGuid, String url, org.jboss.aop.advice.Interceptor[] interceptors, Object target)
          Creates a remote proxy to the container using the specified arguments.
static String getClientBinding(String invokerName)
          Obtains the client binding for the specified invokerName (supplied as the Object Store bind name in MC)
static String getDefaultClientBinding()
          Obtains the default client binding Will return the value of the InvokerLocator used by the EJB3 Remoting Connector EJBTHREE-1419
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLIENT_BINDING

protected static String DEFAULT_CLIENT_BINDING
The default URL for InvokerLocator in the case @RemoteBinding does not specify it Synchronization policy on "this"


DEFAULT_CLIENT_BINDING_IF_CONNECTOR_NOT_FOUND

protected static final String DEFAULT_CLIENT_BINDING_IF_CONNECTOR_NOT_FOUND
The default URL for InvokerLocator if if cannot be read from the EJB3 Remoting Connector

See Also:
Constant Field Values
Constructor Detail

ProxyRemotingUtils

public ProxyRemotingUtils()
Method Detail

getDefaultClientBinding

public static String getDefaultClientBinding()
Obtains the default client binding Will return the value of the InvokerLocator used by the EJB3 Remoting Connector EJBTHREE-1419


getClientBinding

public static String getClientBinding(String invokerName)
                               throws org.jboss.ejb3.common.registrar.spi.NotBoundException
Obtains the client binding for the specified invokerName (supplied as the Object Store bind name in MC)

Parameters:
invokerName -
Returns:
Throws:
org.jboss.ejb3.common.registrar.spi.NotBoundException - If the specified invokerName is not bound in MC

createRemoteProxyToContainer

public static org.jboss.ejb3.proxy.spi.container.InvokableContext createRemoteProxyToContainer(String containerName,
                                                                                               String containerGuid,
                                                                                               String url,
                                                                                               org.jboss.aop.advice.Interceptor[] interceptors,
                                                                                               Object target)
Creates a remote proxy to the container using the specified arguments. This is here to centralize the hackiness of this approach. Ideally remoting should be an add-on capability, not built-in to the core logic of having a proxy to a container. Thus marked as FIXME.

Parameters:
containerName -
containerGuid -
url -
interceptors -
target -
Returns:


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.