summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-05225-31275/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7148: Update CMake files to use better more modern style and featuresAndrew Stitcher2016-03-161-4/+1
| | | | | | | - This is already the way we do this stuff in Qpid Proton - Upgrade minimum version of CMake to 2.8.7 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1735324 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6680: .NET Binding allows UTF-8 string messages - patch from ↵Charles E. Rolke2015-08-054-3/+29
| | | | | | | | | https://github.com/gaborsulyok This closes #8 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1694323 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: update hello world example to use recommended api for content ↵Charles E. Rolke2015-07-281-55/+56
| | | | | | | | manipulation Mirrors C++ example URL: http://svn.apache.org/r1693139 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1693164 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6641: Update Windows SDK build for VS2013, Boost 1.58Charles E. Rolke2015-07-132-3/+22
| | | | | | | | Relax requirement for boost/include dir. Boost.org upstream builds don't have them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1690816 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6640: Adjust cmake 3.x generator name detectionCharles E. Rolke2015-07-131-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1690787 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6611: Getting Visual Studio executables to run from where they are built.Charles E. Rolke2015-07-011-3/+10
| | | | | | | | Leaving cmake as-is, this patch adds current VS build folder to the PATH. It further adds an arg to make-install.bat to select a build configuration: git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1688738 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix qpid-cpp-benchmark to work with activemq broker.Alan Conway2014-11-221-0/+11
| | | | | | | The activemq broker appears not to respect the AMQP drain flag, so calling fetch() on an empty queue hangs. Use get() with a timeout instead to drain the queues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1641027 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4575: VS2012 - fix cmake to allow in-source build where dirs source == ↵Charles E. Rolke2014-09-141-2/+6
| | | | | | binary git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1624795 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4575: C++ Messaging .NET Binding fixes for Visual Studio 2012Charles E. Rolke2014-09-1277-2296/+851
| | | | | | | | | | Rename msvc10 folders to msvcx as they hold files 2010, 2012, ... Change projects/solutions to .in templates and cmake configure them. Collapse common example csproj files into common template. Add cmake BUILD_BINDING_DOTNET option setting. Fix up various scripts to accomodate new studio version. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1624604 13f79535-47bb-0310-9956-ffa450edef68
* Test commit using git-svnCharles E. Rolke2014-09-121-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1624570 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5975: HA extra/missing messages when running qpid-txtest2 in a loop ↵Alan Conway2014-08-282-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with failover. This is partly not-a-bug, there is a client error handling issue that has been corrected. qpid-txtest2 initializes a queue with messages at the start and drains the queues at the end. These operations are *not transactional*. Therefore duplicates are expected if there is a failover during initialization or draining. When duplicates were observed, there was indeed a failover at one of these times. Making these operations transactional is not enough to pass, now we see the test fail with "no messages to fetch". This is explained as follows: If there is a failover during a transaction, TransactionAborted is raised. The client assumes the transaction was rolled back and re-plays it. However, if the failover occurs at a critical point *after* the client has sent commit but *before* it has received a response, then the the client *does not know* whether the transaction was committed or rolled-back on the new primary. Re-playing in this case can duplicate the transaction. Each transaction moves messages from one queue to another so as long as transactions are atomic the total number of messages will not change. However, if transactions are duplicated, a transactional session may try to move more messages than exist on the queue, hence "no messages to fetch". For example if thread 1 moves N messages from q1 to q2, and thread 2 tries to move N+M messages back, then thread 2 will fail. This problem has been corrected as follows: C++ and python clients now raise the following exceptions: - TransactionAborted: The transaction has definitely been rolled back due to a connection failure before commit or a broker error (e.g. a store error) during commit. It can safely be replayed. - TransactionUnknown: The transaction outcome is unknown because the connection failed at the critical time. There's no simple automatic way to know what happened without examining the state of the broker queues. Unfortunately With this fix qpid-txtest2 is no longer useful test for TX failover because it regularly raises TransactionUnknown and there's not much we can do with that. A better test of TX atomicity with failover is to run a pair of qpid-send/qpid-receive with fail-over and verify that the number of enqueues/dequeues and message depth are a multiple of the transaction size. See the JIRA for such a test. (Note these test also sometimes raise TransactionUnknown but it doesn't matter since all we are checking is that messages go on and off the queues in multiple of the TX size.) ) Note: the original bug also reported seeing missing messages from qpid-txtest2. I don't have a good explanation for that but since the qpid-send/receive test shows that transactions are atomic I am going to let that go for now. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1621211 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Work-around bug in older cmake, finds static python library instead ↵Alan Conway2014-08-271-2/+25
| | | | | | | | | | | | | | | | | of shared. FindPythonLibs on older versions of cmake (observed on cmake-2.6.4-5.el5.4) sometimes finds the static archive library (.a) before the shared object library (.so) This is almost never what you want. Newer versions (e.g. cmake-2.8.12.2-2.fc20.x86_64) explicitly look for the .so first and look for the .a library second. This workaround fixes the problem as follows: - It is a no-op except on Unix platforms that use the .so prefix. - On those platforms it does a search for .so only first. - Finally we do a default search for other platforms (or if .so was not found) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1620888 13f79535-47bb-0310-9956-ffa450edef68
* Revert "NO-JIRA: Work-around bug in older cmake, finds static python library ↵Alan Conway2014-08-261-20/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | instead of shared." This patch seems to cause various build problems, will put it back when I figure out what is going wrong. ------------------------------------------------------------------------ r1620424 | aconway | 2014-08-25 16:10:52 -0400 (Mon, 25 Aug 2014) | 13 lines NO-JIRA: Work-around bug in older cmake, finds static python library instead of shared. FindPythonLibs on older versions of cmake (observed on cmake-2.6.4-5.el5.4) sometimes finds the static archive library (.a) before the shared object library (.so) This is almost never what you want. Newer versions (e.g. cmake-2.8.12.2-2.fc20.x86_64) explicitly look for the .so first and look for the .a library second. This workaround fixes the problem as follows: - It is a no-op except on Unix platforms that use the .so prefix. - On those platforms it does a search for .so only first. - Finally we do a default search for other platforms (or if .so was not found) ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1620738 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Work-around bug in older cmake, finds static python library instead ↵Alan Conway2014-08-251-2/+20
| | | | | | | | | | | | | | | | | of shared. FindPythonLibs on older versions of cmake (observed on cmake-2.6.4-5.el5.4) sometimes finds the static archive library (.a) before the shared object library (.so) This is almost never what you want. Newer versions (e.g. cmake-2.8.12.2-2.fc20.x86_64) explicitly look for the .so first and look for the .a library second. This workaround fixes the problem as follows: - It is a no-op except on Unix platforms that use the .so prefix. - On those platforms it does a search for .so only first. - Finally we do a default search for other platforms (or if .so was not found) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1620424 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5893: Perl unit tests now find the utils module.Darryl L. Pierce2014-08-203-30/+19
| | | | | | | | | | | The module's not on the @INC path, and really shouldn't be since it's only used by the tests. So now the tests programmatically update @INC to include their directory as a part of the path, and find utils.pm. Fixed the failing Message.t file as well, which includes tests for methods that are deprecated. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1619181 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5964: Add SetContentObject support for list and map.Charles E. Rolke2014-08-053-1/+60
| | | | | | Fix GetContentObject return value warning. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1615992 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Perl Receiver returning an unwrapped Message object.Darryl L. Pierce2014-07-311-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614890 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5939: Add get_address to Perl Sender/Receiver classes.Darryl L. Pierce2014-07-313-4/+44
| | | | | | Updated the Perl client/server examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614889 13f79535-47bb-0310-9956-ffa450edef68
* PQID-5840: .NET Binding example.server confuses argument indexingCharles E. Rolke2014-06-241-3/+3
| | | | | | Don't require an unused argument just to keep connectionOptions as arg[2] git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1605112 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Make bindings install on windowsAndrew Stitcher2014-06-175-37/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1603302 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5829: Rearrange CMake files to centralise some flagsAndrew Stitcher2014-06-175-8/+8
| | | | | | | | - This means they can be used in the bindings. - It also means that individual modules do not have to specify to catch undefined symbols as this is the default beahviour now. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1603064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5807: Remove boost::program_options as a header file dependency of ↵Andrew Stitcher2014-06-111-5/+0
| | | | | | | | | qpid/Options.h - The intent here is to remove the necessity for things using qpid::Options to need to link boost::program_options directly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1602021 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5794: Fix the regex in spout.rbDarryl L. Pierce2014-05-301-2/+2
| | | | | | | In Ruby > 1.8 the regular expression worked as is. But in 1.8 it requires that the braces be escaped. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1598629 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5732: Perl examples getting the wrong cmdline argumentsDarryl L. Pierce2014-04-292-5/+5
| | | | | | | | | | The hello_world and map_receiver examples had a one-off error when getting command line arguments. This patch points them back to the correct arguments. Contributed by Zdenek Kraus <zkraus@redhat.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591006 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5716: Messaging C++ .NET binding fails to return GetContentObject dataCharles E. Rolke2014-04-234-17/+96
| | | | | | | | Changes function signature to: object = message.GetContentObject() Adds self tests using SetContentObject and GetContentObject. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5560: HA tests do not use AMQP 1.0Alan Conway2014-04-071-10/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The HA tests were using only AMQP 0-10. Modified the tests to use AMQP 1.0 if available (still use 0-10 if 1.0 is not available) Fixed bugs uncovered both in the tests and in the AMQP 1.0 implementation. Summary of changes: - brokertest.py: configurable support for of swig vs. native and amqp0-10 vs. 1.0 - default to swig+amqp1.0 if swig is available, native+amqp0-10 otherwise - qpidtoollibs/broker.py: enable use of swig client with BrokerAgent - Swig python client: - support for passing client_properties/properties. - expose AddressHelper pn_data read/write as PnData helper class - set sender/receiver capacity on creation - limited disposition support - rejected messages. - support for additional timeout parameters - expose messaging::Logger, allow log configuration to be set from python. - ha_tests.py: - bind, delete policies not supported by AMQP 1.0, switched to using BrokerAgent QMF. - pass protocol:amqp1.0 connection-option to c++ test clients (qpid-send, qpid-receive) - TX tests forsce use of 0-10 protocol (but still with Swig client if enabled.) - Broker fixes: - Queue::Settings::isTemporary was set in the 0-10 SessionAdapter, moved to Broker::createQueue. - broker::amqp::Session was always setting an exclusive owner in createQueue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585588 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Use better logic to locate Visual Studio vcvars on 32-/64-bit systemsCharles E. Rolke2014-03-221-14/+62
| | | | | | | | | | Emit a make-install.bat. Install failures from within VS gui are hidden but are in plain sight from the command line. Fix a couple of bad references to boost root directory. Turn off INSTALL_QMFGEN to preclude install failures Replace hard tabs with spaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1580210 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5631: Adjust for changes to Qpid CMake detection of Proton.Charles E. Rolke2014-03-201-375/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Buried deep in cpp\bindings\qpid\dotnet is a script configure-windows.ps1. This script originally came into being to support the .NET binding, which is a .NET project that has no support from CMake. The script gathers the facts of where cmake runs and where boost comes from and embeds the environment into launch scripts used to start the .NET binding solution(s). Then the .NET solution can link naturally to the rest of the cmake project environment. Before this commit the script was very liberal about where one could root a build (run cmake). This patch forces some order onto the build and install directories to ease integration with proton. I use a couple of conventions and it makes life much easier. 1. Map some drives. Drive P: maps to the root of a proton checkout Drive Q: maps to the root of a qpid checkout Strictly speaking this is not necessary and if you use this scheme then you must be careful about the drive mappings. If you get them wrong then your builds will be confused. 2. Use fixed names for the studio/platform builds and installs. Builds go to: P:\build_2008_x86 Q:\build_2008_x86 P:\build_2008_x64 Q:\build_2008_x64 P:\build_2010_x86 Q:\build_2010_x86 P:\build_2010_x64 Q:\build_2010_x64 Installs go to: Q:\install_2008_x86 Q:\install_2008_x64 Q:\install_2010_x86 Q:\install_2010_x64 That is, cmake for a VS2010 32-bit build is run in P:\build_2010_x86 and Q:\build_2010_x86 But both of these builds use -DCMAKE_INSTALL_PREFIX=Q:\install_2010_x86 to install into the same place. 3. To build qpid with proton support: build and install proton first and then build and install qpid. To build qpid with no proton support: just build and optionally install qpid. Other fixes to this script are: * Adds --help option * It does only one studio/platform at a time. It doesn't mix 32- and 64-bit builds together. * It is callable from the command line: > cd cpp\bindings\qpid\dotnet > powershell -ExecutionPolicy unrestricted .\configure-windows.ps1 2010-x86 c:\boost-win-1.47-32bit-vs2010 It will create the canonical build directory and run cmake in it. * A new batch file is emitted that has the exact cmake command used. You can use this to rerun cmake without rerunning any powershell. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1579734 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5622: Expose {get,set}ContentObject in Ruby bindings.Darryl L. Pierce2014-03-1110-18/+77
| | | | | | | Added the feature and updated the rspec tests and examples to use content_object for retrieving data. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1576357 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix malformed install directoryCharles E. Rolke2014-02-241-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1571470 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5575: csharp.map.receiver example throws referencing connectionOptions argCharles E. Rolke2014-02-211-1/+1
| | | | | | | | Dereference proper arg. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1570603 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5556: Provide the right Perl packages in top-level modules.Darryl L. Pierce2014-02-172-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1569117 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5546: Expose the get_content_object method in Perl.Darryl L. Pierce2014-02-113-3/+36
| | | | | | | Updated the spout and drain examples to use this rather than encode/decode to retrieve the content of a message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1567173 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5499: Fix Ruby/Perl bindings when built with -Werror=format-securityDarryl L. Pierce2014-02-073-23/+23
| | | | | | Changed the swig descriptors so that they use a constant format string. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1565651 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Update configuration script to handle a PROTON_ROOT.Charles E. Rolke2014-01-291-17/+85
| | | | | | | Expose the cmake command lines as they are executed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1562539 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5481: Messaging API Update - 1555202 Logger module addedCharles E. Rolke2014-01-224-0/+368
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1560529 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5503: expose next_receiver through swig wrapper, add test for both 1.0 ↵Gordon Sim2014-01-221-0/+9
| | | | | | and 0-10 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1560395 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix switch statement not covering all cases warningAndrew Stitcher2014-01-171-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1559021 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5481: Messaging API Update - 1520673 Connection reconnect() and ↵Charles E. Rolke2014-01-162-0/+64
| | | | | | getUrl() added git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558911 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5481: Messaging API Update - 1520416 Message ↵Charles E. Rolke2014-01-161-11/+35
| | | | | | | | | | | | | | setProperties(Variant::Map&) added The .NET binding already had a Properties setter but it behaved worked by doing recursive property Add and not a wholesale replace. This patch calls the new setProperty method to get the correct behavior. The Properties property does non trivial calls into the unmanaged code. This patch also intercepts unmanaged exceptions from get and set and relays them into managed space. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558899 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5481: Messaging API Update - 1513536 Message constructor and content ↵Charles E. Rolke2014-01-154-144/+162
| | | | | | | | | | getters added The .NET Binding already had the bytes constructor and the getContentBytes methods. This patch adds getContentObject/setContentObject interfaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558619 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5481: Messaging API Update - r1460198 QPID-4586 Receiver and Sender ↵Charles E. Rolke2014-01-154-0/+97
| | | | | | 'Address getAddress()' added git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558549 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Reformat white space with Visual Studio 2010 ^K^F Format Selection.Charles E. Rolke2014-01-157-43/+54
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558481 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added licensing prologs to the Perl MakefileDarryl L. Pierce2013-12-161-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1551313 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added licensing prologs to the Ruby feature files and gemspecDarryl L. Pierce2013-12-1612-2/+208
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1551312 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add ASF license statements to dotnet binding solution and config files.Charles E. Rolke2013-12-1617-0/+312
| | | | | | | Reported by RAT on qpid-0.26-rc1 Generated at: 2013-12-15T18:48:44+00:00 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1551262 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5394: Fix the binding dependencies so that we no longer keep on ↵Andrew Stitcher2013-12-046-18/+41
| | | | | | rebuilding the python swig bindings unnecessarily git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1547933 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5369: add deprecation warnings to the QMF2 wrapped modulesKenneth Anthony Giusti2013-11-262-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1545776 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5369: Issue compile-time error if deprecated QMF Agent or Console API ↵Kenneth Anthony Giusti2013-11-254-0/+8
| | | | | | used by applications git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1545368 13f79535-47bb-0310-9956-ffa450edef68