Contact us | Links

Bea WebLogic 6.1 compatibility howto

Accessing the name service

The Weblogic nameservice can be accessed from a .NET client with the following code:

    RmiIiopInit init = new RmiIiopInit(nameServiceHost, nameServicePort);
    NamingContext nameService = init.GetNameService();

Hint: The nameservice is listening normally on port 7001.

Using an EJB

The ejb home interface is accessed using the name service in the following way:

    NameComponent[] name = new NameComponent[] { new NameComponent("MyHome", "") };
    // get the reference to the adder-home
    MyEjbHome myHomeIf = (MyEjbHome)nameService.resolve(name);

The ejb can now be created using this home interface (standard ejb pattern):

    MyEjb myBean = myHomeIf.create();

More information

More information can be found in the EJB interoperation tutorial.

Known problems

  • The weblogic java to IDL generator generates incompatible IDL for jagged arrays (e.g. int[][]).
    To use jagged arrays from an IIOP.NET client, please generate the IDL for the jagged arrays with another java to IDL generator (e.g. included in java SDK 1.4). Compile these additional IDL files (e.g. org\omg\boxedRMI\seq2_long.idl) together with those produced by the weblogic java to IDL generator with the IIOP.NET IDL to CLS compiler to create the CLS.

About this project

This project is maintained by Elca Informatique SA and was developed in collaboration with the Programming Languages and Runtime Systems Research Group of the ETH-Zurich as part of Dominic Ullmann's diploma thesis.

IIOP.NET Use Cases

Read the IIOP.NET success stories.


© 2003-2004 ELCA All Rights Reserved