Re: Between C++ and web server
- From: Carey Carlan <gulfjoe@xxxxxxxxxxx>
- Date: Tue, 20 Feb 2007 23:25:33 GMT
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.
.
- Follow-Ups:
- Re: Between C++ and web server
- From: Lew
- Re: Between C++ and web server
- References:
- Between C++ and web server
- From: Carey Carlan
- Re: Between C++ and web server
- From: Mark Rafn
- Between C++ and web server
- Prev by Date: Re: Between C++ and web server
- Next by Date: Re: Between C++ and web server
- Previous by thread: Re: Between C++ and web server
- Next by thread: Re: Between C++ and web server
- Index(es):
Relevant Pages
|
|