Пример #1
0
 def on_start(self, event):
     # conn = event.container.connect("localhost:5672")
     event.container.create_receiver(env.server_addr, options=Copy())
Пример #2
0
 def on_start(self, event):
     conn = event.container.connect(self.url, allowed_mechs='PLAIN')
     event.container.create_receiver(conn, self.queue, options=Copy())
 def on_start(self, event):
     conn = event.container.connect(self.url, allowed_mechs='PLAIN')
     event.container.create_receiver(conn,
                                     self.target,
                                     options=Copy(),
                                     name=SUBSCRIPTION_NAME)
Пример #4
0
 def on_start(self, event):
     conn = event.container.connect("localhost:5672")
     event.container.create_receiver(conn, "examples", options=Copy())
 def on_start(self, event):
     self.container = event.container
     conn = event.container.connect(self.url, allowed_mechs='PLAIN')
     event.container.create_receiver(conn, self.path, options=Copy(),
                                     name=SUBSCRIPTION_NAME)
     self.container.schedule(1, self)