PubSub Messaging with Spring Data Redis 1. Overview In this second article from the series exploring Spring Data Redis, we’ll have a look at the pub/sub message queues. In Redis, publishers are not programmed to send their messages to specific subscribers. Rather, published messages are characterized into channels, without knowledge… Continue Reading spring-data-redis-pub-sub

Guide to the Java TransferQueue 1. Overview In this article, we’ll be looking at the TransferQueue construct from the standard java.util.concurrent package. Simply put, this queue allows us to create programs according to the producer-consumer pattern, and coordinate messages passing from producers to consumers. The implementation is actually similar to… Continue Reading java-transfer-queue

Remote Code Execution with XStream 1. Overview In this tutorial, we’ll dissect a Remote Code Execution attack against the XStream XML serialization library. This exploit falls into the untrusted deserialization category of attacks. We’ll learn when XStream is vulnerable to this attack, how the attack works, and how to prevent… Continue Reading java-xstream-remote-code-execution

Http Message Converters with the Spring Framework 1. Overview This article describes how to Configure HttpMessageConverters in Spring. Simply put, we can use message converters to marshall and unmarshall Java Objects to and from JSON, XML, etc – over HTTP. Further reading: Spring MVC Content Negotiation A guide to configuring… Continue Reading spring-httpmessageconverter-rest