Example usage for org.springframework.amqp.utils SerializationUtils deserialize

List of usage examples for org.springframework.amqp.utils SerializationUtils deserialize

Introduction

In this page you can find the example usage for org.springframework.amqp.utils SerializationUtils deserialize.

Prototype

public static Object deserialize(ObjectInputStream stream) 

Source Link

Document

Deserialize the stream.

Usage

From source file:lpp.rabbitmq.spring.Consumer.java

public void onMessage(Message message) {
    SMessage msg = (SMessage) SerializationUtils.deserialize(message.getBody());
    System.out.println(msg.toString());
}