Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

whats jk2 about?

Status
Not open for further replies.

developerinlondon

Programmer
Jan 11, 2003
196
GB
whats the use for having mod_jk2 in apache? What would be the difference between apache passing calls to tomcat and scripts within apache just redirecting to pages in the tomcat? Is there any good documentations on where mod_jk2 is useful?
 
There are many reasons for using the jk2 protocol.
It means that you can expose Apache to the web, and have it serve up your static content (ie javascript, html, images), while passing calls for JSP or servlets to Tomcat.

Apache is quicker than Tomcat at serving static content because it is written in C.

You would not want to expose Apache and Tomcat to the web and do redirects from Apache to Tomcat because this exposes two servers - which increases security problems. Also, arguably because jk2 is a slimmer protocol than http, it would be quicker to use jk2 rather than using redirects.

There are other pros/cons of using jk2 & Apache as a front end to Tomcat, just google or go to the jk2 home page (again, google it).

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top