3 Replies Latest reply on Aug 11, 2003 6:01 AM by darranl

    EJB/C++

    roby

      Hy
      my problem is: how make integration for c++ applications into ejb? I have used JNI but this not work...But I ignore if I mistaked something or JBoss not support Jni in Enterprise beans.
      I have used RMI with JNI, this work but this is too tiered...
      I use JBoss 3.2.1 with J2EEsdk 1.4.1_02.
      Anyone help me for find the best solution? It's important!!!
      Thanks
      Roby

        • 1. Re: EJB/C++
          darranl

          Which direction are you trying to achieve the integration? Are you trying to invoke methods on an enterprise bean from a C++ application, are you trying to run code written in C++ in your bean or are you trying to connect to an existing C++ application from your bean?

          If you are trying to invoke methods on an enterprise bean from a C++ application I would look at web services and CORBA.

          If you are trying to connect to an existing C++ application I would look at the JCA architecture where you should be able to use JNI.

          • 2. Re: EJB/C++
            roby

            Thanks for your immediate response!
            I'm trying to run code written in C++ by an enterprise bean.
            I had thinking at Java Connector Architecture but I do not know from where to begin... The documentation talk exclusively for ERP or similar. How create the resource adapter for my c++ application?
            I am too confused...
            I hope you can help me to clarify my ideas!
            Roby

            • 3. Re: EJB/C++
              darranl

              Do you have access to the 'JBoss Administration and DevelopmentJBoss Administration and Development' guide? Unfortunately it needs to be paid for so I can't post a copy of it here.

              There is a section that discusses JCA in JBoss and there is an example for using JCA to access the filesystem, that might put things into perspective better.

              The specification from Sun does discuss everything in terms of accessing an ERP but wherever their code would be making remote network calls your code would be making native calls to your C++ code.