summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* 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/qpid@1179702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3525: stop the client from accidentally consuming the messages it is ↵Robert Gemmell2011-10-062-17/+28
| | | | | | | | actually trying to recover when using 0-8/9/9-1. Also stops it acking the message from the in-progress onMessage delivery after Session.recover() was called. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179699 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3527: update handling of auto-ack messages for 0-10 to send acks ↵Robert Gemmell2011-10-066-80/+53
| | | | | | | | (asynchronously) on a per-message basis rather than batching for 1 second, update handling for other ack modes to be clearer with respect to 0-8/0-10 behavioural differences. Remove some redundant methods from AMQSession, updating handling of 'no consume'/'isBrowseOnly' such that BasicMessageConsumer is always supplied a single consistent answer for whether it is non-consuming or not. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179698 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526, QPID-3524: make sure the 0-10 client message.acknowledge() ↵Robert Gemmell2011-10-0614-574/+205
| | | | | | | | actually acknowledges messages immediately, and does so synchronously, adding test to verify behaviour. Split acknowledge() and commit() methods into version specific session implementations for clarity/reuse, align 0-10 and 0-8/9 transacted publishing behaviour, refactor preDeliver and postDeliver methods, remove dead code from consumers. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179695 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526: move duplicated methods into the parent abstract message ↵Robert Gemmell2011-10-065-191/+72
| | | | | | | | delegate, remove dead code from BassicMessageConsumer Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1179694 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3512: Avoid race during 0-8..0-9-1 connection close.Keith Wall2011-09-305-34/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177689 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3402: ensure the test JVMs execute with the working dir set to the ↵Robert Gemmell2011-09-3029-61/+65
| | | | | | | | qpid/java dir, use relative paths to the broker startup script and config files, update the QBTC configuration override functionality to operate relative to QPID_HOME to avoid setting properties with spaces/parentheses into QPID_OPTS Enables the java test profiles to cope with spaces/parentheses in the parent directory structure of the checkout, as found in the matrix project workspaces on the ASF Jenkins instances git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177658 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3515: update qpid-server and qpid-run to enable them to work if ↵Robert Gemmell2011-09-302-7/+10
| | | | | | QPID_HOME and QPID_WORK contain spaces and parentheses git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177657 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3504: make the broker start script check for additional jar files in ↵Robert Gemmell2011-09-301-2/+2
| | | | | | lib/opt/ to add to its classpath using the JDK 6 classpath expansion convenience, enabling an easier way of adding the optional BDB JE jar dependency than via the existing -run:<option> classpath manipulations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3513: Avoid use of shell script clean-dir during test cycleKeith Wall2011-09-2918-94/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1177333 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3511: Removal of unused system property "qpid.default_wait_on_send" ↵Keith Wall2011-09-2814-135/+68
| | | | | | | | from Java Client. Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176821 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3507: move the MessageListener check in front of the _receiving CASRobert Gemmell2011-09-271-4/+4
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1176326 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3444, QPID-3363: update destinations in AddressBasedDestinationTest to ↵Robert Gemmell2011-09-252-6/+5
| | | | | | | | | use ensure use of Address based destinations, update CloseTest to use JMS methods for creating destination. Resolves spurious test failures on C++ and Java broker profiles since they started properly enforcing binding restrictions on the default exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3444: issue an invalid argument execution exception if the exchange ↵Robert Gemmell2011-09-256-16/+26
| | | | | | 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/qpid@1175625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3402: fix excludes files to work with spaces etc in path, make SSL ↵Robert Gemmell2011-09-254-6/+10
| | | | | | 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/qpid@1175567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3504: add the Java broker bdbstore to the build as an optional moduleRobert Gemmell2011-09-2466-7/+7371
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1175235 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3332: Separate open/idle transaction timeout tests to remove the ↵Keith Wall2011-09-235-313/+199
| | | | | | possibility of an unexpected log message. Remove TransactionTimeoutConfigTest as this only duplicated tests aleady performed by TransactionTimeoutTest. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174842 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3501: LogMonitor duplicates chunks of log file if it fails to find ↵Keith Wall2011-09-234-28/+23
| | | | | | match. Avoid busy-wait in LogMonitor whilst polling log file. Make QpidBrokerTestCase use a autoflushing PrintStream for writing broker messages to log (client side messages were already autoflushed as this is a default behaviour of the log4j Appender). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174648 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3501: LogMonitor can corrupt test logs files and cause tests ↵Keith Wall2011-09-2212-60/+127
| | | | | | subclassing AbstractLoggingTests to fail. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1174196 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/qpid@1173738 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the extraneous toString()Rajith Muditha Attapattu2011-09-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1173693 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3493: FailoverMethodTest.testFailoverSingleDelay occasionally fails on ↵Keith Wall2011-09-191-2/+2
| | | | | | slow CI box git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1172541 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3415: Change 0-10 code path to utilise the CallbackHandlerRegistry to ↵Keith Wall2011-09-1914-413/+652
| | | | | | 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/qpid@1172506 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2672: Unroutable persistent messages should be immediately removed from ↵Keith Wall2011-09-158-81/+148
| | | | | | 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-1414-170/+250
| | | | | | | 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-3448: catch exceptions from the underlying Transport/Session/Connection ↵Robert Gemmell2011-09-138-48/+953
| | | | | | | | and rethrow as a JMSException like users are expecting Applied patch by Oleksandr Rudyy <orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170182 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3428: fix excludes after test related changes from to prior patch ↵Robert Gemmell2011-09-132-3/+16
| | | | | | feeback, add a bit of javadoc to tests and use constants git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169984 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3428: make the Java broker validate 0-10 Session names, enabling it to ↵Robert Gemmell2011-09-1314-23/+144
| | | | | | | | | 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/qpid@1169982 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3449: adds ability to override the session timeout via JVM properties ↵Robert Gemmell2011-09-124-5/+101
| | | | | | | | 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/qpid@1169773 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3459: Increments delivery counter before transfering message to client ↵Robert Gemmell2011-09-123-3/+3
| | | | | | | | in order to count delivery attempts. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627: update build.deps to reflect removal of dependency on mina and ↵Robert Gemmell2011-09-103-48/+1
| | | | | | ensure the generated client poms are correct, delete the associated maven dependency stubs which become unused git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2627 : Remove dependency on MINARobert Godfrey2011-09-0997-2924/+3012
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3477: add excludes file for use with the Java broker when running the ↵Robert Gemmell2011-09-091-0/+22
| | | | | | | | 0-10 python client tests Applied patch from Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1167111 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3429: exclude the AMQSSLConnectionTest from cpp profiles, since only ↵Robert Gemmell2011-09-071-0/+4
| | | | | | the cpp.ssl profile can run it yet doesnt really need to git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166256 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2901: fixes racing conditions on broker side when TopicDeletePolicy is ↵Robert Gemmell2011-09-073-2/+16
| | | | | | | | closing the consumer Session but the broker is trying to deliver next message to the Subscription of this closing Session. Applied patch from Oleksandr Rudyy <orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166246 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3467: replace the 'connection id' with the Username of the logged in ↵Robert Gemmell2011-09-075-76/+89
| | | | | | | | 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-0757-2899/+771
| | | | | | Gemmel) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1166069 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Removed the 'create:always' option when constructing theRajith Muditha Attapattu2011-09-061-1/+1
| | | | | | | | address string from the replyTo construct. The application which sets the replyTo is responsible for creating/deleting the replyTo destination and not the one who sends messages to it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3463: Adds catching of Throwable on broker startupRobert Gemmell2011-09-061-1/+1
| | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3468: exclude QueueBrowser related failover testsRobert Gemmell2011-09-052-0/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3466 Added logic to convert exchange/replyTo pairs into addressRajith Muditha Attapattu2011-09-051-3/+58
| | | | | | strings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1165148 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3373 I forgot to ensure the correct port is used in the connectionRajith Muditha Attapattu2011-09-021-1/+3
| | | | | | URL. Changed the test to use the patch proposed by Alex Rudyy. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1164327 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3461 The commit method implementation in AMQSession_0_10 nowRajith Muditha Attapattu2011-08-311-0/+7
| | | | | | handles the SessionException and throws a JMSException. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3395 Added a test case for this issue.Rajith Muditha Attapattu2011-08-311-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163459 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3373 Adding a test case for this issue.Rajith Muditha Attapattu2011-08-311-0/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163458 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3373 Applying Pavel's patch. I also added the same fix for theRajith Muditha Attapattu2011-08-311-23/+42
| | | | | | createXAConnection method with user,password. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163457 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3395 Applied Pavel's patch with minor modifications.Rajith Muditha Attapattu2011-08-301-8/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1163422 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2720: prevent NPE's in event we didnt fully set up the PluginManagerRobert Gemmell2011-08-261-9/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1162128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3453: Fixes an issue with closing of detached sessionKeith Wall2011-08-262-8/+47
| | | | | | | Applied patch from Oleksandr Rudyy <orudyy@gmail.com> and Andrew MacBean <andymacbean@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1162122 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3266: Tidy up housekeeping configuration option for scheduling frequencyKeith Wall2011-08-2611-22/+86
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1162121 13f79535-47bb-0310-9956-ffa450edef68