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.
>
> 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.