266
267
consumer = RabbitQueue(global_session, next(queue_names))
267
268
routing_key = RabbitRoutingKey(global_session, next(key_names))
268
269
routing_key.associateConsumer(consumer)
269
272
routing_key.sendNow('now')
270
273
routing_key.send('later')
275
278
# Now that the transaction has been committed, the consumer is
276
279
# associated, and receives the deferred message.