diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 10:54:07 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 10:54:07 +0000 |
| commit | 5e0d449d9de02b4937747cc0b67cf50e62310b81 (patch) | |
| tree | 1a1133ebe7b70ff84aaede1d6c8cab84b4ceaf48 /qpid/python/examples/api/server | |
| parent | 5f4ccf5da76ae6ebfdd3252ed6f865e0a72fd745 (diff) | |
| download | qpid-python-5e0d449d9de02b4937747cc0b67cf50e62310b81.tar.gz | |
Changes to connection lifecycle methods and Connection parameters:
- Connection.open -> Connection.establish
- Connection.connect() split into Connection.open(), Connection.attach()
- Connection.disconnect() -> Connection.detach()
- reconnect_hosts -> reconnect_urls
- transport now takes tcp, ssl, and tcp+tls
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932352 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/examples/api/server')
| -rwxr-xr-x | qpid/python/examples/api/server | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qpid/python/examples/api/server b/qpid/python/examples/api/server index 3103dd795a..0500e6f380 100755 --- a/qpid/python/examples/api/server +++ b/qpid/python/examples/api/server @@ -44,16 +44,12 @@ if opts.verbose: else: enable("qpid", WARN) -url = URL(opts.broker) if args: addr = args.pop(0) else: parser.error("address is required") -# XXX: should make URL default the port for us -conn = Connection(url.host, url.port, - username=url.user, - password=url.password, +conn = Connection(opts.broker, reconnect=opts.reconnect, reconnect_interval=opts.reconnect_interval, reconnect_limit=opts.reconnect_limit) @@ -75,7 +71,7 @@ def dispatch(msg): return result try: - conn.connect() + conn.open() ssn = conn.session() rcv = ssn.receiver(addr) |
