3 Replies Latest reply on Dec 19, 2001 6:52 PM by cjohan

    Accessing JMS from C++

    kwilliams

      I'm looking into a method for allowing a C++ program to start up an EJB to do some processing. I am sending 4 simple parameters (2 ints and 2 small strings).

      It looks like JMS may be the way to go, but I can't seem to find a way to send a message to JMS from C++ (on a unix box). Can someone point me in the right direction?

      Or if another method would be better (can I call the EJB directly through RMI-IIOP like a Corba object?) that would be good too.

      Thanks.

        • 1. Re: Accessing JMS from C++

          Thare is work for support of IIOP going on, but I do not know the status.

          Another way would be to use XmlBlaster, a Java MOM/XML server, which has great suppport for corba/c++/perl/phyton.

          I have done some integration work on it with regards to JBoss and its a very stable and nice plattform, good to have in ones toolkit.

          //Peter

          • 2. Re: Accessing JMS from C++
            nphelps

            If what you are doing is fairly simple and from Windows then Active JMS would work (active-jms.sourceforge.net). If you're not just on Windows and I would suggest looking into JMS Courier (http://www.codemesh.com/en/JMSCourier.html). Good luck!

            • 3. Re: Accessing JMS from C++
              cjohan

              Ideally, someone should write a C and C++ interface to the JMS functionality. Maybe something a little bit like the interface in Fiorano MQ. We want to keep it as simple as possible, though.

              We and our customers have existing apps written in C and C++ as well as Visual Basic (in the case of one of our customers). We don't want to complicate things by introducing IIOP or other messaging systems. We want to interface directly to JBossMQ.