Re: Between C++ and web server



dagon@xxxxxxxxx (Mark Rafn) wrote in
news:2u4sa4-vm5.ln1@xxxxxxxxxxxxxxx:

Carey Carlan <gulfjoe@xxxxxxxxxxx> wrote:
Can the bright minds here point me to the java tools best suited to
interfacing a C++ library with the widest range of web servers?

A whole lot depends on exactly what you're doing. If you've got a
bunch of C++ code that works, there may be no reason to bring Java
into it at all - just use the code you have.

What I'm doing is porting a desktop application to the web. Many of our
customers already have websites and working this application into their
existing web server is important. Others currently run offline and for
those I'll build a simple localhost interface to link their web browser
almost directly to the back end.

Fundamental question from a Java newbie. I'm about to start a web app
with the business logic contained in a C++ DLL (could be a COM object
if necessary). It must be compiled to protect the intellectual
property within.

You're aware that this is not actual security, right? Java's a bit
easier to decompile than C++, but both are possible.

It keeps the honest people out. More importantly, I'm more familiar with
C and C++ and can write faster using those tools.

Do web servers have a common, standard java interface? Do all web
servers except IE share an interface?

No. Every web server has a different interface. One common way to
handle this is to run the java servlets in Tomcat, and use the Jakarta
Connector to interface that with the frontend webserver (there are a
number of different supported ones). See
http://tomcat.apache.org/connectors-doc/

That's good information, thank you.

Is Java the best interface for this application?

Probably not. If you're doing all the work in C++, I'd recommend
writing the adaptors to each webserver you want to support in C++.
IMO, obfuscation is a poor reason to prefer a language, but once
you've chosen, dance with who brung ya. Supporting pieces in two
languages is going to be harder, and you should only do it if there
are strong reasons. Such reasons exist, but you haven't mentioned any
of them so they may not apply to you. --
Mark Rafn dagon@xxxxxxxxx <http://www.dagon.net/>

I hoped to separate the business logic from the web server interface. I
was under the impression that web servers "like" java better than generic
compiled libraries. If the interface is that variant then perhaps I
could just build the various interfaces into my web service.
.



Relevant Pages

  • Re: lighting---hacked!
    ... > interface on your private network. ... web server and the private network. ... connections initiated *from* the LAN through the interior router onto ... the inside interface of the bastion hosts. ...
    (comp.os.linux.security)
  • Re: lighting---hacked!
    ... > interface on your private network. ... web server and the private network. ... connections initiated *from* the LAN through the interior router onto ... the inside interface of the bastion hosts. ...
    (comp.os.linux.security)
  • Re: can you put a strong name assembly in a role?
    ... > virtual exact copy of the touch panel interface and control it as if you ... The web server on the device ... Might it be possible to use your network to limit the callers rather than ...
    (microsoft.public.dotnet.security)
  • Re: middle tier recommendations
    ... All my apps are asp.net. ... How can I switch from IIS5 Compatibility mode to ... > That depends on the amount of use that interface will get. ... > is scalable, you can put your app, with DLLs, on any web server without ...
    (microsoft.public.dotnet.framework)
  • Re: Need help setting up remote desktop.
    ... if your Web server is registered with the WINS server as ... Is there any particular reason you want to use the web based method? ... those folders, the way I can with the people who are on the home network ... however, as of this writing, I have not finished reading the instructions ...
    (microsoft.public.windowsxp.network_web)