Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java
Branch: master
Failed to load latest commit information.
src Upgraded to DropWizard 0.6.1, AMQP Client to 3.0.1, Jersey to 1.17.
.gitignore
README.textile Upgraded to DropWizard 0.6.1, AMQP Client to 3.0.1, Jersey to 1.17.
example.keystore DropWizard AMQP Stock Quote Sample based on RabbitMQ backend from Spr…
pom.xml Upgraded to DropWizard 0.6.1, AMQP Client to 3.0.1, Jersey to 1.17.

README.textile

DropWizard AMQP Stock Trader Sample App

Sample app publishes messages to RabbitMQ backend. The app is configured with SSL and Basic Auth.

Setup

Testing

Using CURL

  • POST JSON data and negotiate XML response
    curl -k -X POST -d @src/test/resources/tradeRequest.json --user joe:secret https://localhost:8080/trader -H "Content-Type:application/json" -H "Accept: application/xml"
  • POST XML data and negotiate JSON response
    curl -k -X POST -d @src/test/resources/tradeRequest.xml --user joe:secret https://localhost:8080/trader -H "Content-Type:application/xml" -H "Accept: application/json"

Using Spring AMQP Stock sample client UI
java org.springframework.amqp.rabbit.stocks.ui.StockPanel

Something went wrong with that request. Please try again.