Enterprise Java

Open Source Java Projects Move Closer Toward Consensus

When it comes to Java virtual machines, there has never been a shortage of proprietary and open-source options that developers have been employing to build a wide range of enterprise applications. However, the adoption of open-source Java platforms has not been as widespread as many providers of these platforms have hoped, mainly because of fragmentation within the Java community. To try and address that issue,...

Create Entity Manager in JPA Tutorial

The Entity Classes It is easy to transform a POJO into an entity class via annotation. In fact, a single annotation, @Entity, is enough to designate any POJO as an entity class. For example, examine a regular class such as follows: public class Book {   private int id;   private String title; private String publisher; public Book() {} public Book(int...

Understanding Java Support for Persistence with JPA

Enterprise applications often deal with operations such as the collecting, processing, transforming, and reporting of a large amount of data. These data are typically stored in a database server in a particular location and retrieved on demand. The application is responsible for processing the data from the database and finally present them for client consumption. But, the intricacies involved in mitigating the data exchange...

Using Module Dependencies, Part 2

Module dependency refers to one module being dependent on or requiring another module. Module dependencies were introduced in the Declaring Dependency on Other Modules section in the article "Developing a Module with Java 9 in Eclipse IDE, Part 1." In the first of two articles, "Using Module Dependencies, Part 1," we created two Java projects for two modules, a main module and a dependency...

Using Module Dependencies, Part 1

A module could depend on other modules. If a module depends on another module, it is said to have a dependency on the other module. The Declaring Dependency on Other Modules section in the tutorial "Developing a Module with Java 9 in Eclipse IDE, Part 1" introduces module dependency. In a subsequent tutorial, "Developing a Module with Java 9 in Eclipse IDE, Part 2,"...

Using a Java 9 Module as a JAR File

The Java Platform Module System (JSR 376) support is available in Java 9. In two earlier tutorials, we introduced using Java modules in "Developing a Module with Java 9 in Eclipse IDE, Part 1" and "Developing a Module with Java 9 in Eclipse IDE, Part 2." In the 2nd article, we created and used a module as a directory structure. For portability, a module...

What Is Spring Security?

Spring Security is an important feature that often goes well with the Spring Web MVC framework. This article provides a quick overview of it and shows how it applies with the overall framework. Also, this article uses code snippets and examples to establish the viewpoint. An Overview Web applications are vulnerable to security threats because they are exposed to the open world of the Internet. Access...

Developing a Module with Java 9 in Eclipse IDE, Part 1

Project Jigsaw was developed to modularize the JDK and is implemented with JSR 376: JavaTM Platform Module System in Java 9. The main objectives of Project Jigsaw were as follows: Make it easier to construct and maintain Java libraries and large applications for Java SE and Java EE platforms. Improve application performance by enabling scaling down of Java SE platform and JDK. The JSR 376 specification defines...

Secure Your Web Apps Using the Servlet API

Prior to Java Enterprise Edition (Java EE) 7, there were only a couple of ways to secure your servlets. These included HTTP Basic Authentication and oAuth. In either case, a callback mechanism was employed to prompt the user for his or her credentials. If the credentials—defined in the web.xml file—were accepted, the user would be "authenticated." On the server, his or her access rights...

Learn the Basics of Java Logging

Java incorporated a logging API library as a part of its framework from JDK 1.4. Today, this is a built-in support from Java. However, this library is customizable and extensible in the sense that we can use one or more alternate logging solutions provided by third party libraries. Although these third-party solutions have a different approach to create log data, they ultimately share the...

Latest Articles