INTSAMPLES-30 - initial commit of the AMQP Sample

Added .DS_Store to .gitignore
  Removed the image as it is problematic with Github. Will be added to the SI AMQP reference documentation instead
  Removed a ":" from the readme
  Removed a class that was not used anymore
  polishing
This commit is contained in:
Gunnar Hillert
2011-08-22 13:04:41 -04:00
committed by Mark Fisher
parent d87f141e83
commit a24994dc1c
8 changed files with 355 additions and 0 deletions

52
basic/amqp/README.md Normal file
View File

@@ -0,0 +1,52 @@
Spring Integration - AMQP Sample
================================
# Overview
This sample demonstrates basic functionality of the **Spring Integration AMQP Adapter**, which uses the [Advanced Message Queuing Protocol](http://www.amqp.org/) (AMQP) to send and retrieve messages. As AMQP Broker implementation the sample uses [RabbitMQ](http://www.rabbitmq.com/).
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](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](http://www.springsource.com/developer/sts) (STS) do:
* Right-click on Main class --> Run As --> Java Application
Alternatively, you can start the sample from the command line ([Maven](http://maven.apache.org/) 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:
* [http://static.springsource.org/spring-integration/reference/htmlsingle/#amqp](http://static.springsource.org/spring-integration/reference/htmlsingle/#amqp)
Some further resources:
* RabbitMQ - [http://www.rabbitmq.com/](http://www.rabbitmq.com/)
* Spring AMQP - [http://www.springsource.org/spring-amqp](http://www.springsource.org/spring-amqp)