Spring Autowiring by Name
In Spring, “Autowiring by Name” means, if the name of a bean is same as the name of other bean property, auto wire it. For example, if a “customer” bean…
Spring Auto-Wiring Beans
In Spring framework, you can wire beans automatically with auto-wiring feature. To enable it, just define the “autowire” attribute in . In Spring, 5 Auto-wiring modes are supported: no –…
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
I am working on learning Java, Spring and Eclipse. I am working through the tutorial Spring – How to do dependency injection in your session listener now and trying to…
A simple HttpSessionListener example – active sessions counter
Here’s a simple “HttpSessionListener” example to keep track the total number of active sessions in a web application. If you want to keep monitor your session’s create and remove behavior,…
Spring – How to do dependency injection in your session listener
Spring comes with a “ContextLoaderListener” listener to enable Spring dependency injection into session listener. In this tutorial, it revises this HttpSessionListener example by adding a Spring dependency injection a bean…
RESTEasy + Spring integration example
Here we show you two general ways to inject Spring bean into JBoss RESTEasy, below solutions should works on most of the web frameworks and JAX-RS implementations also. Method 1…
RESTEasy CRUD Example Tutorial
In this tutorial, we will learn how to create a JAX-RS CRUD example with RESTEasy. The Create, Read, Update, and Delete (CRUD) are the four basic functions of persistent storage.
Overview of the core JAX-RS concepts, important annotations
This tutorial presents an overview of the core JAX-RS concepts, important annotations. JAX-RS is Java API for RESTful Web Services (JAX-RS) is a Java programming language API spec that provides…
How to Create a Web Project Using Maven in Eclipse
In a previous article, we have discussed how to create a simple maven project in eclipse. In this article, we will show you how to create a web project or…
Create a Simple Maven Web Application using Command Line
In this tutorial, we create a simple web application with the Maven Archetype plugin. We’ll run this web application in a Servlet container named jetty or tomcat. Note that we…