cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating between C/C++ and J2EE services

Former Member
0 Kudos

Hi,

does anyone have any recommendations about communicating with J2EE services from a C/C++ environment?

Specifically, what I would like to do is communicate with the Connector Gateway Service (part of the Portal runtime) and then make calls to the JDBC or SAP connector, all from a C/C++ application. Is IIOP over Corba the best way to go?

I have experience with C/C++ and Java, but am new to J2EE.

Any input, including coding examples, is much appreciated.

Colm.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

just a link ot an IIOP tutorial (C++ client communicates with an EJB): http://help.sap.com/saphelp_nw04/helpdata/en/85/f75bec2aec4940947ce3256d7dd4de/frameset.htm

Might help you if you go this way!

Regards,

Ivo

Former Member
0 Kudos

Thanks for that link, it's very helpful. I have a specific, related question; has anyone had any experience with transferring a ResultSet (results of a JDBC/JCA query) from a J2EE service to something like a CORBA C++ client. Ideally, I would like to be able to pass the ResultSet contents to the client by value. I've found some interesting links on CORBA <-> JDBC (see below) and was wondering if anyone at SAP has come across this kind of scenario?

Interesting links:

Opinion:

http://archives.java.sun.com/cgi-bin/wa?A2=ind9807&L=idl-users&F=&S=&P=1243

Sybase solution:

http://www.rgagnon.com/pbdetails/pb-0167.html

Implement ResultSetServant, => distributed call to get each row, probably not very efficient:

http://www.echonyc.com/~sbarber/javacorba/corbajdbc/corbajdbc.html

This link describes a TYPE-SPECIFIC way to do it (no good for general case):

http://www.csee.umbc.edu/help/oracle8/java.815/a64683/corba3.htm

Answers (1)

Answers (1)

kohlerm
Employee
Employee
0 Kudos

Hi,

If you want to have if it efficient, Corba is the way to go.

Another option would be to use SOAP. Microsoft supports SOAP, and open source frameworks for SOAP are also available.

Regards,

Markus