users@glassfish.java.net

Re: EJB 3 Interoperability issue - need help

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Mar 2008 03:57:10 PST

Hi Pocket,

we sucessfully connected a C# client via IIOP.NET to an EJB (2.x) style to GlassFish v2 in the following way:

Step 1:
Create EJB 2.x wiht Home/Remote interfaces

Step 2:
run rmic compiler with the following options:
rmic -idl -classpath ..\EJBTest\dist\EJBTest.jar;javaee.jar -d ../EJBTest/src/idl_gen test.jee5.EJBTestHome

Step 3:
Copy "orb.idl" and "ir.idl" from ./jre/lib directory to your idl-root directory (in our sample "idl_gen").

Step 4:
Run IIOP.NET idl compiler with options to automatically generates impl classes for all value types:
IDLToCLSCompiler -vtSkel -vtSkelO -vtSkelTd ..\gen_src -o ..\lib <assembly name> test\jee5\EJBTestHome.idl

The generated Impl-Classes are ready to use, there is no need to overwrite the generated classes.

Hope this helps,
 greetings
[Message sent by forum member 'fmeili' (fmeili)]

http://forums.java.net/jive/thread.jspa?messageID=263780