?
Solved

Questions about mod_jk

Posted on 2010-09-01
3
Medium Priority
?
680 Views
Last Modified: 2013-12-02
I have seen a jboss implementation where they use mod_jk module running with apache on the same host, when I check  workers.properties there are no other hosts listed  other than the host itself.

What's wrong with the default jboss webserver?  I can clearly see that there is no configuration of load balancing here so why would they need to use apache + mod_jk

Thanks
0
Comment
Question by:atigris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
Hegemon earned 2000 total points
ID: 33584170
Nothing wrong but (some) of the advantages of fronting JBoss with Apache:

1. You hide your app server from the outside world.
2. Tomcat is not good at serving static resources, while Apache is. You will probably want all the dynamic content to be served by JBoss/Tomcat but offload/cache static resource to Apache.
3. If you have more than JBoss, the Apache front end can act as load balancer, marshalling the requests among servers while honouring existing sessions (so called "sticky sessions").
4. While you do maintenance on your JBoss, you can still inform the users of this because the Apache server is not affected.
5. Apache acts as SSL terminator, offloading the work of decrypting the data from JBoss server CPU.
6. The communication protocol between Apache and JBoss can be jnp,  arguably more efficient than http.

Most of the above is useful only if Apache and JBoss are on different servers, the JBoss one being fully on the Intranet.
0
 
LVL 9

Expert Comment

by:fcontrepois
ID: 33584764
A J2EE server is an application provider while apache is a content provider.

So for multi-app stuff apache is simpler to manage (ssl, AAA, compression ...)  while application specific configurations are better done on the J2EE container.

Example
On J2EE every app is responsable for lot's it's security and access configuration while with an apache frontend you can manage those based on a directory/url level (simpler)
0
 
LVL 2

Author Closing Comment

by:atigris
ID: 33584777
I believe you have answered my question
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question