![]() |
Samples are provided to demonstrate typical use of the CORBA and EJB programming models for interoperation between WebSphere and 3rd-party ORBs. Where necessary, the strategies described in the previous sections are applied. The sample code covers the following scenarios:
Client | Server |
---|---|
3rd-party ORB, C++ language bindings | WebSphere Enterprise JavaBean |
WebSphere EJB server (as a CORBA client) | 3rd-party Java CORBA object |
3rd-party C++ CORBA object | |
WebSphere EJB server (as a CORBA client) coexistent with a 3rd-party Java ORB | 3rd-party C++ CORBA object |
For the latest list of interoperation samples, see Samples and Tutorials > Websphere - 3rd Party ORB interoperation in the navigation pane of the WebSphere Application Server enterprise services infocenter.
The Enterprise JavaBeans used in the sample code, for both client and server, are session beans.
The program techniques vary from one scenario to another, and are described in detail in the documentation for the scenario.
Each set of sample code explores server object access, primitive data types, and complex data types and operations between a WebSphere ORB and a specific vendor ORB. The sample code does not attempt to verify compliance, nor does it attempt to verify consistent behavior of an ORB. For example, not all possible ways of exchanging data types are explored: simple data types can be passed to the server as CORBA in parameters, and returned in the return-value, where CORBA out and inout parameters are not used. Some features work or do not work for a specific ORB. The information accompanying each sample states whether or not a feature can be used successfully.
The sample code demonstrates access to a server object as follows:
For CORBA server objects, the sample code demonstrates methods that exchange simple IDL data types as input parameters (CORBA in parameters) and return types. The sample code also demonstrates methods that exchange complex IDL data types and operations. This includes the following data types and operations:
For CORBA access to Enterprise JavaBeans hosted by a WebSphere EJB server, the sample code demonstrates use of Java data types. The sample code also demonstrates the exceptions that are generated by an Enterprise JavaBean and caught by the client. This includes the following following Java data types and exceptions:
Related concepts... | |
WebSphere to 3rd-party ORB interoperation | |
WebSphere CORBA support scenarios | |