Skip to content

Instantly share code, notes, and snippets.

@sbtourist
Created January 8, 2011 17:34
Show Gist options
  • Save sbtourist/771011 to your computer and use it in GitHub Desktop.
Save sbtourist/771011 to your computer and use it in GitHub Desktop.
Simple pipe from ActiveMQ to RabbitMQ
(ns clamq-samples1 (:use [clamq.protocol] [clamq.jms] [clamq.activemq] [clamq.rabbitmq] [clamq.pipes]))
(def activemq (jms-connection (activemq-connection "tcp://localhost:61616")))
(def rabbitmq (rabbitmq-connection "localhost"))
(open
(pipe {
:from {:connection activemq :endpoint "activemq"}
:to {:connection rabbitmq :endpoint {:routing-key "rabbitmq"}}
:transacted true
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment