summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-3807: Improve thread safety of JMS Session dispatcher.Keith Wall2012-02-071-21/+11
| | | | | | Make _dispatcherThread/_dispatcher volatile and remove their unused setters. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241430 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove unnecessary getters added by recent commit 1236867Keith Wall2012-02-071-87/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241429 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Move members back to top of class where they belongKeith Wall2012-02-071-181/+180
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241428 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3816: add client version to connection open loggingRobert Gemmell2012-02-067-28/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801: change use of escaped single quote to a hex literal to avoid a ↵Robert Gemmell2012-02-061-4/+8
| | | | | | bug in Checkstyle after JavaCC processes it into escaped unicode. Add braces to if statements and remove tabs for clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241180 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove redundant code from client and common trees.Keith Wall2012-02-0613-916/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241107 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3756: Reorder Java Broker's connection close process so that ↵Keith Wall2012-02-063-7/+17
| | | | | | | | | ConnectionCloseOk is sent only after first updating its internal state. This change means that the connection mbean will be deregistered from JMX before sending ConnectionCloseOk, thus removing the possibility of the race condition. The client side process is unaffected by this change. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1241024 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3775: Change BDB shell scripts to avoid use of readlink when ↵Keith Wall2012-02-063-7/+12
| | | | | | determining QPID_HOME. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240985 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3815: remove duplicate setting of the NetworkConnection, this was ↵Robert Gemmell2012-02-061-1/+0
| | | | | | already done via the delegate ProtocolEngines constructor git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3815: update test to expose the issue, we no longer log both the ↵Robert Gemmell2012-02-061-18/+5
| | | | | | (unsupported) 0-10 and subsequent 0-9-1 connection attempts on the 0-9-1 profiles, so the test can now expect a precise number of messages on every profile git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove factory method only used by testRobert Gemmell2012-02-062-8/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240866 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3814: ensure the 0-10 client sends its version number during ↵Robert Gemmell2012-02-0518-198/+200
| | | | | | ConnectionStart(Ok) process, align properties better across protocol versions, general tidy up of the property handling git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240813 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove test-only and unused connect methodsRobert Gemmell2012-02-054-24/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240812 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3812: ExceptionListenerTest sporadically fails on java-mms-0.10Keith Wall2012-02-051-5/+9
| | | | | | Remove possibility of race condition by updating Broker state *before* sending the connection reply. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240708 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3813: allow configuring the default version reply to an unsupported ↵Robert Gemmell2012-02-048-33/+129
| | | | | | protocol version initiation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240644 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: fix log outputRobert Gemmell2012-02-041-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3793: Remove test MessageStatisticsTest.testMessagePeakRates from test ↵Robert Gemmell2012-02-041-22/+0
| | | | | | | | | suite because there is already junit test for testing peak value evaluation Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3794: calculate a sleep interval to account for previous overlsleep, to ↵Robert Gemmell2012-02-041-1/+6
| | | | | | | | | help avoid ocasional failures in StatisticsCounterTest.testPeakOutOfOrder Applied patch from Oleksandr Rudyy <orudyy@gmail.com> (with small update to prevent a negative value being used) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240518 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3803: allow more time on persistent runs to help prevent sporadic ↵Robert Gemmell2012-02-041-3/+9
| | | | | | | | | failures on sorted queue tests Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3595: exclude additional alternate exchange testRobert Gemmell2012-02-041-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240498 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: close an accepted socket when exceptions occur in order to ↵Robert Gemmell2012-02-041-4/+24
| | | | | | prevent leaking, wrap debug statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240497 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: rework exception handling to allow the acceptor to continue after ↵Robert Gemmell2012-02-031-25/+41
| | | | | | encountering IOE such as too many open files, ensure errors are logged at error level (except at close, when a SocketException will be thrown if we are blocking on accept() at the time), make the thread non-daemon but add support for it to exit when the acceptor is closed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240223 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3781: fix system test ↵Robert Gemmell2012-02-031-2/+2
| | | | | | | | MaxDeliveryCountTest.testAsynchronousDupsOkSession by ensuring the queue depth check syncs first 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@1240065 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3792: fix system test ↵Robert Gemmell2012-02-031-14/+10
| | | | | | | | DurableSubscriptionTest.testDurSubAddMessageSelectorNoClose, and update others to remove unecessary syncs for 0-9 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@1240064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3805: Remove allow-all/deny-all security plugins from Java Broker.Keith Wall2012-02-024-206/+5
| | | | | | Remove allow-all/deny-all security plugins as equivilent functionality is offerred by the ACL plugin. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239889 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3802: Broker command line processing --help (-h) and --version (-v) no ↵Keith Wall2012-02-023-52/+99
| | | | | | | | longer work Applied patch from Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239759 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801 : [Java] Move JMS Selector code into commonRobert Godfrey2012-02-021-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801 : [Java] Move JMS Selector code into commonRobert Godfrey2012-02-0242-3055/+528
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239643 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3784: move the system property key into ClientPropertiesRobert Gemmell2012-02-023-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239622 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3784: introduce system property to run a dispatcher thread as ↵Robert Gemmell2012-02-022-1/+77
| | | | | | | | damon/non-daemon thread. Changes dispatcher thread to be non daemon thread by default. 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@1239620 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3800: add the ability to disable particular protocol versions ↵Robert Gemmell2012-02-027-13/+220
| | | | | | broker-wide to save having to exclude them from individual ports git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239579 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : Fix AbstractPasswordFilePrincipalDatabase to remove possibility ↵Robert Godfrey2012-02-021-6/+13
| | | | | | of leaked open stream git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239496 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3734 Commiting patch by Weston Price.Rajith Muditha Attapattu2012-02-0127-354/+371
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239411 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3790: Add a method AMQSession.getQueueDepth(AMQDestionation, boolean) ↵Robert Gemmell2012-02-014-14/+59
| | | | | | | | to sync session (if specified) before sending QueueQuery command 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@1239166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java Broker] Remove duplication between two password file ↵Robert Godfrey2012-02-0111-936/+606
| | | | | | database implementations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239112 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3780 : guard against the possibility that the HWM is older than the ↵Robert Godfrey2012-02-011-1/+1
| | | | | | queue head git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239095 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3780 : guard against the possibility that the HWM is older than the ↵Robert Godfrey2012-02-011-0/+8
| | | | | | queue head git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1239094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove duplication of BytesDataOutput inner class, and ↵Robert Godfrey2012-01-317-574/+378
| | | | | | shared code in SessionAdapt[eo]rs git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1238868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3604 Moved the draining of consumer queues further down to be doneRajith Muditha Attapattu2012-01-311-8/+6
| | | | | | | after we drain the dispatch queue. Since the message flow is now stopped we can drain the queues without grabbing the message-delivery-lock. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1238688 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove duplication of output converters and optimise ↵Robert Godfrey2012-01-308-913/+59
| | | | | | startup time git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237772 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove dead code and empty directoriesRobert Godfrey2012-01-3012-598/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove dead code and empty directoriesRobert Godfrey2012-01-308-1384/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237577 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3739: Java properties qpid.ssl.keyStoreCertType and ↵Keith Wall2012-01-2917-75/+349
| | | | | | | | | | | | | | | qpid.ssl.trustStoreCertType have misleading names and would be better called qpid.ssl.[Key|Trust]ManagerFactory.algorithm * Introduced two properties qpid.ssl.KeyManagerFactory.algorithm and qpid.ssl.TrustManagerFactory.algorithm to allow a client user to override the algorithm name used when Qpid client constructs a KeyManager or TrustManager. * Continued to support qpid.ssl.keyStoreCertType and qpid.ssl.trustStoreCertType (now marked as deprecated) * Introduced a new Java Broker configuration key connector/ssl/keyManagerFactoryAlgorithm * Continued to support broker configuration key connector/ssl/certType (now marked as deprecated and will issue warning if used). * Changed the default from hardcoded 'SunX509' to the value(s) returned by KeyManagerFactory#getDefaultAlgorithm() and TrustManagerFactory#getDefaultAlgorithm(). This allows the Java Broker and Client to be used out of the box on non-Sun JDKs without having to set qpid.ssl.KeyManagerFactory.algorithm or qpid.ssl.TrustManagerFactory.algorithm. * Updated client docbook documentation. Tested both Java Broker and Client on IBM JDK and ensured all 0-10 and 0-9-1 profiles pass (including SSLTest which was failing prior to this change). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237504 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] fix regression caused by destination cache miss (by ↵Robert Godfrey2012-01-292-1/+7
| | | | | | further screwing with equality on AMQDestination) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237331 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] code tidyupsRobert Godfrey2012-01-29199-4624/+1098
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237273 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3788: Remove remaining MINA configuration keys (and those from other ↵Keith Wall2012-01-286-44/+6
| | | | | | | | | | retired impls) from the Java Broker's config.xml * Remove remaining references to MINA transport configuration keys: enableDirectBuffers/enablePooledAllocator/filterchain from code and example config files. * Remove references to compressBufferOnQueue from config XMLs. The implementation that used it was removed back in 2007 by QPID-275. * Remove references to broker-side configuration key enableJMSXUserID. This broker feature was removed by QPID-943 (which replaced the functionality with an equivilent client-side option). The old Broker side key plays no part in the client-side function. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237088 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3775: Fix path handling in bdb scripts.Keith Wall2012-01-282-8/+14
| | | | | | | Fix bdb scripts backup.sh and storeUpgrade.sh so they successfully handle QPID_HOME and store paths containing spaces. This problem was shown up on Jenkins, as the profile directories of the Jenkins Matrix contain spaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1237029 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3775: Automate the manual persistent store tests.Keith Wall2012-01-2815-411/+590
| | | | | | | | | Add new testcase BDBBackupTest to test the operation of the BDB store backup mechanism (backup.sh). Changed test case PersistentStoreTest to implement the manually scripted BDB tests. This required changes to QBTC and BrokerHolder to allow an external Brokers to be forcibly kill'd with -9. Remove script and class for manual tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236931 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-27227-1269/+2074
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Ensure all control flow statements use braces (keeping CheckStyle ↵Robert Godfrey2012-01-2734-81/+360
| | | | | | happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236647 13f79535-47bb-0310-9956-ffa450edef68