Solved

Questions about mod_jk

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat7  URL keeps resolving to https instead of HTTP 4 60
Multi-threading in Tomcat 4 145
htaccess file errors for 301 Redirect 4 80
Change local server setting in php 6 87
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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