summaryrefslogtreecommitdiff
path: root/java/client/src/main
Commit message (Collapse)AuthorAgeFilesLines
* QPID-714 : (Patch from Aidan Skinner) Issue with competing, ↵Robert Godfrey2007-12-202-31/+5
| | | | | | | | transactional/client-ack consumers Ack each individual message on commit, not use multiple acks git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@606015 13f79535-47bb-0310-9956-ffa450edef68
* Multi threaded io commented out until all issues with it are resolved.Rupert Smith2007-12-181-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@605217 13f79535-47bb-0310-9956-ffa450edef68
* DUPS_OK mode set to be same as AUTO_ACK, fixed broken dups ok test.Rupert Smith2007-12-171-9/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@604928 13f79535-47bb-0310-9956-ffa450edef68
* QPID-707 : Added new test to check message count on broker as messages are ↵Martin Ritchie2007-12-142-18/+27
| | | | | | | | consumed to ensure that an ack is sent at 5000 mgs. Added acks on message consumer closure. Augmented VMTestCase to have helper methods for accessing broker statistics. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@604151 13f79535-47bb-0310-9956-ffa450edef68
* Update to disable ProtectIO by default.Martin Ritchie2007-12-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@602082 13f79535-47bb-0310-9956-ffa450edef68
* Removed JMSXUserID as it appears the new mina is conflicting.Martin Ritchie2007-12-072-13/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@602066 13f79535-47bb-0310-9956-ffa450edef68
* Mina Fix: Vm Pipe Starts Connection session before acceptor session. This ↵Martin Ritchie2007-11-291-6/+3
| | | | | | results in protocol frames arriving before the protocol decoder has been configured on the InVM Broker. Verification of this could be done by adding a client side filter that delays the first message by a few seconds. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@599572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-679 : Patch provided by Aidan Skinner and additional from odd problems ↵Martin Ritchie2007-11-284-26/+85
| | | | | | | | | | | | | | | | | | | | during test runs. AMQChannel - Catch and log AMQException occuring when requeue()-ing. Previously exceptions wouldn't be caught at all. The requeue() is called during closure so there is nothing we can do protocol wise on error other than log the issue and continue with any other shutdown that is needed. AMQMinaProtocolSession & AMQPFastProtocolHandler . Additions to catch and log AMQExceptions. Changes to AMQMinaProtocolSession were done to ignore all input on a closing session other than the close-ok. Previously only Protocol frames were ignored this resulted in Content*Body-s still being processed. Additional checks were made for the MessageStoreClosedException to log and continue. As said else were we need to seperate protocol exceptoions(AMQException) from internal code exception handling. Further All AMQExceptions occuring in the frameReceived method are now caught and logged. Allowing them to propogate higher will only result in thread death. AMQPFastProtocolHandler Caught AMQExceptions occuring whilst closing the session. Again allowing these to continue will result in thread death. There is not a lot that can be done other than log the problem as the session is already closed by this point. Prevented the stacktrace associated with a session exception being printed in the exceptionCaught method when the problem was an IO Exception. This doesn't add anything useful and only adds to the log file sizes. ApplicationRegistry - Added removeAll option which ensures that all ARs are correctly purged so that we can attempt to clean up between Unit Tests. MemoryMessageStore - This was causing us real problems during the failover testing. Similar checks should probably be made to any other Message Store Impl. The issue was that when shutting down the broker the MS.close() method is called this sets all the storage to null. However, there may still be message processing going on as the close() does not attempt to stop connection processing. Hence we now check to see if the Store is close throwing a MSClosedException if required. This prevents NPEs that have been seen during Unit failover testing. In fact the close() is called as a request to shutdown the ApplicationRegistry, but this only occurs from tests and broker shutdown, no attempt to unbind or prevent further connections during this period is yet done. CLIENT CHANGES AMQConnection - Added method to check if failover is in progress. AMQClient - Upgraded acknowledge() exception to JMSException for errors due to failover. Also , added call to update consumers as a result of failover. BasicMessageConsumer - Changes to acquireReceiving to take in to consideration blocking for failover to occur. wrt receiveNoWait.. which previously blocked for failover to complete... not exactly noWait. acknowledge will now TransportConnection - Update to ensure all inVM brokers are correctly killed. FailoverTest - QPID-679 - Finder of all the above problems. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598834 13f79535-47bb-0310-9956-ffa450edef68
* QPID-621 : Patch Supplied by Aidan Skinner. Msg Ack after msg consumer is ↵Martin Ritchie2007-11-272-2/+45
| | | | | | closed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598721 13f79535-47bb-0310-9956-ffa450edef68
* Renamed POMs to M2.1.1 Removed erroneous equals() in ↵Martin Ritchie2007-11-272-27/+0
| | | | | | SpecificMethodFrameListenerTest git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598619 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 598106-598232,598234-598286,598288-598323,598325-598361 via ↵Martin Ritchie2007-11-263-42/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1 ........ r598337 | ritchiem | 2007-11-26 16:33:06 +0000 (Mon, 26 Nov 2007) | 1 line Last commit accidentally caught my failover change that wasn't complete. ........ r598352 | rupertlssmith | 2007-11-26 17:17:48 +0000 (Mon, 26 Nov 2007) | 1 line May have broken build with tktest plugin mojo, commented out until fixed. ........ r598357 | rupertlssmith | 2007-11-26 17:33:14 +0000 (Mon, 26 Nov 2007) | 1 line Fixed broken plugin. ........ r598360 | ritchiem | 2007-11-26 17:49:05 +0000 (Mon, 26 Nov 2007) | 1 line QPID-690 : Missing Test and code update. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598363 13f79535-47bb-0310-9956-ffa450edef68
* QPID-92, QPID-564 : Upgraded Mina to 1.0.1 still not good enough but all ↵Martin Ritchie2007-11-262-38/+72
| | | | | | future versions currently have a bug with the CumulativeProtocolDecoder. It compact()s the buffer which breaks slices. Added MultiThread Support which is some of the feature set of QPID-564 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1.1@598285 13f79535-47bb-0310-9956-ffa450edef68
* QPID-160 Addition of JMSXUserID to all messages through the java broker.Martin Ritchie2007-11-072-10/+25
| | | | | | | | As this will cause the headers to be re-encoded it can be disabled in the config.xml. Default is enabled as the sample config.xml should have all features enabled so that testing can observe the interactions. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592729 13f79535-47bb-0310-9956-ffa450edef68
* QPID-662 Transactional state not correctly reported after fail over. We now ↵Martin Ritchie2007-11-066-156/+301
| | | | | | | | record if we have sent any messages from here we can check if we have failed over and so have lost messages from the transaction making it invalid. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592374 13f79535-47bb-0310-9956-ffa450edef68
* QPID-663 Messages fail to be received after fail over. This is due to the ↵Martin Ritchie2007-11-061-10/+8
| | | | | | old protocol session being reinstated after fail over. The new protocol session needs to be set in the StateManager as this maintains its own reference which is not being updated hence messages are being lost. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-654 : added a shutdownNow() call if the _taskPool hasn't terminiated by ↵Martin Ritchie2007-10-191-1/+11
| | | | | | the time we have finished closing. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@586374 13f79535-47bb-0310-9956-ffa450edef68
* QPID-637 : Patch provided by Aidan Skinner to ensure correct behaviour of ↵Martin Ritchie2007-10-182-127/+110
| | | | | | session closure. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@585912 13f79535-47bb-0310-9956-ffa450edef68
* QPID-637 Patch submitted by Aidan Skinner to address receive not waiting for ↵Martin Ritchie2007-10-111-10/+31
| | | | | | full timeout. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583882 13f79535-47bb-0310-9956-ffa450edef68
* QPID-635 Added a unit test and implemented the equals() method on ↵Martin Ritchie2007-10-112-0/+31
| | | | | | BlockingMethodFrameListener and SpecificMethodFrameListener. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583775 13f79535-47bb-0310-9956-ffa450edef68
* Qpid-626 : Patch provided by Aidan Skinner to address AMQSession Deadlocks.Martin Ritchie2007-10-091-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583147 13f79535-47bb-0310-9956-ffa450edef68
* Update to provide a UUID.randomUUID() when getLocalHost() throws an ↵Martin Ritchie2007-10-091-7/+14
| | | | | | | | UnknownHostException. Update to formatting git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@583086 13f79535-47bb-0310-9956-ffa450edef68
* QPID-551 : Patch provided by Aidan Skinner to address problems in info ↵Martin Ritchie2007-10-052-9/+11
| | | | | | logging when stacktraces are short. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@582266 13f79535-47bb-0310-9956-ffa450edef68
* QPID-624: Update to ensure all errors are correctly processed in ↵Martin Ritchie2007-10-051-23/+61
| | | | | | BlockingMethodFrameListener.java git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@582201 13f79535-47bb-0310-9956-ffa450edef68
* QPID-614 : Applied supplementary patch from Aidan Skinner.Martin Ritchie2007-10-031-20/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@581627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-584 : Fixed issue where ALL errors are presented to client as a ↵Martin Ritchie2007-10-031-1/+1
| | | | | | connection closing error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@581621 13f79535-47bb-0310-9956-ffa450edef68
* QPID-617 : Transactional consume does not ack messages.Martin Ritchie2007-10-031-15/+19
| | | | | | Problem is that we were not classing msgs as consumed until onMessage completed in the transactional case. This patch corrects that. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@581540 13f79535-47bb-0310-9956-ffa450edef68
* QPID-614 : Applied patch supplied by Aidan SkinnerRobert Godfrey2007-10-021-28/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@581189 13f79535-47bb-0310-9956-ffa450edef68
* Updated TransportConnection to synchronize around the creation/destruction ↵Martin Ritchie2007-09-261-65/+73
| | | | | | | | | | of VM Brokers. I had observed a ConcurrentModificationException in the KillAllVMBrokers(). This isn't good this suggests that the tests are overlapping. This fix won't address that problem but will stop any CModifications occuring. If there is test setup/teardown overlapping we should now see tests failing because the VM broker isn't there. Potentially addresses VM issues in QPID-596 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@579577 13f79535-47bb-0310-9956-ffa450edef68
* QPID-612 : Use same scheme for every creation of temporary queue namesRobert Godfrey2007-09-242-8/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@578845 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions ↵Rupert Smith2007-09-243-62/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 575663-575687,575689-576860,576862-577192,577194-577315,577317-577659,577661-578047,578049-578060,578062-578604 via svnmerge from https://svn.apache.org/repos/asf/incubator/qpid/branches/M2 ........ r575663 | rgodfrey | 2007-09-14 13:43:13 +0100 (Fri, 14 Sep 2007) | 1 line QPID-600 : Deadlock on connection.close ........ r577931 | rgreig | 2007-09-20 22:26:37 +0100 (Thu, 20 Sep 2007) | 1 line Adding timeouts to two wait() calls to prevent hanging ........ r578258 | rgreig | 2007-09-21 21:31:18 +0100 (Fri, 21 Sep 2007) | 1 line QPID-607: dispatcher threads now poll so that the can die when the connection is closed. ........ r578475 | rgreig | 2007-09-22 20:01:59 +0100 (Sat, 22 Sep 2007) | 1 line QPID-608 Fix the test by adding in creation of the VM broker ........ r578509 | rgreig | 2007-09-22 23:05:30 +0100 (Sat, 22 Sep 2007) | 1 line QPID-609 : dispatcher thread was being restarted by the code that closed the consumer due to the receipt of a basic.cancel frame. Move the dispatcher shutdown to the end of the consumer close process. Also rename the dispatcher _closed field since it clashes with a field in the container class. ........ r578604 | rgreig | 2007-09-23 22:29:33 +0100 (Sun, 23 Sep 2007) | 4 lines QPID-589: avoid the deadlock between the session close and the BasicCancelOkHandler by not sending a BasicCancel when the session is being closed. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@578745 13f79535-47bb-0310-9956-ffa450edef68
* Attempt to fix hanging builds due to client testsRobert Greig2007-09-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@577941 13f79535-47bb-0310-9956-ffa450edef68
* Merged revision 572751 from the trunk, this fixes QPID-573.Rafael H. Schloming2007-09-141-7/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@575788 13f79535-47bb-0310-9956-ffa450edef68
* QPID-590 : Provide test case and resolution to prevent deadlock occurring on ↵Martin Ritchie2007-09-112-277/+279
| | | | | | the client when two threads work on the AMQSession object. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@574555 13f79535-47bb-0310-9956-ffa450edef68
* QPID-584 : Client exceptions are now presented via any set Exception Listener Martin Ritchie2007-09-102-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@574266 13f79535-47bb-0310-9956-ffa450edef68
* QPID-585 : Created a new StateManager for each subsequent ↵Martin Ritchie2007-09-102-1/+10
| | | | | | makeBrokerConnection call during the initial connection. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@574237 13f79535-47bb-0310-9956-ffa450edef68
* QPID-547 : Stop session closure while in message dispatchRobert Godfrey2007-08-101-1/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@564593 13f79535-47bb-0310-9956-ffa450edef68
* Added a logger but only used to control the toString inclusion of password. ↵Martin Ritchie2007-07-201-10/+21
| | | | | | If in debug mode it will include password otherwise the password is "********". git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@558027 13f79535-47bb-0310-9956-ffa450edef68
* Update fix incorrect license headers.Martin Ritchie2007-07-182-22/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@557306 13f79535-47bb-0310-9956-ffa450edef68
* Added additional information to hard-error logging in exceptionReceived.Martin Ritchie2007-07-171-4/+13
| | | | | | Fully expanded imports git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556872 13f79535-47bb-0310-9956-ffa450edef68
* added public void declareAndBind(AMQDestination amqd)Arnaud Simon2007-06-271-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@551167 13f79535-47bb-0310-9956-ffa450edef68
* Added additional information to log message when available to aid the ↵Martin Ritchie2007-06-271-32/+39
| | | | | | explination of a failed connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@551121 13f79535-47bb-0310-9956-ffa450edef68
* changed setText to use UTF8 as default encoder Arnaud Simon2007-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@549112 13f79535-47bb-0310-9956-ffa450edef68
* Various License header updates.Martin Ritchie2007-06-187-0/+147
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@548276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-511 adjusted to use the ReadWriteThreadModel rather than setting ↵Martin Ritchie2007-06-151-5/+3
| | | | | | editing the filterChain directly which could cause problems when using an InVM transport due to the way the InVM transport alters the filter chain during a connect call. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@547627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-465, now throws UnsupportedOperationException when sending to a null ↵Rupert Smith2007-06-121-9/+20
| | | | | | queue in QueueSender. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@546441 13f79535-47bb-0310-9956-ffa450edef68
* Removed log4j dependency from client. Using slf4j instead, end-user to ↵Rupert Smith2007-06-1144-698/+795
| | | | | | supply logging implementation as desired. Log4j used for tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@546190 13f79535-47bb-0310-9956-ffa450edef68
* QPID-402: FailoverException falling through to client. All blocking ↵Rupert Smith2007-06-0114-2043/+2735
| | | | | | operations now wrapped in failover support wrappers. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@543496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-482 : Small performance tweaksRobert Godfrey2007-05-242-15/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@541247 13f79535-47bb-0310-9956-ffa450edef68
* Documented all exception.Rupert Smith2007-05-2111-28/+77
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@540107 13f79535-47bb-0310-9956-ffa450edef68
* QPID-466 Removed Unsupported exception from setIntProperty with STRICT_AMQP setMartin Ritchie2007-05-151-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@538084 13f79535-47bb-0310-9956-ffa450edef68