From: Francisco R. <rev...@us...> - 2004-05-10 22:24:59
|
User: reverbel Date: 04/05/10 15:24:51 Modified: iiop/src/main/org/jboss/iiop CorbaNamingService.java Log: Changes for JacORB 2.2. Revision Changes Path 1.6 +4 -1 contrib/iiop/src/main/org/jboss/iiop/CorbaNamingService.java Index: CorbaNamingService.java =================================================================== RCS file: /cvsroot/jboss/contrib/iiop/src/main/org/jboss/iiop/CorbaNamingService.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CorbaNamingService.java 26 Sep 2003 15:14:10 -0000 1.5 +++ CorbaNamingService.java 10 May 2004 22:24:51 -0000 1.6 @@ -17,6 +17,7 @@ import javax.naming.Reference; import javax.naming.spi.ObjectFactory; +import org.apache.avalon.framework.configuration.Configuration; import org.omg.CORBA.ORB; import org.omg.CORBA.Policy; import org.omg.CosNaming.NamingContext; @@ -37,7 +38,7 @@ * for JBoss to use. * * @author <a href="mailto:rev...@im...">Francisco Reverbel</a> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public class CorbaNamingService extends ServiceMBeanSupport @@ -98,6 +99,8 @@ // Create the naming service org.jacorb.naming.NamingContextImpl.init(orb, rootPOA); NamingContextImpl ns = new NamingContextImpl(namingPOA); + Configuration config = ((org.jacorb.orb.ORB)orb).getConfiguration(); + ns.configure(config); // configure the name service using the ORB config byte[] rootContextId = "root".getBytes(); namingPOA.activate_object_with_id(rootContextId, ns); namingService = NamingContextExtHelper.narrow( |