summaryrefslogtreecommitdiff
path: root/qpid/java/client
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3158 - Defect in the CRAM-MD5-HEX mechanism - CRAMMD5HexInitialiser ↵Robert Gemmell2011-03-311-3/+4
| | | | | | | | fails to pad bytes in range 0A-0F with leading zero. Add testcase to test CRAM-MD5-HEX mechanism. Guard against nulls in SASL SaslServerFactory.getMechanismNames implementations to avoid dependency on mechanism registration order. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1087250 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3167: add a unit test of SimpleAMQQueue#processQueue to check delivery ↵Robert Gemmell2011-03-303-3/+3
| | | | | | when subscriptions with unique selectors are in use git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1087001 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1830: backport fix from trunkAndrew Donald Kennedy2011-02-102-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1069472 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2971: add system property to allow overriding disabling of MaxDelivery ↵Robert Gemmell2010-12-202-2/+8
| | | | | | for autodelete queues git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1051113 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2980: add additional check to testRobert Gemmell2010-12-201-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1051048 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2971: prevent usage on autodelete queues, mirroring broker side ↵Robert Gemmell2010-12-201-1/+1
| | | | | | behaviour for DLQs git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1051047 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2980: expose the delivery count as a propertyRobert Gemmell2010-12-1511-29/+155
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1049624 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2971: impose a minimum on the default record count, to allow for cases ↵Robert Gemmell2010-12-101-1/+1
| | | | | | where pretech is very small git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1044385 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2972: client configuration for Max Delivery CountRobert Gemmell2010-12-0710-107/+424
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1042998 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2971 - onMessage/recieve + recover/rollback handling of Max Delivery ↵Robert Gemmell2010-12-076-126/+584
| | | | | | Count for 0-8/0-9 consumers git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1042997 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2886: Fix issue identified by running FindBugs across the codebase. ↵Robert Gemmell2010-09-301-19/+22
| | | | | | Release lock before sleeping. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1002994 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2886: close the input stream used when loading properties files for ↵Robert Gemmell2010-09-291-1/+10
| | | | | | JNDI lookups git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1002676 13f79535-47bb-0310-9956-ffa450edef68
* remove old/unsupported amqpexample packageRobert Gemmell2010-09-2914-1164/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1002527 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2886: correct issues highlighted by running FindBugs across the codebase.Robert Gemmell2010-09-2712-44/+60
| | | | | | | Applied patch from Sorin Suciu<ssuciu@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@1001790 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2697: Print AMQConnectionURL optionsAndrew Donald Kennedy2010-07-262-5/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@979210 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2694 Applying reviewed patches from Andrew Kennedy for client session leakMarnie McCormack2010-06-302-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@959212 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2418: Unsubscribe existing open durable subscriptions when changing ↵Robert Gemmell2010-04-014-218/+227
| | | | | | | | | subscription. Remove duplication in implementations. Applied patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@930023 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2465: Set javac includeantruntime property in build filesRobert Gemmell2010-03-291-1/+1
| | | | | | | Applying patch from Andrew Kennedy <andrew.international@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@928703 13f79535-47bb-0310-9956-ffa450edef68
* Add topic entry required by the MultiMessageDispatcher exampleRobert Gemmell2010-02-261-0/+1
| | | | | | | merged from trunk r916357 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@916694 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2347 broke some java tests; I believe these make incorrect assumptions ↵Robert Gemmell2010-02-261-0/+1
| | | | | | | | | about durable subscriptions and have changed them accordingly. merged from commit by gsim at trunk r902231 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@916687 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2346 : Addressed the problems with ↵Martin Ritchie2010-02-051-0/+6
| | | | | | AcknowledgeAfterFailoverOnMessageTest, The issues were the same as AckAfterFailoverTest. So used same prepBroker approach. Test also need timeout increased as broke restarts took to long for a message to be sent/received. Finally the last change was thatthe queue needed to be re-declared so that the final queue depth check would have a queue to query. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@907004 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2370 : Wrapped .debug statements as per review feedbackMartin Ritchie2010-02-021-6/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@905605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2370,QPID-1084 : Committed change to prevent flow control threads being ↵Martin Ritchie2010-02-021-15/+44
| | | | | | created/sent if the channel/session is closed or the state has acutally changed in the mean time. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@905596 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2321 : Updated conflation queue to use same argument names as C++ for ↵Robert Godfrey2010-01-172-8/+23
| | | | | | LVQ; added support for "browse only" consumers git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@900135 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2340 : Fix ProducerFlowControlTest to call a synchronous operation ↵Robert Godfrey2010-01-141-0/+4
| | | | | | between sends git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@899302 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2340 : Fix ProducerFlowControlTest to call a synchronous operation ↵Robert Godfrey2010-01-143-0/+12
| | | | | | between sends git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@899259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2242 : Update to 0-8 producer to set the JMS_QPID_DESTTYPE when sending ↵Martin Ritchie2009-12-081-1/+21
| | | | | | | | | | | | | | messages. This update required a change to the FieldTable to clear any _encodedBuffer when setting a new value Provided test in JMSDestintationTest. This test requires a broker that supports both 0-8/9 and 0-10 as we must first use a 0-10 connection to send a message, which does not set JMS_QPID_DESTTYPE, then receive the message on 0-8/9. This allows us to validate that messages recieved without JMS_QPID_DESTTYPE set will can correctly set the value without a BufferOverflow Exception when simply forwarding the message. merged from trunk r888345 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@888478 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2242 : Update to the 0-8/9 code path to use the 0-10 static lookup ↵Martin Ritchie2009-12-084-109/+211
| | | | | | | | | tables for the Destination type when JMS_QPID_DESTTYPE has not been set. merged from trunk r887994 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@888392 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2242 : Removed unused AMQMessagseDelegate_0_10 constructorMartin Ritchie2009-12-081-12/+0
| | | | | | | | merged from trunk r887951 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@888388 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2242 : Fixed 0-10 code path's getJMSDestination() updated ↵Martin Ritchie2009-12-082-1/+6
| | | | | | | | | | | | | | JMSDestinationTest to cover more test cases: - Recieving a msg via Queue,Topic - Recieving a msg via Queue with a MessageListener - Recieving a msg on a queue that was sent to a topic, requires JMX interface to perform message move. Merged from trunk r887948 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@888383 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2172: Don't failover if the client is closing the connection, check if ↵Robert Gemmell2009-11-264-26/+33
| | | | | | | | | connection is closed on send merge of r829414 from java-broker-010 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@884627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2172: merge r829575 from java-broker-010 branch, with updates to make ↵Robert Gemmell2009-11-261-1/+8
| | | | | | it applicable to AMQMinaProtocolSession git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@884621 13f79535-47bb-0310-9956-ffa450edef68
* Extension of publisher class for TopicsMartin Ritchie2009-10-281-0/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@830638 13f79535-47bb-0310-9956-ffa450edef68
* Fix for large files in FileMessageFactory, changes to Publisher to make ↵Martin Ritchie2009-10-283-13/+181
| | | | | | topic publication easier, added MultiMessageDispatcher class to allow parameterised sending of messages to a queue or a topic git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@830637 13f79535-47bb-0310-9956-ffa450edef68
* Update PropertiesFileInitialContextFactory to give more details on error.Martin Ritchie2009-10-282-37/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@830617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1859 - Converted System.out.println to _logger.info.Martin Ritchie2009-10-281-5/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@830594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : When client fails over due to an error, that error is still held ↵Martin Ritchie2009-10-282-0/+22
| | | | | | bt the StateManager and will prvent the connection from working. During failover check and see if the Connection had been marked closed if so remove any set exception. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@830592 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Simplified the connection by using the default URL and ↵Martin Ritchie2009-10-131-2/+10
| | | | | | | | configuring retry rather than using the default failover URL that has multiple brokers defined. Whilst this may not stop the test failing it will make the log files simpler. Updated FailoverHandler to ensure that any pending write is sync'd if possible. Also updated Test to perform a synchronous operation after the ack to ensure it arrives at the broker, QPID-2138 highlights that it doesn't get there due to what appears to be Mina propagating the exception ahead of the data. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@824704 13f79535-47bb-0310-9956-ffa450edef68
* Fix compiler compliance levels, not allowed @Override on interfaces in 1.5Aidan Skinner2009-10-113-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@824129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1440 : Code review changes from QPID-1289. All actioned except adding ↵Martin Ritchie2009-10-087-24/+53
| | | | | | new createConsumer() method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@823149 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1950 : Problem is that the thrown exception whilst an IOException does ↵Martin Ritchie2009-10-081-0/+11
| | | | | | not signify that the socket has closed. So the broker had two open connections to send messages on. Change was to ensure that the previous Socket/IOSession has been closed before failover starts. Also added protected to ChannelOpenHandler to guard against out of order frames causing a NPE. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@823087 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1816 : Add Acknowledge tests and QuickAcking manual test helper.Martin Ritchie2009-10-051-1/+12
| | | | | | Updated AcknowldegeAfterFailoverTest to correctly cover the failure cases. Sending messages on a dirty transaction and Receiveing messagges on a dirty session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821824 13f79535-47bb-0310-9956-ffa450edef68
* Fix for dirty sessions, start to test that sessions are dirty when required.Martin Ritchie2009-10-051-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821823 13f79535-47bb-0310-9956-ffa450edef68
* Updated BlockingWaiter to provided more details when a new exception arrives ↵Martin Ritchie2009-10-051-1/+1
| | | | | | and the old one has not been consumed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821817 13f79535-47bb-0310-9956-ffa450edef68
* QPID-942 : Add Simplistic Producer Flow Control to the java Broker / java ↵Robert Godfrey2009-10-012-7/+37
| | | | | | 0-8/0-9 client git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@820739 13f79535-47bb-0310-9956-ffa450edef68
* Improve error reporting when commit failedMartin Ritchie2009-09-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@819592 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1871 : Updated RollbackOrderTest to include an onMessage test. Fixed ↵Martin Ritchie2009-09-283-19/+58
| | | | | | | | deadlock issue with 0-10 rollback method and onMessage usage. Moved 0-10 rollback strategy to the abstract AMQSession and updated 0-8 to use that approach. 0-8 Still excluded from test runs as the race condition is not that the dispatcher would hold a message and reject after the TxRollback. The problem is the Java Broker sends a message out after the FlowOk message so the Dispatcher then sits on it, see QPID-2116. This exact problem was hidden due to the way the Dispatcher is stopped. This problem has not been addressed. The request to stop the dispatcher can only actually stop the dispatcher whilst it is in the middle of processing a message. The stop needs to interrupt the _queue.take() and hold the dispatcher AFTER the processing of any message that it needs to do: see QPID-2117. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@819590 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1956Rajith Muditha Attapattu2009-09-221-5/+5
| | | | | | | I had missed this bit when I committed last night. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@817867 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1956Rajith Muditha Attapattu2009-09-221-2/+11
| | | | | | | | Added a check in the getNextBrokerDetails method to return null when the current broker equals the only remaining broker in the list A test case for this will be added once I finalized the test case for the failover exchange method git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@817487 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2114 Rajith Muditha Attapattu2009-09-221-1/+1
| | | | | | | I have also added a simple check for the default message priority in an existing test in JMSPropertiesTest git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@817478 13f79535-47bb-0310-9956-ffa450edef68