[rabbitmq-discuss] examples of using basicPublish, basicConsume?

Cory Maksymchuk cory.maksymchuk at protegra.com
Wed Jun 29 14:53:44 BST 2011


Hi Jason,



Try here for the javadoc:



http://www.rabbitmq.com/releases/rabbitmq-java-client/v2.5.0/rabbitmq-java-client-javadoc-2.5.0/com/rabbitmq/client/Channel.html

Cheers,

Cory



________________________________
From: Jason Klassen
Sent: Wednesday, June 29, 2011 12:07 AM
To: rabbitmq-discuss at lists.rabbitmq.com
Subject: examples of using basicPublish, basicConsume?

Another question about upgrading from Rabbit 1.4 java client to 2.5.1.  I used to do

      channel.basicPublish(ticket, exchange, routingKey, null, bytes.toByteArray )

and

    channel.basicConsume( ticket, false, queueName, myDefaultConsumer)

Is it appropriate to just omit ticket?  If not, what is the equivalent that I can do in 2.5.1 for these methods?

Also where can I find information about basicPublish, basicConsume? The javadoc for channel http://www.rabbitmq.com/releases/rabbitmq-java-client/v2.5.0/rabbitmq-java-client-javadoc-2.5.0/com/rabbitmq/client/AMQP.Channel.html does not seem to indicate available methods so I’m doing some guessing here.

Thanks,
Jason Klassen


More information about the rabbitmq-discuss mailing list