summaryrefslogtreecommitdiff
path: root/qpid/java/client
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA added consumer.close() and producer.close() to Drain and Spout.Rajith Muditha Attapattu2012-12-052-1/+2
| | | | | | | | | | This allows proper demonstration of the delete keyword in addressing. Allthough session.close() does call consumer and producer close, the session is marked closed, thereby preventing the qeueue or exchange delete being sent. This is a safety mechanism to prevent a deadlock situation in the client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1417692 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4473: Resolve 'stream might not be closed' issue reported by findbugs ↵Alex Rudyy2012-11-261-1/+8
| | | | | | tool in JMSObjectMessage git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2796 : Added Java system test for heartbeatingRobert Godfrey2012-11-269-131/+86
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413539 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2796 : Implement hearbeating in Java Broker (all protocol versions) and ↵Robert Godfrey2012-11-253-2/+24
| | | | | | Java Client (0-8/9/9-1 path) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4468: restore connection level ssl option to provide compatibility with ↵Robert Gemmell2012-11-255-3/+98
| | | | | | older client configuration, add ability to override brokerlist ssl option git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4469: remove the unused sslContext parameter in ↵Robert Gemmell2012-11-251-23/+1
| | | | | | OutgoingNetworkTransport#connect() and cleanup associated dead code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413363 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4377: Update trunk versions to 0.21Justin Ross2012-11-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1411381 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4289, QPID-4344: restore catching of TransportExceptions when trying to ↵Robert Gemmell2012-11-032-7/+29
| | | | | | | | | close the sender in CCMH. Add TransportException to the 'connection problem' types, and catch any exceptions when trying to close the network connection as a result. Patch from Philip Harvey <phil@philharveyonline.com> plus some additional modifications of my own. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1405354 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4389: Send the selector of durable subscriber in arguments of ↵Alex Rudyy2012-10-241-7/+12
| | | | | | ExchangeBind command git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401515 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3317 Modified the code to implement correct behavior for linkRajith Muditha Attapattu2012-10-1214-341/+589
| | | | | | | | | bindings. Added unit tests for Address Helper and two specific test cases for verifying link behavior (bindings and customization of subscription queues). Review request : https://reviews.apache.org/r/7412/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397651 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4335, QPID-4353: Refactored broker plugins to use simplified ↵Robert Gemmell2012-10-121-1/+1
| | | | | | | | | | | | | | | | ServiceLoader-based model rather than embedding Felix to use OSGi. Removed the ability to reload security configuration because this feature is not very useful in its current form and was making our code hard to refactor. Modified all tests to use jars rather than classes. This makes them closer to real-world deployments, e.g. the META-INF/services file is read from within the jar. Also moved various system tests from their respective modules into "systests". This removes the need for most modules to depend on systests, thus simplifying our dependency graph. Applied patch from myself, Keith Wall and Phil Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4352: fix break in ConnectionFactory following SSL truststore/keystore ↵Robert Gemmell2012-10-021-1/+1
| | | | | | | | | password masking in URL toString(). Makes SSLTest use a ConnectionFactory instead of instantiating AMQConnections directly, exposing this issue. Replaces horrible use of an AMQConnectionURL objects in MultipleBrokersFailoverTest and FailoverBehaviourTest (which both broke after this fix) with fully string-generated connection strings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1393034 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4352: Java client logs key_store_password/trust_store_password at debugKeith Wall2012-09-293-45/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391916 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3906 Fixed an error with the default. Added unit tests for testingRajith Muditha Attapattu2012-09-283-4/+31
| | | | | | StreamMessage encoding defaults. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3906 Switched the default to legacy stream message format.Rajith Muditha Attapattu2012-09-283-15/+155
| | | | | | | Allows the lists to contain elements of different types. Added a set of unit tests in place of the system tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3906 List Message support for JMS.Rajith Muditha Attapattu2012-09-2811-10/+1286
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391565 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4146 Applying patch attached by Pavel Moravec with modifications.Rajith Muditha Attapattu2012-09-251-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1389991 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4277 The address handling code is now using the auto-deleteRajith Muditha Attapattu2012-09-211-1/+1
| | | | | | property when declaring the exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388650 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4340 The durable parameter from the address string is now used whenRajith Muditha Attapattu2012-09-211-1/+3
| | | | | | declaring the exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1388642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4302: 0-8..0-9-1 client should sync after message.acknowledge()Keith Wall2012-09-132-10/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1384512 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4296: Push down 0-8..0-9-1 flow control implementation to ↵Keith Wall2012-09-113-79/+94
| | | | | | | | | | | | | AMQSession_0_8 (refactoring) Move method impls. isFlowBlocked(), setFlowBlocked() and checkFlowBlocked() and their associated fields down to AMQSession_0_8. On 0-10, isFlowBlocked() was already overridden to delegate to the 0-10 transport layer. The operation setFlowBlocked() makes no sense to 0-10, so will be implemented to throw UnsupportedOperationException. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1383638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4289: Fix 0-8/0-9/0-9-1 failover issuesRobert Gemmell2012-09-105-49/+91
| | | | | | Applied patch from Philip Harvey <phil@philharveyonline.com> and Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1382799 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4261: extend BindingURLs to allow specifying exchange ↵Robert Gemmell2012-09-0115-224/+310
| | | | | | | | | durable/autodelete/internal options, use the values when sending exchange declares during producer and consumer creation. Fix ExchangeDeclareHandler to set auto-delete properly (though we dont actually support it, and it was removed from the protocol in 0-9-1). Isolate AMQProtocolHandler use to the 0-8/0-9/0-9-1 specific Session/Producer/Consumer implementations that actually need it instead of letting it bleed through the abstraction and 0-10 implementations that dont use it. Add some other clarifying comments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1379748 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4250: ensure producer creation on 0-8/0-9/0-9-1 connections respects ↵Robert Gemmell2012-08-262-10/+9
| | | | | | the qpid.declare_exchanges system property. Add systest to highlight the issue and verify the fix. Add constants for the system properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1377521 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove unused client/test folderRobert Gemmell2012-08-1424-879/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1372769 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4051: use the connecttimeout option value from the BrokerDetails object ↵Robert Gemmell2012-08-123-12/+29
| | | | | | to control the connect() timeout via the produced ConnectionSettings object git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1372147 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3575 Changed the name of the system prop toRajith Muditha Attapattu2012-07-301-9/+12
| | | | | | | "qpid.session.legacy_exception_behaviour". The system prop will now restore the old behavior. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1367241 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3575Rajith Muditha Attapattu2012-07-161-2/+3
| | | | | | | | The added a system prop to revert to the previous behavior if need be. Modified the SelectorTest#testRuntimeSelectorError test case to suit the new behavior. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362162 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3575 SessionExceptions (0-10 code path) are now marked as softRajith Muditha Attapattu2012-07-162-11/+29
| | | | | | | | | errors. When a Session receives an exception it is closed and the exception is notified via the ConnectionListener as well. However the exception is marked as a soft-error, therefore the connection will not be closed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1362161 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4111: Move trunk version numbers to 0.19Justin Ross2012-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1359235 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add missing Apache licenses to Java source files; correct ↵Keith Wall2012-07-0211-30/+30
| | | | | | positioning of the license wrt to the package statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1356257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4090: Bug fix: allow Java client to make connections to Java Broker ↵Keith Wall2012-06-302-3/+93
| | | | | | using CRAM-MD5-HASHED mechanism. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1355775 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4034: XASessionImpl should override resubscribe() for correct XAWeston M. Price2012-06-111-5/+10
| | | | | | | | failover behavior *Implemented resubscribe() in XASessionImpl *Minor cleanup, fixed typos etc git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1348825 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971: minor cleanup to remove unused variable and stop logging null ↵Robert Gemmell2012-06-041-4/+1
| | | | | | when no provider URL is set as this case is later logged explicitly and more clearly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346171 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4039: move some implementation-detail log statements on the ↵Robert Gemmell2012-06-042-3/+6
| | | | | | 0-8/0-9/0-9-1 path from info to debug to reduce verbosity and/or user confusion git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346170 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4038: log the Connection number and its local and remote addresses ↵Robert Gemmell2012-06-043-3/+12
| | | | | | after each [re]connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346169 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4033: remove 'Channel' from the name as it is somewhat redundantRobert Gemmell2012-05-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1344677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4033: update the Dispatcher thread name to include a connection id to ↵Robert Gemmell2012-05-312-6/+19
| | | | | | ease identifying work for individual sessions on different connections during log analysis git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1344632 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3986, QPID-4009, QPID-4017: add constants for system ↵Robert Gemmell2012-05-292-7/+9
| | | | | | | | properties/defaults. Update default values for flow control timeouts to be consistent between 0-8/9/9-1 and 0-10 client paths (60sec). Increase the 'failover method timeout' for 0-8/9/9-1 client path to 120sec. Update documentation accordingly. Work by Philip Harvey <phil@philharveyonline.com> and myself, based on review feedback. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343680 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4017: reset the session flow control blocked status during failover.Robert Gemmell2012-05-291-0/+7
| | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343678 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4009: Make failover method invocation timeout configurable for ↵Robert Gemmell2012-05-291-1/+1
| | | | | | | | 0-8/0-9/0-9-1 amqp clients Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3986: Improved tests and resolved some potential thread-safety issuesRobert Gemmell2012-05-292-4/+5
| | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343675 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4023: restore connection URL setter, add check that URL details have ↵Robert Gemmell2012-05-282-6/+34
| | | | | | been set before calling connect(), add unit+sys test to verify operation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343220 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3973 : [Java] Add support for non JKS key store types (patch supplied ↵Robert Godfrey2012-05-181-0/+2
| | | | | | by jsightle@redhat.com) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1340191 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3990:Weston M. Price2012-05-141-4/+5
| | | | | | *Fixed inefficient and unnecessary log entry in XAResourceImpl.javal git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338369 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3990: Multiple XAResources isSameRM behaviorWeston M. Price2012-05-142-28/+102
| | | | | | | | | *Track XAResource siblings in start/end methods *Added AMQXAResource interface *Added systemtest for new XAResource behavior *Refactored XAResourceTest to extend AbstractXATest git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1338355 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3994: trivial changes to the build.xml files to aid people regenerating ↵Robert Gemmell2012-05-131-0/+1
| | | | | | their Eclipse project files using Ant Eclipse following the Ivy related changes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337925 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971: resolve CI failure (hopefully), make misc test improvementsRobert Gemmell2012-05-132-69/+58
| | | | | | | | | | | - Use File.createTempFile to target the tmp dir, hopefully resolving the CI failure, ensure it is deleted even if the test subsequently fails. - Use QpidTestCase system property handling, ensuring modified properties are unset/restored to prior values following the test. - Move the properties used in the test internally as opposed to loading from another file. - Verify the values returned from the loaded Context are as expected an not only non-null. - Remove unused imports, fields. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971:PropertiesFileInitialContextFactory cannot open file URIWeston M. Price2012-05-131-1/+0
| | | | | | | | *Fixed issue with unit test and temp file *Cleaned up PropertiesFileInitialContext getInitialContext() method git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337830 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3994: add support for optionally retrieving FindBugs using IvyWeston M. Price2012-05-132-35/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337829 13f79535-47bb-0310-9956-ffa450edef68