3 Replies Latest reply on Apr 18, 2002 11:32 AM by Jörg Pensel

    EJB CORBA and JBoss 3.0.0 RC1

    Jörg Pensel Newbie

      I use corba services from within session beans;
      the lookup at the CosNaming service is done with jndi.
      This worked fine for Jboss 3.0.0 alpha.

      The problems occured, when i tried to switch to the beta
      or rc1 version.

      The bean seems to block when calling the lookup for
      the CORBA service at the context (ctx.lookup(...)).

      Can anybody help me with that problem?

        • 1. Re: EJB CORBA and JBoss 3.0.0 RC1
          David Jencks Master

          I really have no idea, but there is more iiop support in jboss rc1. is it possible that your corba stuff is conflicting with that in jboss?

          • 2. Re: EJB CORBA and JBoss 3.0.0 RC1
            Jörg Pensel Newbie

            I use the following code (the line causing the problem is marked):

            =============================

            java.util.Hashtable env = new java.util.Hashtable();
            env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory" );
            env.put( context.PROVIDER_URL, "iiop://lx00003.coi.com:4500" );

            javax.naming.InitialContext delegateContext = new javax.naming.InitialContext( env );

            // The following line leads to the block
            org.omg.CORBA.Object obj = (org.omg.CORBA.Object)
            delegateContext.lookup( "corba/session/SessionAdminService" );

            =========================================

            If i only lookup the namespace (for example corba/session) the call is successfull.
            Our stubs are BOA stubs. Can this be the problem
            or is it a sun orb problem again?

            • 3. Re: EJB CORBA and JBoss 3.0.0 RC1
              Jörg Pensel Newbie

              I switched to jacORB and it seems that this solves
              the problem.