diff options
| author | Ted Ross <tross@apache.org> | 2011-01-10 14:08:50 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-01-10 14:08:50 +0000 |
| commit | 02f19f9718c7837463bfef8a01d589e0d9c4bb11 (patch) | |
| tree | c7a004482e5d1b1685eec2ee7cf438d78f97285c /cpp/bindings/qmf2/examples/python | |
| parent | 120ea440ef9d048d3bb31e6118027f5c9e890fca (diff) | |
| download | qpid-python-02f19f9718c7837463bfef8a01d589e0d9c4bb11.tar.gz | |
Updated Python and Ruby wrappers to reflect API changes.
Updates to the agent examples.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1057200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf2/examples/python')
| -rwxr-xr-x | cpp/bindings/qmf2/examples/python/agent.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/bindings/qmf2/examples/python/agent.py b/cpp/bindings/qmf2/examples/python/agent.py index d354106042..84d2fe4615 100755 --- a/cpp/bindings/qmf2/examples/python/agent.py +++ b/cpp/bindings/qmf2/examples/python/agent.py @@ -34,7 +34,7 @@ class ExampleAgent(AgentHandler): ## ## Create and open a messaging connection to a broker. ## - self.connection = cqpid.Connection(url) + self.connection = cqpid.Connection(url, "{reconnect:True}") self.session = None self.connection.open() @@ -42,7 +42,6 @@ class ExampleAgent(AgentHandler): ## Create, configure, and open a QMFv2 agent session using the connection. ## self.session = AgentSession(self.connection, "{interval:30}") - self.session.setDomain("test") self.session.setVendor('profitron.com') self.session.setProduct('blastinator') self.session.setAttribute('attr1', 1000) |
