C++ code in a webservice.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James A. Donald

    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++
  • Thomas A. Li

    #2
    Re: C++ code in a webservice.

    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" <jamesd@echeque .com> wrote in message
    news:96dc81b9.0 308241524.133fa [email protected] gle.com...[color=blue]
    > 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++[/color]


    Comment

    Working...