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

Matthew Sackman matthew at rabbitmq.com
Wed Jun 29 09:18:45 BST 2011


Morning Jason,

On Wed, Jun 29, 2011 at 05:07:34AM +0000, Jason Klassen wrote:
> 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?

Yes.

> 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.

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

Best wishes,

Matthew


More information about the rabbitmq-discuss mailing list