Solved

Questions about mod_jk

Posted on 2010-09-01
3
670 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
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eror when calling procedure in java adf 4 67
websphere 1 87
PHP Error Settings 12 78
Problem to go to page 12 82
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

24 Experts available now in Live!

Get 1:1 Help Now