From: Francisco R. <rev...@us...> - 2002-03-30 20:48:32
|
User: reverbel Date: 02/03/30 12:48:30 Modified: iiop/src/main/org/jboss/ejb/plugins/iiop/server IIOPContainerInvoker.java Log: HomeFactory is not an static nested class within IIOPContainerInvoker anymore. Rationale: clients need the HomeFactory class. Revision Changes Path 1.16 +2 -26 contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java Index: IIOPContainerInvoker.java =================================================================== RCS file: /cvsroot/jboss/contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- IIOPContainerInvoker.java 15 Mar 2002 22:12:23 -0000 1.15 +++ IIOPContainerInvoker.java 30 Mar 2002 20:48:30 -0000 1.16 @@ -17,7 +17,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; -import java.util.Hashtable; import java.util.Iterator; import java.util.Map; @@ -31,7 +30,6 @@ import javax.naming.NamingException; import javax.naming.StringRefAddr; import javax.naming.Reference; -import javax.naming.spi.ObjectFactory; import javax.rmi.PortableRemoteObject; import javax.transaction.Transaction; @@ -75,6 +73,7 @@ import org.jboss.ejb.plugins.iiop.client.StubStrategy; import org.jboss.ejb.plugins.iiop.EJBMetaDataImpl; import org.jboss.ejb.plugins.iiop.HandleImpl; +import org.jboss.ejb.plugins.iiop.HomeFactory; import org.jboss.ejb.plugins.iiop.HomeHandleImpl; import org.jboss.ejb.plugins.iiop.LocalInvoker; import org.jboss.ejb.plugins.iiop.RmiIdlUtil; @@ -119,7 +118,7 @@ * CORBA reference for the corresponding <code>EJBObject</code>. * * @author <a href="mailto:rev...@im...">Francisco Reverbel</a> - * @version $Revision: 1.15 $ + * @version $Revision: 1.16 $ */ public class IIOPContainerInvoker extends Servant @@ -1121,27 +1120,4 @@ } - // Nested class HomeFactory ------------------------------------------------ - - public static class HomeFactory implements ObjectFactory { - - private static ORB orb = ORB.init(new String[0], System.getProperties()); - - public HomeFactory() - { - } - - // Implementation of the interface ObjectFactory ------------------------ - - public Object getObjectInstance(Object obj, Name name, - Context nameCtx, Hashtable environment) - throws Exception - { - return (EJBHome)PortableRemoteObject.narrow( - orb.string_to_object( - (String)((Reference)obj).get("IOR").getContent()), - EJBHome.class); - } - } - } |