Nunca havia visto necessidade parecida com esta, porém achei interessante … e fiquei curioso.
Após esta consulta ao oráculo (conhecido também por Google), cheguei a dois links interessantes que podem te ajudar.
Primeiro, “link-forum” interessante:
http://forum.java.sun.com/thread.jspa?threadID=541654&messageID=2626345
Aqui tem uma resposta interessante que, basicamente resumi o tópico (mas não deixe de ver todos os posts!):
1) If you want to use CORBA (it’s not difficult) try OmniORB (omniorb.sourceforge.net). It deserves a tutorial like the Orbacus tutorial that was posted in a link above.
- You can try Web Services (the cure for all - for instance, it promises to make Java and .NET happy together…). You can define your EJB as an Web Service endpoint and your C++ app as the other Web service endpoint.
Overhead: high (really high - but it puts your EJB design to a heavy proof).
Complexity: medium to low.
Maintainability: promises to be high (everyone seems to know something about Web Services - just drive a job interview, or go to some Java or .NET conference…).
Interoperability: high.
Flexibility: high.
Portability: you need to find a portable (and preferably open-source) Web Services toolkit. Just using the Web Services toolkit from Microsoft will tie you eternally to Microsoft in the C++ app (but if you’ve written it using MFC or ATL you’re just married to Microsoft at all…).
Segundo “link-artigo” interessante. http://jovial.com/javaAndCpp/java_and_cpp.html
Porém após uma passada de olho rápida, vi que era coisa antiga, no final está falando do que promete o jdk 1.1 …
recomendo não implementar nada nos “moldes” deste artigo, mas acredito que deve ter conceitos interessantes no minimo.
Qualquer coisa, visitando a consulta acima tem muito mais.
flw e sucesso.
ps: nunca trabalhei com c++ e o conheço pouco por sinal, por isso não posso te ajudar mais que isso. 8)
humilde opinião: Acredito que a melhor maneira de fazer esta integração é através de webservices, se a
situação do projeto permitir.
Roger Leite