Home » Tag Archives: Spring (page 43)

Tag Archives: Spring

Spring Integration – Session 2 – More Hello Worlds

spring-interview-questions-answers

This is a follow up to Spring Integration Session 1 The first session was a simple Hello World application using Spring Integration. I want to take it a little further by considering a few more scenarios around it. So the first change to the Hello World application is to add in a Gateway component. To quickly revisit the earlier test ...

Read More »

Email filtering using Aspect and Spring Profile

spring-interview-questions-answers

During web application development, often the need for sending emails arise. However, sometimes the database is populated by data from production and there is a risk of sending emails to real customers during email test execution. This post will explain how to avoid it without explicitly write code in the send email function. We would use 2 techniques: Spring Profiles ...

Read More »

Integrating Spring, Velocity and Tiles

apache-logo

I like Tiles and I heard a lot about Velocity. They seem to serve different purpose and reportedly are easily married together, so I decided to give it a shot and use them both in Spring web app. The integration actually took many hours and was a real rollercoaster during which I learned a lot about all three technologies. Hopefully ...

Read More »

Java EE 6 VS Spring 3 : Java EE has killed Spring? No way!

spring-interview-questions-answers

Introduction Few days ago, I was listening to the epsiode 85 of the Java Spotlight Podcast. In this epsiode, Bert Ertman and Paul Bakker were talking about migrating from Spring to Java EE. Basically, in their introduction they were saying that, nowaday, there is no point choosing Spring over Java EE. We can read in their article : It took ...

Read More »

JUnit, Logback, Maven with Spring 3

logback-logo

In this series we have already learnt to set up a basic Spring MVC application and learnt how to handle forms in Spring MVC. Now it is time to take on some more involved topics. However, before we venture into deeper waters, let’s get some basics set up. Unit testing I am no TDD evangelist. There I said it. I ...

Read More »

Spring 3 Internationalization and Localization

spring-interview-questions-answers

I wanted to add internationalization and localization feature provided by spring 3 to one of my current project recently. I went through the spring documentation and then searched on internet to find some resources. But I could not find a resource which was able to satisfy my client requirement. Most of the tutorials are like hello world application which gives ...

Read More »

Getting Started with Spring Social – Part 2

spring-interview-questions-answers

A few weeks ago I wrote a post demonstrating what I thought was the simplest application you could write using Spring Social. This application read and displayed a Twitter user’s public data and was written as an introduction to Spring Social and the social coding arena. However, getting your application to display your user’s public data is only half the ...

Read More »

Reference to dynamic proxy in a proxied class

spring-interview-questions-answers

There was an interesting question in Stackoverflow about how a Spring Bean can get a reference to the proxy created by Spring to handle transactions, Spring AOP, Caching, Async flows etc. A reference to the proxy was required because if there is a call to itself by the proxied bean, this call would completely bypass the proxy. Consider an InventoryService ...

Read More »

Sorting Spring Data MongoDB collections using @OrderBy

mongodb-logo

This is already third post about tuning and enhancing Spring Data MongoDB capabilities. This time I found that I miss one JPA feature – @OrderBy annotation. @OrderBy specifies the ordering of the elements of a collection valued association at the point when the association is retrieved. In this article I will show how to implement sorting with @OrderBy annotation with ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close