- PR Comments - Switch to Jackson2 - Fix oxm config Polishing INTSAMPLES-127 Update to SI 4.0.0.RC1 INTSAMPLES-127 Remove Servlet Dependency travel sample; see INT-3350. INTSAMPLES-127 Update Samples to SI 4.0.0 JIRA: https://jira.spring.io/browse/INTSAMPLES-127 Created `maint` branch for ongoing SI 3.0.x samples.
Spring Integration - AMQP Sample
Overview
This sample demonstrates basic functionality of the Spring Integration AMQP Adapter, which uses the Advanced Message Queuing Protocol (AMQP) to send and retrieve messages. As AMQP Broker implementation the sample uses RabbitMQ.
Once the application is started, you enter some text on the command prompt and a message containing that entered text is dispatched to the AMQP queue. In return that message is retrieved by Spring Integration and then printed to the console.
In order to run the example you will need a running instance of RabbitMQ. A local installation with just the basic defaults will be sufficient. Please visit: http://www.rabbitmq.com/install.html for detailed installation procedures.
How to Run the Sample
If you imported the example into your IDE, you can just run class org.springframework.integration.samples.amqp.Main. For example in SpringSource Tool Suite (STS) do:
- Right-click on Main class --> Run As --> Java Application
Alternatively, you can start the sample from the command line (Maven required):
- mvn package
- mvn exec:java
Used Spring Integration components
Spring Integration Modules (Maven dependencies)
- spring-integration-core
- spring-integration-amqp
- spring-integration-stream
Spring Integration Adapters
- int-stream:stdin-channel-adapter
- int-amqp:outbound-channel-adapter
- int-amqp:inbound-channel-adapter
- int-stream:stdout-channel-adapter
- int:poller
- int:channel
- int:interceptors
- int:wire-tap
- logging-channel-adapter
Resources
For further help please take a look at the Spring Integration documentation:
Some further resources:
- RabbitMQ - http://www.rabbitmq.com/
- Spring AMQP - http://www.springsource.org/spring-amqp