[Enterprise Extensions only]

Writing a WebSphere Enterprise JavaBean as a client of a 3rd-party CORBA ORB

An enterprise bean hosted by WebSphere Application Server can act as a client to a CORBA server on a third-party ORB. The enterprise bean itself is written like any other enterprise bean. It must implement the required methods in the usual home and remote interfaces so that its clients can contact it. The remote interface defines the business methods of the bean, and all of the work related to using the CORBA server occurs in the implementation of those methods. The use of a CORBA server does not change the usual programming tasks associated with enterprise beans, but the code in the remote methods must include code for communicating with the server. This includes code for the following:

In the sample application, the enterprise bean that acts as a client of the CORBA server is written as a stateless session bean. The writing such an enterprise bean can be divided logically into two pieces: