Home » Enterprise Java

Enterprise Java

Spring Batch CommandLineJobRunner Example

This article is a tutorial about Spring Batch and running the jobs with CommandLineJobRunner. We will use Spring Boot to speed our development process. 1. Introduction Spring Batch is a lightweight, scale-able and comprehensive batch framework to handle data at massive scale. Spring Batch builds upon the spring framework to provide intuitive and easy configuration for executing batch applications. Spring ...

Read More »

Spring MVC CRUD using MongoDB Tutorial

Hello readers, in this tutorial we will create a simple Spring MVC application that uses a document-oriented NoSQL database for its database layer. For this tutorial, we’ll perform the basic Create, Read, Update, and Delete database operations for managing the list of users. Table Of Contents 1. Introduction 1.1 What is Spring framework? 1.2 What is MongoDB? 2. Spring MVC ...

Read More »

EJB Architecture Example

1. Introduction EJB stands for Enterprise Java Bean. An Enterprise Java Bean is in its basic form any POJO(Plain Old Java Object) that is registered with the container in which it is deployed. Enterprise Java Beans are deployed into an EJB container. The EJB container is governed by the EJB specification. At the time of writing this article, the latest version ...

Read More »

Spring JdbcBeanDefinitionReader Example

This article is about the Spring JdbcBeanDefinitionReader. When would you use this class? When you want to dynamically add externally defined bean definitions in Spring. The Spring JdbcBeanDefinitionReader is a bean definition reader that reads values from a database table and expects columns for bean name, property name and value as String. The formats for each are identical to the ...

Read More »

Spring Security Login Example

In this article we will learn how to use spring security to create a simple login page. You will need an IDE (I am using IDEA IntelliJ), JDK 1.8 or later, Maven 3.0+. 1. Introduction The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications – on any kind of deployment platform. A key element ...

Read More »

JBoss Drools Spreadsheet Example

This example illustrates JBoss Drools Spreadsheet Example. Before proceeding with this article, we assume readers have a basic knowledge about how a Java n-tier application works. We also assume readers have good understanding of JBoss Drools. For more information on JBoss Drools please refer the article JBoss Drools Best Practices. 1. Introduction As we already know, Drools is a Rule Engine ...

Read More »

Spring Integration FTP Gateway Example

1. Introduction Spring Integration provides gateways and adapters as a means to connect to external endpoints. In his blog, Josh Long explained the difference between adapters and gateways as: An adapter receives messages from an external messaging system (JMS, e-mail, SFTP, whatever) and “adapts” it to the messaging system (as a Spring Integration Message). Once a message comes in, via ...

Read More »

Spring Querydsl Tutorial

Spring Data JPA and Querydsl enable developers to write type-safe queries. In this tutorial, we will build a Spring boot JPA application to demonstrate how to achieve it. Table Of Contents 1. Introduction 2. Technologies Used 3. Spring Boot JPA Maven Project 3.1 Dependency 3.2 Entity Classes 3.3 Generated Meta Model Classes 3.4 JpaRepositories 3.5 Services 3.6 Daos 3.7 Demo ...

Read More »

Spring Batch JmsItemReader Example

This article is a tutorial about Spring Batch with JMSItemReader. We will use Spring Boot to speed our development process. 1. Introduction Spring Batch is a lightweight, scale-able and comprehensive batch framework to handle data at massive scale. Spring Batch builds upon the spring framework to provide intuitive and easy configuration for executing batch applications. Spring Batch provides reusable functions ...

Read More »

Spring Boot Security Example

Hi Spring Boot fans. Today, we will follow how Nick added Spring Boot Security to his web application. We will see how Nick protects his resources by adding Spring Boot Security. Spring Security provides a wide-range of security services services for Java EE-based enterprise software applications. The two main areas of application security that Spring Security targets are “authentication and ...

Read More »