Ejemplo n.º 1
0
from common.program import Program
from common.request_reply.web_handlers import Broker

broker = Broker()

program = Program(broker, [])
program.start()
Ejemplo n.º 2
0
from common.program import Program
from common.request_reply.web_handlers import EventWebHandler

web_handler = EventWebHandler('mediator')
web_handler.persist_address()

program = Program(web_handler, [])
program.start()
Ejemplo n.º 3
0
from common.program import Program
from common.request_reply.web_handlers import EventWebHandler
from book_club import events

web_handler = EventWebHandler('publisher2')
web_handler.persist_address()

program = Program(web_handler, events.events)
program.start()