JBoss Community Archive (Read Only)

JBoss AS 7.1

EJB IIOP Guide

Enabling IIOP

To enable IIOP you must have the JacORB subsystem installed, and the <iiop/> element present in the ejb3 subsystem configuration. The standalone-full.xml configuration that comes with the distribution has both of these enabled.

The <iiop/> element takes two attributes that control the default behaviour of the server, for full details see EJB3 subsystem configuration guide.

Enabling JTS

To enable JTS simply add a <jts/> element to the transactions subsystem configuration.

It is also necessary to enable the JacORB transactions interceptor as shown below.

<subsystem xmlns="urn:jboss:domain:jacorb:1.1">
  <orb>
    <initializers transactions="on"/>
  </orb>
</subsystem>

Dynamic Stub's

Downloading stubs directly from the server is no longer supported. If you do not wish to pre-generate your stub classes JDK Dynamic stubs can be used instead. The enable JDK dynamic stubs simply set the com.sun.CORBA.ORBUseDynamicStub system property to true.

Configuring EJB IIOP settings via jboss-ejb3.xml

Specify the ejb names to be exposed via IIOP in the META-INF/jboss-ejb3.xml.  You can use <ejb-name>*</ejb-name> to expose all EJBs via IIOP

<?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>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:22:19 UTC, last content change 2012-11-20 20:17:28 UTC.