Pages

Saturday, June 22, 2013

Velocity Template with Spring

Below example demonstrates how Velocity Template can be integrated with Spring for sending emails in a given template or write the content to an XML file.
Spring Configuration:

Friday, May 3, 2013

XML to Java Conversion with Smooks

Here is a simple example of XML to Java Conversion with Smooks.
Enjoy!!


input-message.xml


Wednesday, May 1, 2013

Login page for ActiveMQ using Tomcat and LDAP

ActiveMQ doesnot come with login page.But for security issues some users might want to have login page to access. So for this I have tried to create a simple login page for ActiveMQ using Tomcat and LDAP. You can use Database or Tomcat instead of LDAP.

Sunday, March 31, 2013

Spring Data Support

Introduction to Spring Data and Setting Up  
This tutorial serves as an introduction to Spring Data support. We'll also install a lightweight database Apache Derby that we'll use in subsequent tutorials. We'll learn how to start Derby in Network server mode, and how to connect and run SQL queries using the ij client tool.

Tuesday, January 31, 2012

Spring AOP

Introduction to AOP  
This video provides a brief introduction to Aspect Oriented Programming concepts.
Setting Up AOP Dependencies  
In this tutorial, we'll add the additional dependencies required for Spring AOP and we'll configure our project's class path with these dependencies.

Read from JSON file and persist into MySQL

Here is a simple example where we are reading contents of a JSON file and inserting into MySQL database. The code is dynamic so it can handle any number of columns no matter what the column name is. All you have to do is match the database column names with JSON content.