Creating IDL files for an enterprise bean

Why and when to perform this task

Use this task to generate the Interface Definition Language (IDL) files that specify the interface to an enterprise bean. You then can use the IDL to create client-side usage bindings for CORBA clients to use the EJB's interface. Complete this task only if you are developing a CORBA client that needs to access an enterprise bean.

Steps for this task

  1. Develop the enterprise bean.
  2. Ensure that the JAR file that contains the EJB class can be accessed by the rmic command. The JAR file should be in the system classpath.

    To generate IDL files for the com.ibm.ejb.samples.hello.Hello enterprise bean, you might use the following command:

    rmic -idl com.ibm.ejb.samples.hello.Hello com.ibm.ejb.samples.hello.HelloHome

  3. Use the Java rmic -idl command to generate IDL files from the enterprise bean's remote and home interfaces.
    This step results in the class.idl and classHome.idl files. For example, the previous rmic command for the Hello enterprise bean class created the following idl files: Hello.idl and HelloHome.idl.

What to do next

You can use the IDL file to create the client-side usage bindings needed by a CORBA client, as described in Developing a CORBA C++ client.

Related tasks
Developing a CORBA C++ client



Searchable topic ID:   tcor_ejbidl
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/tasks/tcor_ejbidl.html

Library | Support | Terms of Use | Feedback