[jboss-user] [EJB/JBoss] - Calling native C++ legacy program from Message Driven Bean

waikhom do-not-reply at jboss.com
Sun Jun 24 15:03:29 EDT 2007


Hi,

Could you please help me out on this problem:

I am having a C++ program which does mathematical calculation and whan to reuse it in my JEE application. I thought of using MDB and call this C++ code using JNI. Does JBoss support calling native programs using JNI? I heard that using JNI call from EJB is not supported by specification.

I also thought of keeping the C++ code as stand alone application by writing a C++ daemon program which will listen to message queue and process the request and send the response back to my J2EE env. This sounds interesting but since this is not in a container, there are many issues like fault tolerance and clustering of this C++ code in production env.

If I can direct call this C++ code using JNI.. I can deploy it on production with all the advantages of having JBoss server.

Please help me out on this issue.

Thanks,

Waikhom

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057200#4057200

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057200



More information about the jboss-user mailing list