Example #1
0
def callback(channel, method, properties, message):
    print 'Message from gateway:', message
    response = {'status': 'OK',
                'order': message} 
    print 'Sending a response: ', response
    publish_message(message, channel, 'helicom_test_queue_from_service')	
Example #2
0
 def publish(self, message):
     print "Publishing to service:", message
     pika_utils.publish_message(message, self.channel, self.routing_key)