Home » Enterprise Java » Page 60

Enterprise Java

Hadoop Kerberos Authentication Tutorial

In this tutorial we will see how to secure the Hadoop Cluster and implement authentication in the cluster. Kerberos is an authentication implementation which is a standard used to implement security in the Hadoop cluster.                   1. Introduction Kerberos is the standard and most widely used way of implementing the user authentication ...

Read More »

Hibernate Join Example

Join statements are used when one wants to fetch data from multiple tables of database. Hibernate provides support for join statements where one can write single query to fetch data from multiple tables easily. Hibernate is one of the few JPA (Java Persistence API) providers. Hibernate is extensively used for persistence layer of building an enterprise application. We will show ...

Read More »

Install Apache Tomcat on Mac os x Yosemite

OS X Yosemite (version 10.10) is the eleventh major release of macOS, Apple Inc.’s desktop and server operating system for Macintosh computers. Apache Tomcat is a web server and servlet container that is used to serve Java applications. A servlet is a Java technology-based Web component, managed by a container, that generates dynamic content.             ...

Read More »

How to Start Developing Layered Web Applications with Spring

Spring is a great framework to develop enterprise Java web applications. It really eases life of Java developers by providing tons of features. In this example, we will show you how to start developing layered web applications with Spring.                   Table Of Contents 1. Create a new Maven WebApp project 2. Add ...

Read More »

Apache Tomcat Load Balancing Tutorial

Load balancing improves the distribution of workloads across multiple Tomcat servers. Load balancing aims to optimize resource use, maximize throughput, minimize response time, and avoid overload of any single resource. Table Of Contents 1. The tools 2. Introduction 3. Prerequisites 4. Download Tomcat 5. Download Apache httpd server 6. Download mod_jk 7. Tomcat Installation 7.1 Uncompress Apache Tomcat 7.2 Install ...

Read More »

JDBC Servlet Example

In this example, we will see how to make use of JDBC from a servlet to access database and read data from table. We will use MySQL as the database and MySQL Workbench as the client for database to prepare the data. However this example does not cover installation of MySQL and MySQL Workbench. We will be using Eclipse as ...

Read More »

Using Selenium with Maven and Apache POI

In this example, we are going to see how can we fetch the data from Excel sheet using Apache POI and use those data to search on google.com using Selenium WebDriver. We will be also using Maven to configure dependencies for Selenium and Apache POI. 1. Introduction Selenium is a browser automation tool. It consists of Selenium-IDE, Selenium Web Driver and ...

Read More »

Apache Tomcat Kerberos Authentication Tutorial

Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography. A free implementation of this protocol is available from the Massachusetts Institute of Technology. Kerberos is available in many commercial products as well. 1. The tools Java JDK Apache Tomcat   2. Introduction Kerberos authentication is used to make Tomcat ...

Read More »

Java Servlet Context Listener Example

In this tutorial, I will be demonstrating a simple example of how to use ServletContextListener to make some global initializations and configurations. We will be using WildFly application server and Eclipse to demonstrate the examples in this post. None database is required to run this example. 1. Introduction ServletContext is a configuration object which is created when application server starts and ...

Read More »

Apache Tomcat Hardening Tutorial

Tomcat is secure enough for typical uses, there are no known security exploits or weaknesses. However, the Internet is a wild place. These are the best practices for hardening Tomcat. Table Of Contents 1. The tools 2. Introduction 3. Prerequisites 4. Run Tomcat as Unprivileged User 4.1 Unix/Linux 4.2 Windows 5. Restrict access to critical files 6. Use a Firewall ...

Read More »