diff options
Diffstat (limited to 'cpp/bindings/qmf2/examples/python/agent.py')
| -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) |
