CORBA/IIOP
Resin 2.1

Reference Guide
EJB Reference Guide

EJBServer
JNDI
Entity Config
Relation Config
Session Config
Resin-EJB Config
SQL mapping
Transaction Config
Message Config
EJB-QL
xdoclet
Config Summary
Burlap
JMS
CORBA/IIOP
Index
JMS
EJB Reference Guide
Index

EJB 2.0 requires servers to implement CORBA/IIOP as a wire protocol. So in addition to Burlap, Resin-EJB makes CORBA/IIOP available.

Server Configuration

The Resin-EJB CORBA server configuration is identical to the Burlap configuration. The only addition is an additional server port to listen for CORBA requests. Everything else is identical to Burlap, including the Burlap EJBServlet, so beans do not need to be aware which wire protocol is used.

resin.conf
<caucho.com>
  <http-server>
  ...
  <http id='a' port='8080'/>

  <server id='a' port='2099'>
    <request-factory>com.caucho.iiop.IiopServer</request-factory>
  </server>

 ...
 <http-server>
   ...
 </http-server>
</caucho.com>

Client Example

Clients will use JNDI to look up beans in the server. The JNDI name uses the same name as the bean's Burlap URL. If the EJBServlet is at http://localhost:8080/app/ejb, and the bean name is "hello", the JNDI path will be /localhost:8080/app/ejb/hello.

import javax.naming.*;

Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
env.put("java.naming.provider.url", "iiop://localhost:2099");
Context ctx = new InitialContext(env);
Object homeObj = ctx.lookup("/localhost/app/hello");

HelloHome home = PortableRemoteObject.narrow(homeObj, TestHome.class);


JMS
EJB Reference Guide
Index
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.