summaryrefslogtreecommitdiff
path: root/java/broker/src/test
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2672: Unroutable persistent messages should be immediately removed from ↵Keith Wall2011-09-151-1/+17
| | | | | | store. Added new operational logging message (EXH-1003 - Discarded Message) that reports when the Broker drops an unroutable message. Added new System Test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1171079 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3486: Make connector server port used for JMX configurable.Keith Wall2011-09-143-21/+64
| | | | | | | Commited work from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627 : Remove dependency on MINARobert Godfrey2011-09-093-18/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3467: replace the 'connection id' with the Username of the logged in ↵Robert Gemmell2011-09-071-6/+38
| | | | | | | | user for the ManagementActor, since the value for the connection id was arrived at using an incorrect assumption that the id number in the thread name for a particular RMI thread is specific to a given JMX connection when it isnt. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166134 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3473 : Replace use of MINA IO with transport IO (joint work with Robbie ↵Robert Godfrey2011-09-071-1/+1
| | | | | | Gemmel) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166069 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3266: Tidy up housekeeping configuration option for scheduling frequencyKeith Wall2011-08-263-5/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1162121 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2720: make the PluginManager able to work with a pre-existing BundleContextRobert Gemmell2011-08-212-57/+1
| | | | | | | Manually applied patch from Danushka Menikkumbura (no longer applied after intervening commits), then updated PluginManager close() to always close the ServiceTrackers it creates, removed the static field/methods causing test failures which lead to previously reverting the patch, enabled passing a pre existing BundleContext into the Broker instance at startup instead, and finally removed the unused MockPluginManager. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1160000 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3414: Refactoring. List of packages to be exported as OSGi system ↵Robert Gemmell2011-08-211-0/+93
| | | | | | | | | packages now held in separate properties file. Applied patch by Keith Wall git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159999 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3439: add intermediate task class for Signal handling using reflection ↵Robert Gemmell2011-08-211-0/+118
| | | | | | to access/implement the Signal handling classes/interfaces, removing dependency on the com.sun heirarchy from ServerConfiguration and thus the associated compiler warnings git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1159997 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3429: ensure that SSL is enabled correctly in MinaNetworkHandler. ↵Robert Gemmell2011-08-181-2/+2
| | | | | | | | 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/qpid@1159250 13f79535-47bb-0310-9956-ffa450edef68
* Undoing commits of stuff that was meant for my 1-0 sandboxRobert Godfrey2011-08-142-31/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157632 13f79535-47bb-0310-9956-ffa450edef68
* Initial checkin of AMQP 1-0 Java Prototype workRobert Godfrey2011-08-142-20/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2873: ensure that queues in the configuration file are always bound to ↵Robert Gemmell2011-08-132-1/+215
| | | | | | the default exchange with their name, unknown exchanges properly cause exception to be thrown, and you cant use custom bindings against the default exchange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157410 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3387: use the subscription ID to track rejection rather than the ↵Robert Gemmell2011-08-083-19/+36
| | | | | | subscription itself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155138 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3386: move all server Subscription creation into the ↵Robert Gemmell2011-08-083-45/+88
| | | | | | SubscriptionFactoryImpl, ensure all Subscription implementations share a common ID sequence generator git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155137 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3385: assign IDs from a generator within the ↵Robert Gemmell2011-08-083-3/+151
| | | | | | MultiVersionProtocolEngineFactory, which is shared across all protocol versions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155136 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3064, QPID-3157: ensure that if the node marker is pointing at the tail ↵Robert Gemmell2011-07-311-0/+34
| | | | | | node when it is removed, the marker is still subsequently able to find new subscriptions at the end of the list git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152633 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3064, QPID-3157: ensure the node for a given Subscription is unlinked ↵Robert Gemmell2011-07-301-0/+395
| | | | | | from the SubscriptionList at the point of removal instead of relying on the list head advancing to do so. Add 'marked node' functionality to the SubscriptionList to provide the Subscription cycling functionality to the queue, allowing the list to tidy itself up fully. Correct corner case behaviour for deleted-but-still-linked tail node in SubscriptionListIterator. Add tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152485 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3255: update management console to remove redundant user management ↵Robert Gemmell2011-07-211-34/+0
| | | | | | functionality, move legacy methods from UserManagement to an extension interface git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149109 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3283: make Authentication Manager pluggable.Robert Gemmell2011-07-154-96/+217
| | | | | | | | Refactors AuthenticationManager and collaborators to allow of AuthenticationManager to be plugged in from the configuration XML. Change PrincipalDatabaseAuthenticationManager to become a pluggable implementation. This change removes support for the <principal-databases> element within the config.xml. Existing use-cases are supported by the new element <pd-auth-manager/> which enables use of the PDAM implementation. Also resolves QPID-1347. Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1147036 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2815: move conversion of logWatch argument into milliseconds into ↵Robert Gemmell2011-07-141-0/+143
| | | | | | Broker, add a unit test for the various argument parsing methods in Main. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3310 - Principal/Subject refactoring.Robert Gemmell2011-07-135-18/+159
| | | | | | | | | | 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/qpid@1146079 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3343: refactor test profiles to allow testing within the same JVM for ↵Robert Gemmell2011-07-071-14/+0
| | | | | | | | all protocols, remove vm:// transport support and associated forked Mina classes Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143874 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2815: refactor broker startup to present a clean interface interface ↵Robert Gemmell2011-07-074-142/+233
| | | | | | | | for starting the broker within an existing application Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143870 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3026: remove incomplete support for multiple ApplicationRegistry ↵Robert Gemmell2011-07-071-278/+256
| | | | | | | | instances to be active at one time Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143869 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove interface method @overridesRobert Gemmell2011-07-0710-48/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3342: transition TCP based Mina transport for 0-8/0-9/0-9-1 protocols ↵Robert Gemmell2011-07-073-9/+15
| | | | | | | | over to new IO interface model Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3341: remove unused/dead transport code and accompanying implementation ↵Robert Gemmell2011-07-071-62/+3
| | | | | | | | classes Applied patch by Keith Wall and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143865 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3318: ensure the abstract HouseKeepingTask class removes the LogActor ↵Robert Gemmell2011-06-262-0/+338
| | | | | | it adds to the stack git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1139793 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3296: update RMIPasswordAuthenticator to authenticate users via ↵Robert Gemmell2011-06-094-175/+316
| | | | | | | | AuthenticationManager instead of a PrincipalDatabase Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133781 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3219: update handling of QueueEntries to exclude use of entries in the ↵Robert Gemmell2011-06-075-1/+821
| | | | | | | | intermediate 'dequeued' state, simplify logic in general. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1132959 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3249: Remove incomplete support for authentication at virtualhost level.Robert Gemmell2011-05-122-0/+235
| | | | | | Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1102258 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2759: Remove defunct jmxremote.access file user management rights ↵Robert Gemmell2011-05-102-160/+96
| | | | | | | | | | | | | | manipulation abilities. 1) Removed remaining jmx access functionality. 2) Removed references to security/jmx/access from all existing configuration files. 3) Made ServerConfiguration#validateConfiguration reject config files that still contain the security/jmx/access element in order to promote good end-user understanding of configuration. For JMX: 1) setRights now throws UnsupportedOperationException with message. 2) createUser(string,string,bool,bool,bool) throws UnsupportedOperationException iff any of the bool args are true i.e. the user attempts to give a user access JMX rights 3) Deprecated createUser(string,string,bool,bool,bool) in favour of new two arg form createUser(string,string) 4) viewUsers changes to always return admin, read, and write items as false. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1101483 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3164: correct the occasionally failing tests ↵Robert Gemmell2011-04-041-77/+23
| | | | | | | | testSubscriptionSpecificRequeueForQueueWithMultipleSubscriptions and testSubscriptionSpecificRequeueForQueueWithMultipleSubscriptions. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1088562 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3158 - Defect in the CRAM-MD5-HEX mechanism - CRAMMD5HexInitialiser ↵Robert Gemmell2011-03-311-0/+230
| | | | | | | | 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/trunk/qpid@1087249 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3167: add a unit test of SimpleAMQQueue#processQueue to check delivery ↵Robert Gemmell2011-03-3011-13/+152
| | | | | | when subscriptions with unique selectors are in use git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1087000 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2984: Add statistics generation for broker message deliveryAndrew Donald Kennedy2011-03-081-0/+144
| | | | | | Port of QPID-2932 changes from 0.5.x-dev branch to trunk. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1079043 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3048: InternalBrokerBasecase not removing all log actorsAndrew Donald Kennedy2011-02-171-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1071465 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2900: Changed SimpleAMQQueue to avoid race condition in the updating ↵Robert Gemmell2011-02-085-25/+394
| | | | | | | | atomic QueueContext._releasedEntry. Race was between thread SubFlushRunner (or QueueRunner) executing method SimpleAMQQueue.setLastSeenEntry and the thread executing the MessageRelase command executing method SimpleAMQQueue.updateSubRequeueEntry. Bolstered the unit tests surrounding the area of change to reduce risk of regression. Overrode TestableMemoryMessageStore#close() to avoid a NPE during tearDown silently cluttering some unit test logs (including SimpleAMQQueueTest). Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1068315 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3017: improve error handling for the new transaction classes, add some ↵Robert Gemmell2011-01-286-1/+1307
| | | | | | | | | logging, add unit tests Applied patches from Keith Wall git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1064629 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3010: ensure the SimpleByteBufferAllocator is always used and ↵Robert Gemmell2011-01-211-28/+0
| | | | | | non-direct ByteBuffers are the default, remove the old and now unused configuration methods from ServerConfiguration and update the example config.xml accordingly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1061865 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2857: address a further 60 or so issues identified by running FindBugs ↵Robert Gemmell2010-09-192-31/+31
| | | | | | across the Java codebase git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@998700 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2704: simplify the implementation of SQEL scavenge() ability and add test.Robert Gemmell2010-09-181-0/+144
| | | | | | | Incorporates changes for QPID-2597 from 0.5.x-dev branch revisions 943240, 943534, 943576, and 943845. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@998543 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2857 : Address issues found by running FindBugs against the Java codebaseRobert Godfrey2010-09-1226-271/+329
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@996393 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: move the text to the properties file to allow for il8nRobert Gemmell2010-09-061-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992988 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: Ensure that a MNG-1004 message is logged when using the platform ↵Robert Gemmell2010-09-031-1/+10
| | | | | | agent (and indicates use of the platform agent), merge the BRK-1004 message text with the previously used stdout startup log message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992330 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: add missed changeRobert Gemmell2010-09-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992228 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2824: Use toLogString rather than toString on LogSubject(s)Robert Gemmell2010-08-304-4/+11
| | | | | | | Applied patch from Sorin Suciu <ssuciu@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990820 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2802: remove forgotten debugging printlnRobert Gemmell2010-08-301-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990758 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2771: rename package from plugin to pluginsRobert Gemmell2010-08-275-8/+8
| | | | | | | Applied patches from Sorin Suciu <ssuciu@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990236 13f79535-47bb-0310-9956-ffa450edef68