Posted in Server

Changing Context Path Of Web Application In Tomcat Server

Introduction Here I am going to show you how to change context path of web application in Tomcat server. So, basically web applications are deployed into Tomcat server and meaningful, memorable context paths are assigned for web applications. Even if you do not want to set any context path for an application, you can do so. For every web application…

Continue Reading... Changing Context Path Of Web Application In Tomcat Server
Posted in Server

How To Create Users In Tomcat Server

Introduction Here I am going to show you how to create users in Tomcat server to manage applications, server status, etc. When you deploy application into Tomcat server, generally you put the war archive files under webapps folder of the Tomcat server. You can easily access the application once it is successfully deployed through its context path of the application….

Continue Reading... How To Create Users In Tomcat Server
Posted in htaccess MySQL PHP Server

How To Configure PHP, MySQL, Apache HTTP Server

In this tutorial I am going to show you how to configure PHP, MySQL, Apache HTTP Server for developing PHP based web applications. You may create PHP based standalone applications or web based applications and you want to run them in development environment before deploying into the production or live environment. I will also show you how to enable mod_rewrite…

Continue Reading... How To Configure PHP, MySQL, Apache HTTP Server
Posted in Security Server

Working Principle of Content Security Policy (CSP) in Web Applications

Introduction Here in this tutorial I am going to discuss about working principle of content security policy (CSP) in web applications. What if you want to minimize attacks on your website, what if you want to restrict the content to be displayed on your web site for some security reasons, what if you want to prevent Cross Site Scripting (XSS)…

Continue Reading... Working Principle of Content Security Policy (CSP) in Web Applications
Posted in Server

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…

Continue Reading... How to configure mod_jk with Apache http and Tomcat servers
Posted in Java Server

How to create HTTP Server in Java to serve Static Resources

HTTP Server Here I will show you how to create HTTP server in Java to serve static resources using sun’s HttpServer. An HTTP Server is bound to an IP address and port number and listens for incoming requests and returns responses to clients. Simple http server is flexible to be added into complex projects for rendering HTML elements or serving as…

Continue Reading... How to create HTTP Server in Java to serve Static Resources
Posted in Server Spring Boot

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…

Continue Reading... Tomcat load balancing with Apache using mod proxy
Posted in Junit Server

Using Jetty Server with Junit test

In this post I will show you how to use Jetty server with Junit test case and how to deploy web application using Java program in Junit test. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I will tell you here how to create a maven project in Eclipse.

Continue Reading... Using Jetty Server with Junit test
Posted in Server Spring MVC

Deploy Web Application in Jetty Container in Embedded Mode

Introduction This tutorial is all about to deploy a web application in embedded Jetty web container. Therefore, you do not need to deploy it manually into the external web server. Sometimes, you need to deploy the application in embedded mode, because during unit testing or integration testing you need to deploy the web application manually every time before you start…

Continue Reading... Deploy Web Application in Jetty Container in Embedded Mode
Posted in Java JMS Server

JMS Client using JBoss 7 – Publish/Subscribe Messaging

This example will take you through step by step on practical implementation how you can configure a JMS Client using JBoss Application Server 7.1.1. I won’t discuss theoretical part here but if you need to know JMS related various keywords then you can go through the tutorial at https://roytuts.com/configure-jms-client-using-glassfish-3/ Publish/Subscribe Messaging System In a publish/subscribe (pub/sub) messaging system, clients address…

Continue Reading... JMS Client using JBoss 7 – Publish/Subscribe Messaging