Contact us | Links | |||||||||||||||||||||
|
IBM Websphere 5 compatibility howtoThis howto contains information for IIOP.NET 1.2.3 or newer.
Accessing the name service RmiIiopInit init = new RmiIiopInit(nameServiceHost, nameServicePort); NamingContext nameService = (NamingContext)init.GetService("NameServiceServerRoot"); Because the type of the NamingContext returned is Websphere-specific, the following file must be added to every IIOP.NET Websphere client, when using an IIOP.NET version prior to 1.3.1: //IbmNaming.cs using Ch.Elca.Iiop.Idl; using Ch.Elca.Iiop.Services; namespace com.ibm.WsnOptimizedNaming { [RepositoryIDAttribute("IDL:com.ibm/WsnOptimizedNaming/NamingContext:1.0")] [InterfaceTypeAttribute(IdlTypeInterface.ConcreteInterface)] public interface NamingContext : omg.org.CosNaming.NamingContext { } }
Hint: This interface has been added to the channel in version 1.3.1.
Using an EJB 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();
Known problems
|
About this projectThis 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 CasesRead the IIOP.NET success stories. News
|
|||||||||||||||||||
© 2003-2004 ELCA All Rights Reserved |