Contact us | Links | |||||||||||||||||||||||||||||
|
Does IIOP.NET work with Microsoft's .NET 1.1?Yes, it does. This is in fact the platform it was developed on. Does IIOP.NET work with Microsoft's Windows CE .NET (Compact Framework)?No, because Windows CE .NET has no remoting support at all. Does IIOP.NET support Visual Studio's Intellisense?There is an implementation limitation in Intellisense for C#: it cannot extract type information from multimodule assemblies, thus you won't be able to see the interfaces and proxies generated with the IDLToCLSCompiler using Intellisense while writing C# code. This limitation is not present in Intellisense for Visual Basic. Another workaround is to merge the multimodule assemblies into a single assembly; we know of a commercial tool for this purpose called "Salamander.NET linker". Does IIOP.NET work with mono?Currently (mono 0.28) not, but only few features are missing. We are regularly testing IIOP.NET against the mono CVS and reporting the problems we find to the mono team. We expect IIOP.NET to work on Mono pretty soon. Can IIOP.NET interoperate with BEA WebLogic 6.1?Yes, it can. Some hints are provided in the EJB example tutorial and in the WebLogic 6.1 interoperation howto. Can IIOP.NET interoperate with BEA WebLogic 8.1?Yes, it can. Some hints are provided in the Weblogic 8.1 interoperation howto. Can IIOP.NET interoperate with IBM Websphere 4?Yes, it can. Some hints are provided in the Websphere 4 interoperation howto. Can IIOP.NET interoperate with IBM Websphere 5?Yes, it can. Some hints are provided in the Websphere 5 interoperation howto. Can IIOP.NET interoperate with JBoss 3.2?Yes, it can. Some hints are provided in the JBoss 3.2 interoperation howto. Can the IIOP.NET sources be compiled without any configuration?To compile the tutorials, you must copy the files ir.idl and orb.idl in the ./IDL directory before compiling the tutorials. You will find these two files as part of your Java SDK in the %JAVA_HOME%\lib directory. To compile parts of the project, the makefile requires some environment variables to be set:
Can the IIOP.NET channel be configured with a config-file?
Yes, it can. <configuration> <system.runtime.remoting> <application> <channels> <channel type="Ch.Elca.Iiop.IiopChannel,IiopChannel" port="8087"/> </channels> </application> </system.runtime.remoting> </configuration>is equivalent to the following: // register the channel IiopChannel chan = new IiopChannel(8087); ChannelServices.RegisterChannel(chan);The config file is processed with: RemotingConfiguration.Configure(configFile); How do I configure NUnit V2.0 to use the .NET Framework 1.1?
Add the following configuration lines in the files <startup> <supportedRuntime version="v1.1.4322" /> </startup> How do I use the IDLToCLSCompiler?The IDLToCLSCompiler creates the .NET proxies for one or more IDL files. IDLToCLSCompiler [options] target_assembly idl-files... target_assembly is the name of the target assembly without .dll idl-files one or more idl files containg OMG IDL definitions options are -h help -r assembly assemblies to check for types in, instead of generating them -c xmlfile specifies custom mappings -d define defines a preprocessor symbol -idir directory directory containing idl files (multiple -idir allowed) Examples:
Notes:The compiler will warn you that you must provide the implementation for the classes implementing the CORBA valuetypes. The article Accessing an EJB from .NET Using IIOP.NET: an Example contains a detailed explanation and example (see step 4). How do I configure IIOP.NET to generate debug information?Availability: November 6th 2003 (CVS); release 1.5.1The IIOP.NET channel must be recompiled with nmake rebuild-base-debug This will delete the channel's binaries and recompile them with debug enabled. You can now recompile the example or code that need inspection and execute it. After execution, you will find in the same directory a file named IIOPNET_DebugOutput_timestamp containing additional information. After debugging remember to recompile the channel without debugging, as this can generate fairly big trace files whenever used: nmake rebuild-base How can I access an object using its stringified IOR?The following Code reads an stringified IOR from the file iorfile and creates a proxy for the remote object represented by the IOR: StreamReader stream = new StreamReader(iorfile); String ior = stream.ReadLine(); MyRemoteObjectIF remoteObject = (MyRemoteObjectIF)RemotingServices.Connect(typeof(MyRemoteObjectIF), ior); How can I get the stringified IOR from a proxy object?The following Code returns the stringified IOR of a remote object, given its local proxy: String ior = RemotingServices.GetObjectUri(proxy); This won't obviously work, when the proxy is created manually with RemotingServices.Connect using a .NET URI or a corbaloc URI. In this case the above call will return the URI used in Connect. How can I access an object using its corbaloc:iiop address?The following code creates a proxy for the remote object represented by the given corbaloc: string loc = "corbaloc::localhost:3528/myobject"; MyRemoteObjectIF remoteObject = (MyRemoteObjectIF)RemotingServices.Connect(typeof(MyRemoteObjectIF), loc);Note: This feature is only available in IIOP.NET 1.4.0 and above. How do I implement a callback?IIOP.NET contains two examples using callbacks:
Exception: Invalid PInvoke metadata formatThis is usually caused by the some backward incompatibility between the .NET framework 1.0 and 1.1: the error occurs, when you run an application built for .NET framework 1.0 on the .NET framework 1.1. A detailed description of the problem and possible solutions can be found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp CORBA Exception: No_Implement (minor-code = 1)The marshaller on the .NET-side cannot find the class implementing the valuetype. Check that:
CORBA system exception, completed: Completed_MayBe minor: 1414This exception is thrown by IIOP.NET whenever it receives an object reference of an unknown type. The most common errors are:
omg.org.CORBA.CODESET_INCOMPATIBLE: CORBA system exception, completed: Completed_No minor: 9501Currently, IIOP.NET does only support a limited set of codesets:
|
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.News |
|||||||||||||||||||||||||||
© 2003 ELCA All Rights Reserved |