summaryrefslogtreecommitdiff
path: root/qpid/java/common
Commit message (Collapse)AuthorAgeFilesLines
...
* | QPID-3789 : [Java] Remove dead code and empty directoriesRobert Godfrey2012-01-301-38/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237612 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3739: Java properties qpid.ssl.keyStoreCertType and ↵Keith Wall2012-01-2912-64/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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@1237504 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3789 : [Java] code tidyupsRobert Godfrey2012-01-2950-1975/+208
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237273 13f79535-47bb-0310-9956-ffa450edef68
* | NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-2727-100/+160
| | | | | | | | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236867 13f79535-47bb-0310-9956-ffa450edef68
* | NO-JIRA: Ensure all control flow statements use braces (keeping CheckStyle ↵Robert Godfrey2012-01-272-27/+76
| | | | | | | | | | | | happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236647 13f79535-47bb-0310-9956-ffa450edef68
* | NO-JIRA : [Java] Tidy up import statements across the codebase, remove ↵Robert Godfrey2012-01-27125-423/+411
| | | | | | | | | | | | unused/redundant imports (keep Checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236638 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3783 The AddressParser will now set the subject to Null if it equals to ↵Rajith Muditha Attapattu2012-01-261-0/+4
| | | | | | | | | | | | | | | | | | | | None. The only drawback is that if somebody wants to use a subject called "None" which is hard to imagine :) However even if they want to use such a subject it will not be easy to distinguish due to the fact we print null subjects as None. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236196 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3774 : allow out of order completion of persistent enqueues / dequeuesRobert Godfrey2012-01-201-2/+7
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1234111 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3766 Committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-171-12/+13
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232612 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3758 : Reduce memory overhead of SessionsRobert Godfrey2012-01-131-40/+47
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1231141 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3730: remove ReadWriteJobQueue, it is no longer necessary as the only ↵Robert Gemmell2012-01-093-478/+4
| | | | | | | | | | | | things now using the thread pool are write jobs, so there is no need/benefit to request it be write-biased. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229112 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3715: Fix the receiving of an empty ObjectMessage (without a body)Keith Wall2012-01-072-0/+206
| | | | | | | | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228583 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3720 : [Java Broker] Implement Message GroupingRobert Godfrey2012-01-032-2/+17
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226930 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3713 : Implement producer side flow control for 0-10 in Java BrokerRobert Godfrey2012-01-022-5/+25
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226382 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3714 : [Java] Performance ImprovementsRobert Godfrey2011-12-2850-734/+1734
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Persistence: Store message in same transaction as enqueue if possible Memory: Remove unnecessary (un)boxing Reduce unnecessary copying of message data Cache short strings Cache queues for a given routing key on an Exchange (0-9) Use a fixed size buffer for preparing frames to write out Other: Reduce calls to System.currentTimeMillis (0-10) Special case immutable RangeSets, in particular RangeSets of a single range/point (0-10) Special case delivery properties and message properties in headers (0-9) send commit-ok as soon as data committed to store Cache publishing access control queries (0-9) Optimised long and int typed values for FieldTables (0-9) Retain FieldTable encoded form (0-9) Cache queue and topic destinations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1225178 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3659 Added a method in AMQBrokerDetails to handle booleanRajith Muditha Attapattu2011-12-071-1/+2
| | | | | | | | | | | | | | | | | | properties which defaults to "True". I also added a log message to printout the TCP_NODELAY value returned by the sockets getTcpNoDelay() method as a way of figuring out the exact settings. (cherry picked from commit d2377ceb08af030e95ccc3d578df2d59ca3933c1) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1211611 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3642,QPID-3643: Add Dead Letter Queue functionality for 0-8/0-9/0-9-1 ↵Keith Wall2011-11-282-0/+17
| | | | | | | | | | | | | | | | paths, fixes isBound methods on FanoutExchange Applied patch from Keith Wall <keith.wall@gmail.com>, Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1207029 13f79535-47bb-0310-9956-ffa450edef68
* | NO-JIRA: add missing licence headers to various files in the java treeRobert Gemmell2011-11-174-0/+78
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1203385 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3611: use socket.close() on SSLSockets to prevent IoReceiver causing an ↵Robert Gemmell2011-11-111-1/+3
| | | | | | | | | | | | UnsupportedOperationException, e.g during ConnectionClose on the broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1200921 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3610: set TCP_NODELAY to true by default, add new system property for ↵Robert Gemmell2011-11-113-1/+59
| | | | | | | | | | | | changing default, add unit tests for system properties + connection url options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1200803 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3519: refactor consumer argument handlingKeith Wall2011-11-092-14/+49
| | | | | | | | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1199664 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3518: Introduce client side ability to detect server side support.Keith Wall2011-11-092-0/+58
| | | | | | | | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1199662 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3583: Update trunk version from 0.13 to 0.15Justin Ross2011-11-031-1/+1
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1197304 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3428: update to stop duplicate 0-10 session registrations into the ↵Robert Gemmell2011-10-302-2/+9
| | | | | | | | | | | | management layer, fixes a leak of the session and its associated connection at session removal time. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1195212 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3532: make the 0-10 client hold the failover mutex during the failover. ↵Robert Gemmell2011-10-212-14/+57
| | | | | | | | | | | | | | | | Alter the Address resolution code to allow resolving addresses after failover. Add some more failover tests (inc ADDR based ones). Make the failover process notify any waiters in the session to abort and let failover proceed. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1187279 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3524: revert changes to Session#invoke method in r1179702 as the other ↵Robert Gemmell2011-10-201-18/+12
| | | | | | | | | | | | changes in the resume method rendered them unecessary git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1186863 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3524: enable support for failing over transacted sessions, ensuring ↵Robert Gemmell2011-10-062-40/+30
| | | | | | | | | | | | | | | | txSelect is sent after the command-point process is complete, but before the session is marked in the open state. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1179702 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3515: update qpid-server and qpid-run to enable them to work if ↵Robert Gemmell2011-09-301-5/+8
| | | | | | | | | | | | QPID_HOME and QPID_WORK contain spaces and parentheses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1177657 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3444: issue an invalid argument execution exception if the exchange ↵Robert Gemmell2011-09-252-6/+3
| | | | | | | | | | | | name is null or the empty string. Update some constants to ensure the error code is logged with the correct message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1175625 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3402: fix excludes files to work with spaces etc in path, make SSL ↵Robert Gemmell2011-09-251-1/+5
| | | | | | | | | | | | tests use relative path to keystore files to allow parsing the URLs containing them git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1175567 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3498: Broker race condition mean that it tries to respond before ↵Keith Wall2011-09-212-1/+5
| | | | | | | | | | | | IoSender thread is running git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1173738 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3415: Change 0-10 code path to utilise the CallbackHandlerRegistry to ↵Keith Wall2011-09-196-252/+78
| | | | | | | | | | | | create the correct CallbackHandler. The sasl_mechs property/broker option is retained, but continues to be understood only by the 0-10 path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1172506 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3428: make the Java broker validate 0-10 Session names, enabling it to ↵Robert Gemmell2011-09-133-3/+17
| | | | | | | | | | | | | | | | | | satisfy the clients new ClientID verification feature. Misc updates to the clients verification process. Applied patch from Andrew MacBean git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1169982 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3449: adds ability to override the session timeout via JVM properties ↵Robert Gemmell2011-09-123-4/+97
| | | | | | | | | | | | | | | | qpid.sync_op_timeout and the legacy amqj.default_syncwrite_timeout, across all protocol versions Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1169773 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-2627 : Remove dependency on MINARobert Godfrey2011-09-0948-1257/+837
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1167311 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3473 : Replace use of MINA IO with transport IO (joint work with Robbie ↵Robert Godfrey2011-09-0733-2126/+468
| | | | | | | | | | | | Gemmel) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1166069 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3453: Fixes an issue with closing of detached sessionKeith Wall2011-08-261-8/+21
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1162122 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3452: Broker now unregisters any remaining subscriptions on receipt of ↵Keith Wall2011-08-251-3/+2
| | | | | | | | | | | | SessionDetach to prevent SubFlushRunner and QueueRunner sending erroneous frames causing a ProtocolViolationException on the client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1161492 13f79535-47bb-0310-9956-ffa450edef68
* | NO-JIRA: remove test config for Logger which is no longer used, move test ↵Robert Gemmell2011-08-211-10/+63
| | | | | | | | | | | | start reporting to QTC so it shows up in output of non-broker tests, move log level utility methods to QTC git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1159998 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3434: Refactored 0-8..0-9-1 code paths to use same SSL configuration ↵Robert Gemmell2011-08-181-2/+9
| | | | | | | | | | | | | | | | mechanisms as 0-10. Apply work by myself and Keith Wall git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1159255 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3429: ensure that SSL is enabled correctly in MinaNetworkHandler. ↵Robert Gemmell2011-08-1814-268/+224
| | | | | | | | | | | | | | | | Refactor SSLContextFactory to be a factory, and present a useful interface for both client and server side use. Added keystore for the Java broker, renamed existing client trust/key stores for clarity. Fix SSL port configuration. Added new SSL tests, and ensure these are *always* run in the Java 0-10 profiles. Committing work by myself and Keith Wall. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1159250 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3342: Regression when forming SSL connections.Robert Gemmell2011-08-155-64/+109
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1157866 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3402: revert r1155516, bad things happened without spaceRobert Gemmell2011-08-091-1/+1
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1155972 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3402: also use a semi-colon deliminator instead of just whitespace, so ↵Robert Gemmell2011-08-091-1/+1
| | | | | | | | | | | | as to allow identifying the excludes files correctly when the directory structure includes spaces git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1155516 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3385: assign IDs from a generator within the ↵Robert Gemmell2011-08-084-23/+43
| | | | | | | | | | | | MultiVersionProtocolEngineFactory, which is shared across all protocol versions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1155136 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3367: FileUtils improvements. #openFileOrDefaultResource now tries the ↵Robert Gemmell2011-07-214-11/+98
| | | | | | | | | | | | | | | | override filename in the classpath too, before falling back to the default. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1149165 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-2498: upgrade Mina to 1.1.7.Robert Gemmell2011-07-141-1/+1
| | | | | | | | | | | | Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1146677 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3342: move a previously missed test-only class into the test treeRobert Gemmell2011-07-141-0/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1146676 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3345: restore/add ability to use sys props to select the ↵Robert Gemmell2011-07-146-10/+327
| | | | | | | | | | | | | | | | NetworkTransport used to make/accept connections Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1146594 13f79535-47bb-0310-9956-ffa450edef68
* | QPID-3310 - Principal/Subject refactoring.Robert Gemmell2011-07-132-27/+31
| | | | | | | | | | | | | | | | | | | | Refactoring to the connection/session objects to pass the Subject from Authentication tier to Access tier, rather than just the Principal. Change the access-control to be able to make access decisions based on Groups from the Authentication tier whilst retaining support for groups declared within the ACL file itself. Improve unit tests. Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1146079 13f79535-47bb-0310-9956-ffa450edef68