Files
spring-integration-samples/basic/amqp
Gunnar Hillert 9effe2f9bc INTSAMPLES-33 Update to SI RC1 and Spring 3.1
1. Cleanup of pom.xml files
2. Standardizing version numbers
3. Updating dependency versions
4. Cleaning/Standardizing project names
5. Removing Schema versions in XML context files
2011-12-18 00:32:34 -05:00
..

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: