org.objectweb.easybeans.rpc
Class RemoteCallFactory

java.lang.Object
  extended by org.objectweb.easybeans.rpc.RemoteCallFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class RemoteCallFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

Factory creating an EJB proxy for remote calls.

Author:
Florent Benoit.

Constructor Summary
RemoteCallFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCallFactory

public RemoteCallFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable<?,?> environment)
                                   throws java.lang.Exception
Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
obj - the reference containing data to build instance
name - Name of context, relative to ctx, or null.
nameCtx - Context relative to which 'name' is named.
environment - Environment to use when creating the context *
Returns:
an instance of a proxy (an EJB) that handle local calls.
Throws:
java.lang.Exception - if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.