How to enable EJB IIOP in JBoss EAP 7 / 6

Solution Verified - Updated

Environment

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

Issue

  • How to enable EJB IIOP in JBoss EAP 7.1
  • How to enable EJB IIOP in JBoss EAP 7 / 6

Resolution

Note: make sure you are using one of the full profiles such as standalone-full.xml or standalone-full-ha.xml as the web profiles do not include the iiop subsystem.

Enabling per EJB / deployment

In the EJB applications jboss-ejb3.xml, an EJB or all EJBs * can be IIOP enabled as shown below:

<?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:iiop="urn:iiop"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
                  http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd
                  urn:iiop jboss-ejb-iiop_1_0.xsd"
               version="3.1"
               impl-version="2.0">
    <assembly-descriptor>
        <iiop:iiop>
            <ejb-name>*</ejb-name>
        </iiop:iiop>
    </assembly-descriptor>
</jboss:ejb-jar>

Enabling globally for all EJB deployments

Set enable-by-default to `true in the EJB3 subsystem's iiop service, below is the CLI command:

/subsystem=ejb3/service=iiop:write-attribute(name=enable-by-default,value=true)

The JBoss profile xml would be:

        <subsystem xmlns="urn:jboss:domain:ejb3:5.0">
            ...
            <iiop enable-by-default="true" use-qualified-name="false"/>
            ...
        </subsystem>

Related Solutions:

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.