Solved

Questions about mod_jk

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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