Home » Enterprise Java

Enterprise Java

Spring Autowiring Tutorial

One of the main tenets of the Spring framework is Dependency Injection (DI). The framework implements DI by using @Autowired annotations. These annotations were introduced starting with Spring 2.5. By using this annotation, one can leave a lot of configuration overheads and leave the handling of injection of beans to Spring. Table Of Contents 1. Introduction 2. Setup Maven Project ...

Read More »

Spring Integration Chain Example

1. Introduction Spring Integration provides a way to group set of elements into one transaction and its referred as chaining. In this post we will look at MessageHandlerChain that is an implementation of MessageHandler and it can be configured as a single message endpoint while actually delegating to a chain of handlers like Filters,Transformers etc. Though the handler chain allows ...

Read More »

Test-Driven Development with SNMP4J

This article presents a simple example of test-driven development with SNMP4J. Unit testing goes hand in hand with TDD. Agile testing is designed to prevent bugs and relies primarily on unit tests. Comprehensive regression testing can be run several times in a day. A test suite prevents fixed bugs from coming back or finding side effects of changes. The source ...

Read More »

Jax-Ws vs Jax-Rpc: Comparison and Differences

In this article, we will compare the JAX-WS and JAX-RPC programming APIs with respect to the Java programming model. Note: This article is for academic purposes only. JAX-RPC is obsolete and its use is discouraged for any new Java development projects. 1. Introduction The Web Services Architecture evolved in part to address interoperability between disparate and heterogeneous systems. SOAP (Simple ...

Read More »

JSF JPA CRUD Tutorial

Hello, in this tutorial I would like to show the usage of JPA (Java Persistence API’s) in a simple jsf application and will demonstrate the following: Schools List Performing database operations using JPA framework Sending & retrieving data to & from a managed bean This example will show the implementation of basic CRUD (Create, Read, Update, Delete) operations and lets ...

Read More »

JSF Hibernate CRUD Example

Hello, in this tutorial I would like to show the usage of Hibernate framework in a simple jsf application and will demonstrate the following: Student form Performing database operations Sending & retrieving data to & from a managed bean This example will show how to develop a simple CRUD (Create, Read, Update, Delete) application and lets you manage student’s database ...

Read More »

JSF Hidden Input Example

Hello, in this tutorial I would like to show the usage of the jsf inputHidden value tag. The tag can be used to pass temporary data or information provided by the user that should be used again and will demonstrate the following: Form page having hidden field Sending & receiving data to & from a managed bean Displaying the result ...

Read More »

Jax-Ws LogicalHandler Example

In this example, we will show you how to implement a JAX-WS Logical Handler. 1. Introduction When you send a request to a web service, the SOAP message may require verification. The SOAP message response may also require verification. For these requirements, you can use a SOAP message handler to intercept the SOAP message for further processing. SOAP message handlers ...

Read More »

JSF Ajax Render Example

Hello, in this tutorial I would like to describe how to send AJAX request to the server, receive the response and update the page accordingly and will demonstrate the following: Ajax enabled input form Sending & receiving data to & from a managed bean Output page to display the result This example will show the implementation of ajax in jsf. ...

Read More »

Apache Camel Routing Tutorial

Table Of Contents 1. Introduction 2. What is Enterprise Integration Patterns 3. Basic concepts about Apache Camel 3.1. The Architecture of Apache Camel 3.2. What is CamelContext 3.3. What are Routes 3.3. What are Components 4. Technology Stack 5. Apache Camel Routing Examples 5.1. Dependencies 5.2. XML Request 5.3. Spring XML-Based Configuration 5.4. Java DSL-Based Configuration 6. Summary 7. References ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns