4 Replies Latest reply on May 30, 2003 12:05 PM by Francisco Reverbel

    IDL from EJB?

    Alex Hornby Newbie

      I'm looking into using JBOSS and EJBs in conjuction with an existing C++ CORBA client application.

      I was wondering if JBOSS's IIOP support includes generating IDL for use by CORBA client programs.

      If so, how would I go about doing this? Pointers to doco or examples appreciated.

        • 1. Re: IDL from EJB?
          green frog Newbie

          Actually you don't have to find any problem just to compile yours ejb interfaces with rmic -idl option and then compile resulted idls with your idl compiler... In theory. I do not know the situation now, but half year ago we had problems to do it with mico.

          Again, you will have a bunch of idl's so you will need to merge it and simplify a bit. If you are passing objects to ejbs you'll have even more idls to compile.

          I have an article
          "Enterprise JavaBeans Components and CORBA Clients: A Developer Guide" from SUN but I do not remember where I have downloaded it :-(((

          Some comments about JBoss iiop... it's buggy (or maybe all another implementations I tried, but I use rmi/iiop to connect to my application and I tested it with Weblogic, AS7 and RI, but with JBoss 3.0x it crashed in some places... :-(
          Anyway, JBoss is GREAT!!!

          Cheers,

          Silly

          • 2. Re: IDL from EJB?
            lizzyma Newbie

            This is the path to that document
            http://java.sun.com/j2se/1.4.1/docs/guide/rmi-iiop/interop.pdf

            I've been following it because I want to create a C++Corba client using TAO and a JBoss EJB Server. I'm trying to create a simple hello program. I created the EJB Server. I ran

            rmic -idl -noValueMethods -classpath D:\jboss-3.2.1\client\jboss-j2ee.jar;. -d ./IDL hello.Hello hello.HelloHome
            to generate the IDL files.
            Tried to compile the IDL and got errors.
            just wondering if anyone has managed get EJB and Corba talking. Even more particular JBoss and TAO

            • 3. Re: IDL from EJB?
              Francisco Reverbel Novice

              > Some comments about JBoss iiop... it's buggy (or
              > maybe all another implementations I tried, but I use
              > rmi/iiop to connect to my application and I tested it
              > with Weblogic, AS7 and RI, but with JBoss 3.0x it
              > crashed in some places... :-(

              Could you test your app with JBoss 3.2.x? In case it still crashes, please submit a bug report at sourceforge.

              Cheers,

              Francisco

              • 4. Re: IDL from EJB?
                Francisco Reverbel Novice

                > just wondering if anyone has managed get EJB and
                > Corba talking. Even more particular JBoss and TAO

                The latest version of MICO includes three examples of C++ clients that call EJBs deployed in JBoss 3.2.x. I contributed the examples myself. These C++ clients are not tied to MICO in any way. They should run on any CORBA-compliant ORB with support to valuetypes and valueboxes. This includes most commercial C++ ORBs, but not TAO, which AFAIK does not support valueboxes yet. I believe that right now MICO is the only open-source C++ ORB with the required features.

                To get the C++ examples, download MICO 2.3.10 from www.mico.org. The examples are in the subdirectory 'demo/interop/jboss' of the MICO distribution package. Once MICO is installed, they are placed under 'doc/mico/examples/interop/jboss' of MICO's installation tree.

                Cheers,

                Francisco