How to configure mod_jk with Apache http and Tomcat servers

Introduction We will see here how to configure mod_jk with Apache http and Tomcat servers. The Apache Tomcat connector allows to use the Apache httpd server as a front-end for Apache Tomcat applications. To run Tomcat and Apache together, Apache needs to load a “adapter” module, which uses a certain protocol, such as Apache JServ Protocol (AJP), to communicate with the Tomcat, via another TCP port (port 8009 is the default configuration in server.xml file under Tomcat server). When Apache server receives an HTTP request, it checks if the request…

Continue

Use Jetty instead of Tomcat in Spring Boot application

Introduction Spring Boot web starter uses Tomcat as the default embedded servlet container or Tomcat is the default embedded server. So you don’t need to add any separate dependency for this Tomcat server. The Tomcat server is shipped with the spring boot starter web dependency. Now let’s say your requirement is to not use the default server Tomcat but you would like to use Jetty. Therefore in this example you will see how to use Jetty instead of Tomcat in Spring Boot application. Configurations Generally you need to exclude the…

Continue

Tomcat load balancing with Apache using mod proxy

This tutorial will show you how to configure Tomcat Load Balancing with Apache webserver (http server) using Mod Proxy. I have listed here the following steps on how to configure Apache with Tomcat to configure Load Balancer using Mod Proxy. Having load-balanced is always recommended in production environment for better availability and performance of your application resources. Load balancing improves responsiveness and increases availability of applications. A load balancer sits between the client and the server farm accepting incoming network and application traffic and distributing the traffic across multiple backend…

Continue

Immediate attribute example in JSF

Introduction This tutorial will show you what is the purpose of using immeditae attribute in JSF. Although the request processing lifecycle processes the different phases in a consistent manner, the execution order of the phases can be altered for special cases. For example, you may want to add a Cancel button to a form. When clicked, it will skip all validation and simply navigate to another page without processing the values in a form. To alter the processing order of the request processing lifecycle, simply set the immediate attribute on…

Continue

Mule on Tomcat

In this post I will show you how it is possible to deploy Mule on a web container such as Tomcat because running Mule as a standalone service is often the more popular and recommended approach. Both standalone and web based mule applications have their benefits and drawbacks but which one to use is mainly dependent on the project requirements and use-cases. This post aims to guide you through using Mule API 3.5.1 onto Tomcat server in web based project in Eclipse. If you already have an idea on how…

Continue