Files
Artem Bilan e62645b8ca Use ${project.version} for spring-amqp.version prop
# Conflicts:
#	helloworld/pom.xml
#	log4j2/pom.xml
#	spring-rabbit-confirms-returns/pom.xml
#	spring-rabbit-global-errorhandler/pom.xml
#	spring-rabbit-json/pom.xml
#	spring-rabbit-streams/pom.xml
2024-02-22 17:47:03 -05:00
..
2021-09-17 12:38:29 -04:00
2017-01-31 15:23:54 -05:00
2017-01-31 15:23:54 -05:00
2017-01-31 15:23:54 -05:00
2017-01-31 15:23:54 -05:00

# Receiving JSON From a Non-Spring Application

Spring AMQP applications communicating over AMQP using JSON add type information to message headers to enable the receiving application to convert the JSON to a class instance.

This sample demonstrates techniques to use for such conversion when the sending application is not a Spring app or if you wish to convert to a different type when receiving messages.

- Inferred type from `@RabbitListener` methods
- Parameterized types in template `receiveAndConvert()` methods
- `ClassMapper` id mapping configuration with a legacy POJO listener.

It is a Spring Boot application and can be run with normal boot run methods, e.g.: `./mvnw spring-boot:run`