summaryrefslogtreecommitdiff
path: root/java/client/src
Commit message (Collapse)AuthorAgeFilesLines
* The last checkin for this class was using a Java 1.6 specific method called ↵Rajith Muditha Attapattu2008-07-071-1/+1
| | | | | | | | | | isEmpty in the String class. This fails the build in Java 1.5. I modified it to use str.length == 0 which has the same effect. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674389 13f79535-47bb-0310-9956-ffa450edef68
* Qpid-940 - ConnectionTest#testPasswordFailureConnection fails occasionally ↵Martin Ritchie2008-07-042-49/+73
| | | | | | | | | | so while these race conditions are addressed I've converted the ConnectionTest to QpidTestCase and use it to skip the PasswordFailureConnection. junit.framework.AssertionFailedError: No cause set at org.apache.qpid.test.unit.client.connection.ConnectionTest.testPasswordFailureConnection(ConnectionTest.java:145) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-962 Exception handling was... unpleasing... Fix up of patch from rhsAidan Skinner2008-07-036-57/+67
| | | | | | | | | | | | | | | | AMQConnection.java: Refactor listener and stack exceptions in a list. Add get lastException, which can now be any Exception. Don't set connected, let the delegate decide. AMQConnectionDelegate_8_0.java, AMQConnectionDelete_0_10.java: set _connected to true if we suceed AMQProtocolHandler.java: attainState can now throw any sort of Exception AMQStateManager.java: attainState can now throw any Exception ConnectionTest.java: check that exception cause is not null AMQConnectionFailureException.java: Add ability to store a Collection of Exceptions in case there are multiple possible causes of the failure. Which there shouldn't be, but it can happen. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673688 13f79535-47bb-0310-9956-ffa450edef68
* Revert "QPID-962 Exception handling was... unpleasing... Fix up of patch ↵Aidan Skinner2008-07-025-62/+55
| | | | | | | | from rhs" This reverts commit 673343. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673401 13f79535-47bb-0310-9956-ffa450edef68
* QPID-960 remember to rename classAidan Skinner2008-07-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673351 13f79535-47bb-0310-9956-ffa450edef68
* QPID-960 copy delegate properlyAidan Skinner2008-07-021-0/+234
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673350 13f79535-47bb-0310-9956-ffa450edef68
* QPID-960 make protocol negotiation work from 0-10 down to 0-9 and then 8-0Aidan Skinner2008-07-023-235/+33
| | | | | | | | | | still needs love to do with railover, see QPID-959 AMQConnection.java: use 8_0 delegate for in-vm tests AMQConnectionDelegate_0_9.java: add subclass for class.forname'ing rename AMQConnectionDelegate_0_8.java to AMQConnectionDelegate_8_0.java to match protocol version properly git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-962 Exception handling was... unpleasing... Fix up of patch from rhsAidan Skinner2008-07-025-55/+62
| | | | | | | | | | | | | | AMQConnection: Refactor listener and remove list, we're only interested in the most recent one anyway. Add get/set for lastException, which can now be any Exception AMQConnectionDelegate_0_8.java: Stop masking/stackign exceptions, just throw them. AMQProtocolHandler.java: attainState can now throw any sort of Exception AMQStateManager.java: attainState can now throw any Exception ConnectionTest.java: check that exception cause is not null git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673343 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1163: Moved message ack in pre-deliver methodArnaud Simon2008-07-012-14/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673074 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1084 : Applying patch previously applied to M2.xRobert Godfrey2008-07-011-9/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1159: remove @Override tagsAidan Skinner2008-06-301-130/+109
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@672763 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1112: Changed addDeliveredMessage so to avoid division by 0 error when ↵Arnaud Simon2008-06-261-3/+4
| | | | | | max pre-fetch=1 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671887 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 QPID-999 : Merge Changes to the client to make the dispatcher ↵Aidan Skinner2008-06-263-3/+231
| | | | | | responsible for closing the queue browser when all the messages have been processed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671845 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1112: Changed addDeliveredMessage so to avoid division by 0 error when ↵Arnaud Simon2008-06-261-1/+1
| | | | | | messages are not pre-fetched git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671825 13f79535-47bb-0310-9956-ffa450edef68
* QPID-551 Don't take arbitrary stack lengths. I really hate that we sublist ↵Aidan Skinner2008-06-251-1/+2
| | | | | | at all, it's gross. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1112: send completed every maxPrefetch / 2 instead of after every ↵Arnaud Simon2008-06-201-1/+1
| | | | | | messages once maxPrefetch / 2 has been reached git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@669917 13f79535-47bb-0310-9956-ffa450edef68
* QPID-950 : Broker refactoring, copied / merged from branchRobert Godfrey2008-06-194-11/+79
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@669431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1139: use RFC1982 comparisons for rollback mark and update rollback ↵Rafael H. Schloming2008-06-164-12/+38
| | | | | | mark to track dispatched messages git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@668311 13f79535-47bb-0310-9956-ffa450edef68
* Qpid-1130: don't store unack message tags when the session is transactedArnaud Simon2008-06-101-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@666296 13f79535-47bb-0310-9956-ffa450edef68
* QPID-901: always reset the auto-sync mode even if the call failsRafael H. Schloming2008-06-092-9/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@665841 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1126: reuse channel numbers for sessions that have closed, and honor ↵Rafael H. Schloming2008-06-073-162/+27
| | | | | | the negotiated channel-max; also removed unnecessary catches that were swallowing stack traces from several tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@664339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1124 : Use thread-safe map for messageListenersRobert Godfrey2008-06-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@664153 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1124 : Use thread-safe map for messageListenersRobert Godfrey2008-06-061-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@664129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1062: use sync flag instead of sync command on tx commitArnaud Simon2008-06-061-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663874 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1062: merge writes of separate frames within an assembly, use sync flag ↵Rafael H. Schloming2008-06-062-8/+18
| | | | | | instead of sync command on message transfer git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1116: fixed a race condition in connection/session close, session close ↵Rafael H. Schloming2008-06-054-4/+6
| | | | | | now waits for the session to be detached before returning, this guarantees we won't have any active sessions when the connection close is attempted git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1123: Added a timeout (threading issue is still to be fixed)Arnaud Simon2008-06-051-4/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663507 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1120: don't reset batch size as part of the messages are not accepted ↵Arnaud Simon2008-06-041-1/+0
| | | | | | and then still available. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1120: Changed addDeliveredMessage and commit so session.completed is ↵Arnaud Simon2008-06-042-15/+52
| | | | | | sent before credits dry up git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663124 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1112: Update previous commit by re-using messageAcknowledge (added a ↵Arnaud Simon2008-06-035-46/+22
| | | | | | flag specifying whether to send an messageAccept) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662827 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1115: Only generate client ID when necessaryArnaud Simon2008-06-033-38/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662755 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1112: Added sessionCompleted support and changed onMessage for invoking ↵Arnaud Simon2008-06-034-3/+42
| | | | | | sessionCompleted when all expected messages have been received. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662665 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1110: use pre-acquire mode when message selector is the empty stringArnaud Simon2008-06-021-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662397 13f79535-47bb-0310-9956-ffa450edef68
* QPID-754: changed prop nameArnaud Simon2008-05-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@661633 13f79535-47bb-0310-9956-ffa450edef68
* This check in is for QPID-1102.Rajith Muditha Attapattu2008-05-301-13/+42
| | | | | | | | | IoHandler and IoSender uses the java.io classes for IO operations and have shown very good improvement in latency and memory usage over MINA. For certain tests with pub/sub it gives a 2X improvement in throughput. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@661561 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1094: added finally close for cleaning potential indoubt txArnaud Simon2008-05-291-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@661267 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1094 and QPID-1095: Updated XaResource for handling wrong flag value, ↵Arnaud Simon2008-05-284-36/+68
| | | | | | updated xa tests for using correct flag values, excluded forget test as the current 0.10 broker does not implement forget. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660973 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1097: Those changes have been suggested by LanaArnaud Simon2008-05-284-181/+155
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660922 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1094: Implement XA resource exception handling and add corresponding testsArnaud Simon2008-05-285-181/+687
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660911 13f79535-47bb-0310-9956-ffa450edef68
* QPID-901: Track and report session exceptions, modified generator validate ↵Rafael H. Schloming2008-05-233-43/+11
| | | | | | values before trying to encode them. Also, moved createDurableSubscriber from AMQSession_0_10 -> AMQSession. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659631 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1089: Changed to use coountdownlatchArnaud Simon2008-05-233-25/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659477 13f79535-47bb-0310-9956-ffa450edef68
* Made Range, RangeSet, and Session all use proper RFC1982 comparisons per ↵Rafael H. Schloming2008-05-228-16/+16
| | | | | | QPID-861. Also switched command ids from long -> int, and added a mutex to channel to prevent multi-frame commands from interleaving when invoked from separate threads. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659271 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1079: Updated ...test.client tests for using QpidTestCase + move ↵Arnaud Simon2008-05-221-0/+10
| | | | | | QpidTestCase in main so it is visible form systests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659163 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1085: If an error occurs creating a durable subscriber with a selector ↵Aidan Skinner2008-05-223-17/+106
| | | | | | delete the queue that was created. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659105 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1079: Updated ...test.client tests for using QpidTestCaseArnaud Simon2008-05-221-13/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@659083 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1053: add a timeout in case the broker is never readyRafael H. Schloming2008-05-131-4/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655964 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1053: updated QpidTestCase to check against broker output to ensure the ↵Rafael H. Schloming2008-05-131-9/+47
| | | | | | broker is actually listening before the test attempts to connect; the text checked for is controlled by the broker.ready system property, appropriate values have been added to the cpp profiles git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655927 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1025: updated fix for empty payload issue, this change removes state ↵Rafael H. Schloming2008-05-121-2/+2
| | | | | | transitions that don't consume input bytes git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655585 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1030: This solves the issue for the 0.10 code pathArnaud Simon2008-05-061-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1008: allow for case where 0-10 message-properties are not included in ↵Gordon Sim2008-05-051-1/+4
| | | | | | a received message git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653508 13f79535-47bb-0310-9956-ffa450edef68