Java & Web

G

Guest

Hi !

For the last few year, everything I CGI'ed was writen in Perl. Also,
everything, what was writen in Java, was mostly server-like standalone
application or gui. Because I am mostly building libraries in Java,
I want to use it also as a Web application programming language.

I hear all the time about application servers, frameworks, Tomcat etc..

Can someone give me some advice, what is currently in use (so I wouldnt
stuck with some old technology on a start). I have read today about
Strut Shale. I use apache for a Web server.

How things in Java works, when they're put as a web content. How apache
and Tomcat cooperate ?

Any advice would be apreciated.
 
S

Steve Sobol

How things in Java works, when they're put as a web content. How apache
and Tomcat cooperate ?

Well, you can run Tomcat on some nonstandard port and use mod_jk to pass
requests on ports 80 and/or 443 to Tomcat from Apache. Many people do this.
I imagine one of the big benefits is not having to run Tomcat as root in
this case.

Or you can run a standalone server (Tomcat, BEA, whatever; I use Jetty) and
have it answer on 80 and/or 443. This is the way I have my JSP/Servlet sites
set up.
 
S

Steve Sobol

Steve said:
Well, you can run Tomcat on some nonstandard port and use mod_jk to pass
requests on ports 80 and/or 443 to Tomcat from Apache. Many people do
this. I imagine one of the big benefits is not having to run Tomcat as
root in this case.

Or you can run a standalone server (Tomcat, BEA, whatever; I use Jetty)
and have it answer on 80 and/or 443. This is the way I have my
JSP/Servlet sites set up.

I should point out that you can use mod_jk with other servlet containers
too, not just Tomcat.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top