Declaring queue properly, but now it would appear we're blocking...

This commit is contained in:
Dan Buch 2012-11-15 07:51:08 -05:00
parent ce29df17cb
commit dda8e8cb85

View File

@ -1,6 +1,6 @@
import com.rabbitmq.client._
object Producer extends App {
object HelloWorldProducer extends App {
if (args.length < 1) {
println("You must provide a message argument")
} else {
@ -12,7 +12,7 @@ object Producer extends App {
var channel = connection.createChannel()
channel.exchangeDeclare("hello-exchange", "direct", true)
channel.queueDeclare("hello-queue", true, false, false, null)
channel.queueDeclare("hello-queue", false, false, false, null)
println("Publishing ", messageBody)
channel.basicPublish("hello-exchange", "hola", null,