Solved

Questions about mod_jk

Posted on 2010-09-01
3
668 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
3 Comments
 
LVL 10

Accepted Solution

by:
Hegemon earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I believe you have answered my question
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now