470,833 Members | 1,405 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

C++ code in a webservice.

I have an application, which needs to be rewritten into a webservice.

The application is in C++, and my background is writing stuff for IIS
in C++ and microsoft's javascript, but my intended customers are not
going to pay for IIS, and many of them would not know how to manage
IIS, though it is a lot easier than managing apache.

So I guess I should write the logon and user interface in JSP under
Tomcat/Jakarta, (which I have never used before) but I need to
interface this to the C++ code which manages the business objects,
much of the database work, and does the heavy bit bashing.

Trouble is, real Java, unlike Microsoft's Java, does not play well
with others.

I could perhaps make the C++ code a service, that accepts XML
requests, and makes XML replies, and have the java figure out the XML,
and I could also have them communicate in part through the database.

What would be the best way to mix java code and C code in a web
service?

Using mod_jk2, one can have some web pages served up by Java, and some
web pages served up by whatever one pleases, but trouble is what I
want is to have some web pages served up partly by java and partly by
C++

I notice no one ever writes a web service in C++, as an apache module,
though some people, myself among them, have written web services
largely as IIS Isapi modules. Why this non use of C++?

Or I could perhaps write the web service in Perl, using mod_perl,
which does play well with C++
Jul 17 '05 #1
1 2248
JNI (Java Native Interface) is standard part of Java to talk with C/C++.
It works and you just need to writwe a wrapper.

Thomas

"James A. Donald" <ja****@echeque.com> wrote in message
news:96**************************@posting.google.c om...
I have an application, which needs to be rewritten into a webservice.

The application is in C++, and my background is writing stuff for IIS
in C++ and microsoft's javascript, but my intended customers are not
going to pay for IIS, and many of them would not know how to manage
IIS, though it is a lot easier than managing apache.

So I guess I should write the logon and user interface in JSP under
Tomcat/Jakarta, (which I have never used before) but I need to
interface this to the C++ code which manages the business objects,
much of the database work, and does the heavy bit bashing.

Trouble is, real Java, unlike Microsoft's Java, does not play well
with others.

I could perhaps make the C++ code a service, that accepts XML
requests, and makes XML replies, and have the java figure out the XML,
and I could also have them communicate in part through the database.

What would be the best way to mix java code and C code in a web
service?

Using mod_jk2, one can have some web pages served up by Java, and some
web pages served up by whatever one pleases, but trouble is what I
want is to have some web pages served up partly by java and partly by
C++

I notice no one ever writes a web service in C++, as an apache module,
though some people, myself among them, have written web services
largely as IIS Isapi modules. Why this non use of C++?

Or I could perhaps write the web service in Perl, using mod_perl,
which does play well with C++

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by nano2k | last post: by
2 posts views Thread by Robert Iver | last post: by
9 posts views Thread by Jens Jensen | last post: by
4 posts views Thread by =?Utf-8?B?QmlsbEF0V29yaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.