Home » Enterprise Java » Page 23

Enterprise Java

Spring Boot Application Properties Example

In this example, we will demonstrate how to configure a Spring Boot application using the application.properties file. 1. Introduction Spring Boot is an application development solution that will automatically configure your Spring application for you, helping you get your project up and running as quickly as possible.  It will consider the dependencies in your project and will use an opinionated ...

Read More »

Spring Boot @CrossOrigin Annotation Example

Cross-origin resource sharing (CORS) is a standard protocol that defines the interaction between a browser and a server for safely handling cross-origin HTTP requests. Simply put, a cross-origin HTTP request is a request to a specific resource, which is located at a different origin, namely a domain, protocol and port, than the one of the client performing the request. For ...

Read More »

Spring Security Remember Me Example

Welcome readers, in this tutorial, we will explore the Remember Me login feature of the spring security module. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, ...

Read More »

Logback Custom Appender Example

This article discusses creating a custom Appender for logback, a logging framework for the Java application. 1. Introduction to Logback Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ~10x faster on some critical areasAutomatic Reloading of configuration ...

Read More »

Apache Camel Sample Application Example

1. Introduction What is Apache Camel? Even the Apache Camel site does not seem to have a succinct example of this. They do point to a Stack Overflow article which provides some insight. To me though Camel is all about mediation, enrichment and transformation.   It is a well defined API to implement common Enterprise Integration Patterns (EIP). The idea ...

Read More »

JBoss Wildfly Cluster Example

This is an article about JBoss Wildly Cluster. JBoss WildFly runtime manages the applications deployed on its server. It used to be called as JBoss application server. In this article, setup of WildFly Clustering is presented and discussed. 1.Introduction A JBoss WildFly instance can be deployed on the standalone server. The stand alone server is an independent process. Launch scripts ...

Read More »

Java Quartz Best Practices Example

1. Introduction In this post, we are going to demonstrate best practices for Quartz, a very popular open source job scheduling library that can be used in Java applications. Most of the best practices that we will see have been published by Quartz in this article. The main concept of Quartz is that a scheduler holds a list of jobs ...

Read More »

GWT Components Example

1. Introduction Google Web Toolkit (GWT) allows a developer to enjoy writing code in Java for the frontend but transpiles the code to JavaScript on the frontend so that what the browser sees is optimized JavaScript code.   One of the advantages of using GWT like any other web framework is that it creates the basic UI widgets that can ...

Read More »

Hibernate doReturningWork() method Example

In this tutorial, we will learn Hibernate 4 Returning Work interface and Session.doReturningWork() method for Jdbc. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ORM tool that provides the framework for mapping application domain objects to the relational database tables and vice versa. ...

Read More »

JAX-WS HTTPS Example

1. Introduction In this example, we will show how to configure HTTPS on a JAX-WS web service and client. Hypertext Transfer Protocol Secure (or HTTPS) is an enhanced version of the HTTP protocol.  It adds a layer of security to connections between a client (for example, a web browser or email client) and a server.  HTTPS uses encryption for protecting ...

Read More »