EJB IIOP server to server issues from JBoss EAP 7.0 to EAP 7.1

Solution Unverified - Updated

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.x

Issue

  • EJB IIOP server to server issues from JBoss EAP 7.0 <=> EAP 7.1

Resolution

The workaround is to add these ORB properties prior to creating the InitialContext:

        Properties orbenv = new Properties();
        orbenv.setProperty("org.omg.CORBA.ORBClass", "com.sun.corba.se.impl.orb.ORBImpl");
        orbenv.setProperty("org.omg.CORBA.ORBSingletonClass", "com.sun.corba.se.impl.orb.ORBSingleton");
        Properties env = new Properties();
        env.put("java.naming.corba.orb", org.omg.CORBA.ORB.init(new String[0], orbenv));

        // look up the EJB with host/port as normal:
        InitialContext ctx = new InitialContext(env);
        String lookup = "corbaname:iiop:" + host + ":" + port +"#" + ejbLookupPath;
        Object iiopObj = ctx.lookup(lookup);

Related Solutions

Root Cause

Content from issues.jboss.org is not included.JBEAP-16187
Content from issues.jboss.org is not included.JBEAP-16246

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.