Spring 4 Caching Annotations Tutorial

Wondering how to use Caching in your Spring App? Jump right in. This post goes over the caching in detail, explaining commonly used Spring Caching annotationswith examples including @Cacheable, @CachePut, @CacheEvict, @Caching, @CacheConfig & @EnableCaching. A full code example is present at the end of the chapter showing these annotations in action. Post Spring 4…

Continue reading

Spring 4 Cache Tutorial with EhCache

Caching is crucial for today’s high performance hungry applications. Adding Caching in your Spring based application is rather trivial. There are many caching solutions available in market today namely EhCahe, Guava Cache, Caffeine Cache, OScache, JBoss Cache,etc. Spring provides seemless integration with them using minimal configuration. Post Spring 4 Caching Annotations Tutorial contains detailed example…

Continue reading

Spring 4 Email using Velocity,Freemarker Template library

Spring provides template libraries which can be used to prepare email templates. Although we can inject the html directly into our email-message, as we saw in previous tutorial, it’s better to keep business logic apart from presentation. Email templates are also the preferred way in Enterprise applications mail sending. Templates can be created separately from…

Continue reading

Spring 4 Email With Attachment Tutorial

Spring provides org.springframework.mail.javamail.MimeMessageHelper class which act as a Helper class for populating a javax.mail.internet.MimeMessage. It offers support for HTML text content, inline elements such as images, and typical mail attachments. In other words, it helps preparing a Multi-part MimeMessage’s. Other interesting posts you may like Secure Spring REST API using OAuth2 AngularJS+Spring Security using Basic…

Continue reading

Spring 4 Email Integration Tutorial

Spring provides first-class support for sending Emails. Spring comes with utility libraries which abstracts away the complexities of the underlying mailing system, provides super-simple API to use in your application to send emails. Other interesting posts you may like Secure Spring REST API using OAuth2 AngularJS+Spring Security using Basic Authentication Secure Spring REST API using…

Continue reading

Spring 4+JMS+ActiveMQ example with @JmsListener & @EnableJms

In the previous post over Spring with JMS, we have seen how applications can communicate using JMS, leveraging Spring’s support for JMS. This post goes a step further, and shows an alternative to javax.jms.MessageListener which allows us to create MessageListeners using plain POJO’s, thanks to Spring’s very own @JmsListener, used in combination with JmsListenerConnectionFactory and…

Continue reading

Spring 4+JMS+ActiveMQ Example with Annotations

Java Messaging Service (JMS) is all about applications communication using standard based messaging. With JMS, applications communicates with each other by sending and receiving messages. Spring provides first-class support for application integration using JMS. In this tutorial series, we will explore various ways Spring helps us simplify the JMS integration by abstracting all the complexities…

Continue reading

Spring 4 + Quartz Scheduler Integration Example

In this post we will see how to schedule Jobs using Quartz Scheduler with Spring. Spring provides couple of classes that simplify the usage of Quartz within Spring-based applications. Other interesting posts you may like Secure Spring REST API using OAuth2 AngularJS+Spring Security using Basic Authentication Secure Spring REST API using Basic Authentication Spring 4…

Continue reading

Spring Job Scheduling with @Scheduled & @EnableScheduling Annotations

In this post we will how to Schedule a Job in Spring using Spring @Scheduled and @EnableScheduling Annotations based Configuration. Other interesting posts you may like Secure Spring REST API using OAuth2 AngularJS+Spring Security using Basic Authentication Secure Spring REST API using Basic Authentication Spring 4 Caching Annotations Tutorial Spring 4 Cache Tutorial with EhCache…

Continue reading

Spring Job Scheduling using TaskScheduler (XML Config)

In this post we will see how to Schedule a job in Spring using Spring Task Scheduler with XML configuration. Annotation based configuration is explained in Annotation based scheduling configuration post. Other interesting posts you may like Secure Spring REST API using OAuth2 AngularJS+Spring Security using Basic Authentication Secure Spring REST API using Basic Authentication…

Continue reading