summaryrefslogtreecommitdiff
path: root/java/client/src
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-3662: Only display connection options once in toString of URLAndrew Donald Kennedy2011-12-062-10/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1211061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3661: Add Dynamic-Import-Package wildcard entry to client .bnd fileAndrew Donald Kennedy2011-12-061-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1211060 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3654: ANONYMOUS SASL mechanism does not work on Java clientAndrew Stitcher2011-11-301-2/+3
| | | | | | | | | Added a CallbackHandler for the ANONYMOUS mechanism (even though it should never be called) - This is necessary because the client uses the map of callback handlers to construct the list of available mechanisms. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1208733 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3642: Fix for redelivery regression found by python testsKeith Wall2011-11-301-4/+0
| | | | | | Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1208435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3642, QPID-3640: Add Dead Letter Queue functionality for 0-10 path. ↵Keith Wall2011-11-282-10/+39
| | | | | | | | Also, it fixes issue with setting of redelivered flag for pre-fetched messages as DLQ functionality relies on this flag being set correctly. Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1207031 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3642,QPID-3643: Add Dead Letter Queue functionality for 0-8/0-9/0-9-1 ↵Keith Wall2011-11-2813-52/+453
| | | | | | | | paths, fixes isBound methods on FanoutExchange Applied patch from Keith Wall <keith.wall@gmail.com>, Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1207029 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3582: Client reporting "Unable to load custom SASL providers" during ↵Keith Wall2011-11-221-6/+0
| | | | | | connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1205197 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2703: 0-10 Transaction rollback/recover does not restore consumer creditKeith Wall2011-11-173-30/+17
| | | | | | | Defect in Java client. 0-10 requires that commands are completed, but the Java client was failing to complete those commands corresponding to messages that were being rolled-back/recovered. Work by Robbie Gemmell and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1203139 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3610: set TCP_NODELAY to true by default, add new system property for ↵Robert Gemmell2011-11-111-10/+21
| | | | | | changing default, add unit tests for system properties + connection url options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1200803 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3539: NoLocal should occur at the connection level and not the session ↵Keith Wall2011-11-101-1/+2
| | | | | | | | level (0-10). Also fixed typing issue that prevented Java Broker understanding the no-local queue argument when encoded as String (as sent by Python tests). Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1200335 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3519: refactor consumer argument handlingKeith Wall2011-11-097-52/+45
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1199664 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3518: Introduce client side ability to detect server side support.Keith Wall2011-11-099-35/+88
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1199662 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3536: 0-10 overrides JMS AcceptMode with a defaulted (not explicitly ↵Keith Wall2011-11-073-23/+3
| | | | | | | | set) Link Reliability of UNRELIABLE Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1198701 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2848: refactored message consumer: pre-aquire, capacity decisions are ↵Keith Wall2011-11-0710-162/+259
| | | | | | | | moved into consumer, renamed field noConsume into browseOnly, cleaned up selector filter code. Applied patch from Andrew MacBean <andymacbean@gmail.com>, Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1198642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3583: Update trunk version from 0.13 to 0.15Justin Ross2011-11-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1197304 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3562: move sending completions if necessary into postDeliver() so that ↵Robert Gemmell2011-10-302-11/+28
| | | | | | prefetch=1 has the expected impact for asynchronous transacted consumers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1195213 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3532: make the 0-10 client hold the failover mutex during the failover. ↵Robert Gemmell2011-10-215-25/+58
| | | | | | | | Alter the Address resolution code to allow resolving addresses after failover. Add some more failover tests (inc ADDR based ones). Make the failover process notify any waiters in the session to abort and let failover proceed. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1187279 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3542: ensure session complete sent for filtered out messagesKeith Wall2011-10-182-9/+41
| | | | | | Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1185580 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3546: update the highestDeliveryTag marker during failover to prevent ↵Robert Gemmell2011-10-132-5/+39
| | | | | | | | | | the stale value being used to set the rollback mark on the first rollback after failover. This commit only fixes the 0-10 client path, as fixing this on the 0-8/9/9-1 path currently would cause undesirable interaction with the issue in QPID 3521. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182793 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3542: Java client does not ack non-matching messages when using client ↵Keith Wall2011-10-112-67/+45
| | | | | | | | side selectors (CPP Broker) Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1181861 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3534: ignore transport exceptions raised whilst closing the network ↵Robert Gemmell2011-10-111-1/+10
| | | | | | | | connection after sending the close-ok reply, as these can prevent failover occurring and are actually related to the broker (incorrectly) having already closed the socket Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1181735 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3534, QPID-3535: make 0-8/0-9/0-9-1 client path simply close the ↵Robert Gemmell2011-10-101-1/+1
| | | | | | | | | underlying NetworkConnection instead of sending an erroneous ConnectionClose body after replying to the ConnectionClose from the broker or receving an unsupported protocol verison during initial connection negotiation. Stops the client making 2 seperate attempts to initiate failover, and removes possibility of the exception that can currently cause both of them to be skipped. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1181204 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526: ensure that the session is marked clean after ↵Robert Gemmell2011-10-071-0/+1
| | | | | | message.acknowledge() is used, add test to verify behaviour git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179965 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2442: Make 0-10 TemporaryQueue#delete and TemporaryTopic#delete perform ↵Keith Wall2011-10-065-16/+52
| | | | | | the delete on the Broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3525: stop the client from accidentally consuming the messages it is ↵Robert Gemmell2011-10-061-12/+24
| | | | | | | | actually trying to recover when using 0-8/9/9-1. Also stops it acking the message from the in-progress onMessage delivery after Session.recover() was called. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179699 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3527: update handling of auto-ack messages for 0-10 to send acks ↵Robert Gemmell2011-10-066-80/+53
| | | | | | | | (asynchronously) on a per-message basis rather than batching for 1 second, update handling for other ack modes to be clearer with respect to 0-8/0-10 behavioural differences. Remove some redundant methods from AMQSession, updating handling of 'no consume'/'isBrowseOnly' such that BasicMessageConsumer is always supplied a single consistent answer for whether it is non-consuming or not. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179698 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526, QPID-3524: make sure the 0-10 client message.acknowledge() ↵Robert Gemmell2011-10-067-166/+118
| | | | | | | | actually acknowledges messages immediately, and does so synchronously, adding test to verify behaviour. Split acknowledge() and commit() methods into version specific session implementations for clarity/reuse, align 0-10 and 0-8/9 transacted publishing behaviour, refactor preDeliver and postDeliver methods, remove dead code from consumers. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179695 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526: move duplicated methods into the parent abstract message ↵Robert Gemmell2011-10-065-191/+72
| | | | | | | | delegate, remove dead code from BassicMessageConsumer Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179694 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3512: Avoid race during 0-8..0-9-1 connection close.Keith Wall2011-09-305-34/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177689 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3511: Removal of unused system property "qpid.default_wait_on_send" ↵Keith Wall2011-09-2811-107/+51
| | | | | | | | from Java Client. Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176821 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3507: move the MessageListener check in front of the _receiving CASRobert Gemmell2011-09-271-4/+4
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176326 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3444: issue an invalid argument execution exception if the exchange ↵Robert Gemmell2011-09-252-2/+2
| | | | | | name is null or the empty string. Update some constants to ensure the error code is logged with the correct message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the extraneous toString()Rajith Muditha Attapattu2011-09-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1173693 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3415: Change 0-10 code path to utilise the CallbackHandlerRegistry to ↵Keith Wall2011-09-196-125/+550
| | | | | | create the correct CallbackHandler. The sasl_mechs property/broker option is retained, but continues to be understood only by the 0-10 path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1172506 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3448: catch exceptions from the underlying Transport/Session/Connection ↵Robert Gemmell2011-09-138-48/+953
| | | | | | | | and rethrow as a JMSException like users are expecting Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170182 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3428: make the Java broker validate 0-10 Session names, enabling it to ↵Robert Gemmell2011-09-134-8/+18
| | | | | | | | | satisfy the clients new ClientID verification feature. Misc updates to the clients verification process. Applied patch from Andrew MacBean git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3449: adds ability to override the session timeout via JVM properties ↵Robert Gemmell2011-09-121-1/+4
| | | | | | | | qpid.sync_op_timeout and the legacy amqj.default_syncwrite_timeout, across all protocol versions Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169773 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627 : Remove dependency on MINARobert Godfrey2011-09-0928-1385/+1636
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2901: fixes racing conditions on broker side when TopicDeletePolicy is ↵Robert Gemmell2011-09-071-1/+1
| | | | | | | | closing the consumer Session but the broker is trying to deliver next message to the Subscription of this closing Session. Applied patch from Oleksandr Rudyy <orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166246 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3473 : Replace use of MINA IO with transport IO (joint work with Robbie ↵Robert Godfrey2011-09-076-544/+74
| | | | | | Gemmel) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166069 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the 'create:always' option when constructing theRajith Muditha Attapattu2011-09-061-1/+1
| | | | | | | | address string from the replyTo construct. The application which sets the replyTo is responsible for creating/deleting the replyTo destination and not the one who sends messages to it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Added logic to convert exchange/replyTo pairs into addressRajith Muditha Attapattu2011-09-051-3/+58
| | | | | | strings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165148 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3461 The commit method implementation in AMQSession_0_10 nowRajith Muditha Attapattu2011-08-311-0/+7
| | | | | | handles the SessionException and throws a JMSException. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3395 Added a test case for this issue.Rajith Muditha Attapattu2011-08-311-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163459 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3373 Applying Pavel's patch. I also added the same fix for theRajith Muditha Attapattu2011-08-311-23/+42
| | | | | | createXAConnection method with user,password. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163457 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3395 Applied Pavel's patch with minor modifications.Rajith Muditha Attapattu2011-08-301-8/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163422 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3307: correct a couple style issues, add some basic unit testing for ↵Robert Gemmell2011-08-214-6/+206
| | | | | | ObjectMessage and the new CLAOIS git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1160002 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3307: attempt fall back to the ClassLoader which loaded the OIS when ↵Robert Gemmell2011-08-212-1/+138
| | | | | | | | | unable to load required classes during ObjectMessage deserialization process Applied patch from Charith Dhanushka Wickramarachchi based on the solution to this problem from the Apache ActiveMQ codebase. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1160001 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3434: Refactored 0-8..0-9-1 code paths to use same SSL configuration ↵Robert Gemmell2011-08-1811-510/+136
| | | | | | | | mechanisms as 0-10. Apply work by myself and Keith Wall git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159255 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3429: ensure that SSL is enabled correctly in MinaNetworkHandler. ↵Robert Gemmell2011-08-181-3/+12
| | | | | | | | Refactor SSLContextFactory to be a factory, and present a useful interface for both client and server side use. Added keystore for the Java broker, renamed existing client trust/key stores for clarity. Fix SSL port configuration. Added new SSL tests, and ensure these are *always* run in the Java 0-10 profiles. Committing work by myself and Keith Wall. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159250 13f79535-47bb-0310-9956-ffa450edef68