[
https://issues.apache.org/jira/browse/QPID-3333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061516#comment-13061516
]
Gordon Sim commented on QPID-3333:
----------------------------------
Spooky! You commented at (almost) exactly the same time as me!
Here is what I changed, this was not intended to be a solution just a quick
hack to test out the changes:
{noformat}
22c22,23
< from qpid.messaging import *
---
> from cqpid import *
> from qpid.datatypes import uuid4
94,97c95,98
< conn = Connection(opts.broker,
< reconnect=opts.reconnect,
< reconnect_interval=opts.reconnect_interval,
< reconnect_limit=opts.reconnect_limit)
---
> conn = Connection(opts.broker)
> if opts.reconnect: conn.setOption("reconnect", opts.reconnect)
> if opts.reconnect_interval: conn.setOption("reconnect_interval",
> opts.reconnect_interval)
> if opts.reconnect_limit: conn.setOption("reconnect_limit",
> opts.reconnect_limit)
{noformat}
The c++ client now recognises the same options as python so e.g.
sasl_mechanisms is fine. Good point about the lack of getOption(), I'll add
that in.
> Make Python SWIG bindings a drop-in replacement for pure Python
> qpid.messaging package
> --------------------------------------------------------------------------------------
>
> Key: QPID-3333
> URL: https://issues.apache.org/jira/browse/QPID-3333
> Project: Qpid
> Issue Type: Improvement
> Components: C++ Client
> Affects Versions: 0.11, Future
> Reporter: Anthony Foglia
> Assignee: Gordon Sim
> Attachments: 0001-Wrap-NoMessageAvailable-as-Empty-exception.patch,
> 0002-Change-Connection-interface-to-match-pure-python.patch,
> 0003-Change-Session-interface-to-match-pure-python.patch,
> 0004-Change-Receiver-interface-to-match-pure-python.patch,
> 0005-Change-Sender-interface-to-match-pure-python.patch,
> 0006-Change-Message-interface-to-match-pure-python.patch
>
>
> These patches are make the compile Python SWIG bindings to the C++ client
> much closer to a drop-in replacement for the Python qpid.messaging package.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]