Java articles

Messaging gateways

Previously we sent Spring Integration messages through message channels called input channels. However, it's not the single solution for it.

Continue Reading →

Priority channel and message store

From previous articles we could deduce that Spring Integration was a pretty basic enterprise integration framework. However, in this article we'll discover some of its features proving that it hides a lot of advanced features: messages prioritization and messages persistence.

Continue Reading →

Channel adapters

In previous articles we discovered some alternative ways to send messages. Another alternative feature to do that are channel adapters, covered here.

Continue Reading →

Rendezvous channel and message channel interceptors

Until now we're working with non-blocking message channels. However, Spring Integration provides an implementation for blocking message channels too. In additionally, it defines also the hooks for message handling.

Continue Reading →

Queue channel

Until now we're working with channels able only to send the messages. This time we'll discover message channel which can both send and receive messages.

Continue Reading →

Publish-subscribe channels

We already know a little bit about message handlers and message channels. This time we'll discover specific message channel, called publish subscribe channel.

Continue Reading →

Barriers in Java concurrency

A barrier in the real world helps to separate two different concepts, for example two countries. In programming, it's a technique to achieve threads synchronization. Java implements its own version of barriers in java.util.concurrent package.

Continue Reading →

Google Guava: event bus

In two previous articles we discovered key concepts and concurrency features of Google Guava. Both of them simplify the programming. Another useful thing of this library is a message dispatching system called event bus.

Continue Reading →

Direct channel and service activator

As announced in the introduction to Spring Integration, we'll write a series of articles about features of this project. We'll begin here by explaining the ideas of direct channel and service activator.

Continue Reading →

Tests in Play Framework

Until now we were writing our store without tests, in the goal to quickly discover some of Play basic features. However, a code without tests is as a car without wheels. It will exist but will be driveless. The code without tests exists too, but it less evolutionary than the code well covered by the tests.

Continue Reading →

JPA implementation in Spring Data

In some of previous article we discovered how Hibernate and its JPA implementation work. We can use them as components for native-developed solutions. But we can also use them with Spring Framework.

Continue Reading →

Spring Security configuration

Through our last articles we could discover that Spring Security can be configured in two ways: the first one using standard Spring beans mechanism. The second one is specific for Spring Security because it uses its own XML schema definition (XSD). In this article we'll focus on the second method.

Continue Reading →

Handling of expired sessions in Spring Security

Session consistency is important part which is not overlooked by Spring Security. Thanks to special filter, SessionManagementFilter, the project allows to control better sessions.

Continue Reading →

CSRF protection in Spring Security

Spring Security project provides solutions for a lot of web dangers. One of them is CSRF.

Continue Reading →

Data repositories in Spring Data JPA

Thanks to JPA module of Spring Data project we can simplify database querying. In this article we'll focus on it.

Continue Reading →

Remember me in Spring Security

The article about basic security filter in Spring Security introduces us to particularity of handle remember-me authentication. This time, we'll focus on this aspect more in details.

Continue Reading →

Security filter chain in Spring Security

The first article from this category covers the subject of Spring Security ACL features. But we can still use Spring Security without the roles management. And to do it correctly, we should be familiar with a concept calling security chain.

Continue Reading →

Design patterns in Spring Framework - part 5

Through 4 previous articles, we saw that Spring adopts a big number of creational and structural design patterns. They're not so much behavioral ones and it's why we discover two of them in this article, the last one about design patterns used in Spring.

Continue Reading →

Design patterns in Spring Framework - part 4

This article is the 4th about design patterns used in Spring framework. It'll present new 3 patterns implemented in this framework.

Continue Reading →

View rendering in Spring Web MVC

Spring is compatible with a lot of templating engines as Velocity or Freemaker. It also supports the solutions based on native JSP technology. It's more than interesting to see how it handles these different solutions to generate the views.

Continue Reading →