Tag Archives: Spring

Annotation Based Bean Wiring @Autowired in Spring framework

May 27, 2012

1 Comment

Since Spring 2.5, one of the most interesting ways of wiring beans in Spring has been to use annotations to automatically wire bean properties. Auto wiring with annotations isn’t much different than using the autowire attribute in XML. But it does allow for more fine-grained auto wiring, where you can selectively annotate certain properties for [...]

email

Caching in Spring

May 17, 2011

4 Comments

Introduction In this article, we will discuss about the Caching support provided by the Spring framework. This article assumes that the reader has a basic understanding on Spring framework. The first section of the article illustrates the various APIs provided by Spring such as Cache, Cache Manager and Composite Cache Manager. Plenty of code samples [...]

Testing Support in Spring Framework

August 30, 2010

0 Comments

Introduction Testing is a vital phase in any software application and software cannot be complete if it is not completely tested. Unit Testing allows individual software components to be tested completely whereas Integration Testing ensures that multiple components in a system works fine. In this article, we will see the support given by Spring framework [...]

Transaction Management in Spring Framework

August 28, 2010

12 Comments

Introduction Transaction management is critical in any form of applications that will interact with the database. The application has to ensure that the data is consistent and the integrity of the data is maintained. There are many popular data frameworks like JDBC, JPA, Hibernate etc.. and Spring Framework provides a seamless way of integrating with [...]

Spring and JMX Integration

August 25, 2010

0 Comments

Introduction In this article we will see how to integrate JMX with Spring. This article assumes that the reader has a basic understanding on Spring and JMX. We will initially explore a sample on JMX written without the support of Spring, then will learn the dis-advantages in using so. Later we will see how to [...]

How to send EMail using Spring Framework?

August 3, 2010

1 Comment

Introduction In this article, we will see how to use Spring’s capability for sending email. The first section of the article deals with sending plain text email content with the help of Spring’s Mail Sender and Mail message classes with the help of a sample application. The latter half of the article deals with sending [...]

Spring Framework Interview Questions

February 13, 2009

39 Comments

This article has 50 spring interview questions based on the most frequently asked in the spring framework interviews. We will be adding the more number of questions from readers request. If you are looking for any specific questions and doubts, please post your queries in the comments section of this article. We will update the [...]

Integrating Spring with JMS

December 16, 2008

8 Comments

Java Messaging Service opened the door for modeling the asynchronous mode of communication. It provides a common way of sending and receiving messages by having a middle man, also called as Message Broker or Message oriented Middleware. Now with the capability of an asynchronous framework like JMS being integrated with Spring, it can take all [...]

Accessing objects in JNDI using Spring

October 22, 2007

0 Comments

1) Introduction Spring provides support to access objects from the JNDI Repository. This article will begin with the JNDI concepts along with a sample JNDI Application. Then it will proceed with the various core supporting classes available in Spring for JNDI Integration. Following that, practical samples would be given to make things clear. The pre-requisite [...]

Spring and Groovy Integration

October 20, 2007

0 Comments

1) Introduction Spring makes it easier to provide integration support for scripting languages. The currently supported scripting languages are Groovy, JRuby and BeanShell. However, this article concentrates only on Spring’s support for the Groovy language. Plenty of code samples are given in each section for much clarity. The article assumes that the reader is comfortable [...]