Message to JMS topic from C++

How i can i message to a JMS Topic in an application server from C/C++ , is it possible ?,what sort of effort needed to implement this .... I would like to know about the 3rd party products which can do this , looking forward for positive reply Renjith
[295 byte] By [renjithkva] at [2007-9-19]
# 1
Well, one choice is to use JNI from the C++ program and just use the normal Java JMS API's. Another alternative is to use a JMS provider that has a C/C++ interface as well, something like IBM MQSeries.
cmccorveya at 2007-7-8 > top of java,Core,Core APIs...
# 2

If you go the JNI route, I would recommend using a tool like JNI Assist as it takes a lot of the labor out of writing and managing JNI code.

Going the JNI route, in order to get data from JMS delivered to your C++ application would involve embedding the JVM into your C++ applicatoin - the JNI provides for this. You could then write some Java and have your C++ application run that which would be the JMS subscriber code which would then pass it, again via JNI, to some method whose C++ implementation performs a callback to whatever you need to process the message. That is one way of doing it. In any event, you would be stuck with either directly accessing the JMS data via the JNI or performing some conversion on it before handing it off to your real C++ handler... again, a multitude of way to do this.

MOM products like MQSeries are, as cmccorvey pointed out, is another way to do this. In the long run, it would probably be much easier. There are also open source MOM products that will do this, but, I cannot remember any off hand.

cpolizzia at 2007-7-8 > top of java,Core,Core APIs...
# 3

>

> How i can i message to a JMS Topic in an application

> server from C/C++ , is it possible ?,

> what sort of effort needed to implement this ....

> I would like to know about the 3rd party products

> which can do this ,

> looking forward for positive reply

>

> Renjith

I'm positive you can do it - there are JMS providers who claim to have C++ clients. The only one I can think of is SonicMQ, but there are bound to be others.Check out google.

SteveW2a at 2007-7-8 > top of java,Core,Core APIs...
# 4
MQSeries, SonicMQ and Talarian are JMS providers, all of whom have interoperability with clients written in languages other than Java (and including Java).
cpolizzia at 2007-7-8 > top of java,Core,Core APIs...