You will need a RabbitMQ client to connect to the UH Message Broker.
- Java
- Download the Java Client
- Sample Code
- UHIMSEventsServiceImpl.java, a Java consumer used for UHIMS Events
- RabbitMqConnector.java, a Java producer for a SECE exchange
- Perl
- AnyEvent::RabbitMQ
- We chose it mostly because it didn't require us to install additional software.
- We have created a module named RabbitMessaging that uses AnyEvent::RabbitMQ.
- It is much friendlier, but probably at the expense of AnyEvent functionality.
- Read the warning about the consume() method in the RabbitMessaging.pm source code. You may want to use the get_message() method instead.
- To use RabbitMessaging:
- Download our RabbitMessaging.pm module
- Install version 1.16 of AnyEvent::RabbitMQ
- Note that this version includes the following patches which we previously had to manually apply to version 1.05 of AnyEvent::RabbitMQ
- RabbitMQ-tls.patch to /usr/local/lib/site_perl/5../AnyEvent/RabbitMQ/RabbitMQ.pm (for TLS support)
- RabbitMQ-Channel-args.patch to /usr/local/lib/site_perl/5../AnyEvent/RabbitMQ/Channel.pm (for persistent messages)
- Use sample-RabbitMessaging-code as a template for your app.
- Net::STOMP::Client
- Recommended by someone in the rabbitmq-discuss mailing list, its author is active in this list.
- POE::Component::Client::AMQP
- Also mentioned in rabbitmq-discuss mailing list.
- AnyEvent::RabbitMQ
- Other clients from the RabbitMQ website:
- .NET/C#
- Erlang
You may find it easier to go to http://www.rabbitmq.com/download.html and use the quick download links for each of the above languages.