summaryrefslogtreecommitdiff
path: root/java/client
Commit message (Collapse)AuthorAgeFilesLines
* QPID-353 : Amend type of JMS destination type from byte to intRobert Greig2007-02-083-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@504915 13f79535-47bb-0310-9956-ffa450edef68
* Improved version of the "accept the broker version" fix.Robert Greig2007-02-081-34/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@504868 13f79535-47bb-0310-9956-ffa450edef68
* Added a system property qpid.accept.broker.version to allow the client to ↵Robert Greig2007-02-071-8/+17
| | | | | | accept whatever version the broker offers on connection negotiation. Useful when testing different broker implementations that may not be in sync with Qpid versioning. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@504736 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in stop(). If a connection is opened not start()ed then closed a ↵Martin Ritchie2007-02-051-1/+5
| | | | | | NullPointerException will be thrown as the Dispatcher has not been created. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@503593 13f79535-47bb-0310-9956-ffa450edef68
* QPID-84Bhupendra Bhusman Bhardwaj2007-02-025-695/+3
| | | | | | tests for FSContextFactory deleted.fscontext.jar is not part of apache svn. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502610 13f79535-47bb-0310-9956-ffa450edef68
* QPID-341 When using Queues and Topics defined via JNDI settings are not ↵Martin Ritchie2007-02-011-3/+3
| | | | | | | | preserved. Removed extraction of destination/queue name and used BindingURL directly to create Destination. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502271 13f79535-47bb-0310-9956-ffa450edef68
* Increased logging on a failure to attain stateMartin Ritchie2007-02-011-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502268 13f79535-47bb-0310-9956-ffa450edef68
* QPID-339 DispatcherTest.java was broker now it actually tests correctly.Martin Ritchie2007-02-013-8/+288
| | | | | | Added test to Check changing message listeners git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502261 13f79535-47bb-0310-9956-ffa450edef68
* QPID-339 Java client hangs when starting up (intermittently)Martin Ritchie2007-02-013-74/+348
| | | | | | | | | | | | | | Patched the problem where the dispatcher would hang. The previous logic was flawed. Patch worked on by Robert Godfrey and Martin Ritchie. Added test to ensure that the connection is not automatically started. (Only added the test last time by mistake. This is the actual fix) With a test for the DispatcherTest git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502253 13f79535-47bb-0310-9956-ffa450edef68
* QPID-330 Clients occasionally fail to notice connectMartin Ritchie2007-02-011-31/+18
| | | | | | The AMQConnection.java constructor now deals with the full connection process. The failover thread should not be started. This allows the connection method to be simplified and not Thread.sleep waiting for the connection. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502249 13f79535-47bb-0310-9956-ffa450edef68
* QPID-339 Java client hangs when starting up (intermittently)Martin Ritchie2007-02-011-0/+165
| | | | | | | | | | Patched the problem where the dispatcher would hang. The previous logic was flawed. Patch worked on by Robert Godfrey and Martin Ritchie. Added test to ensure that the connection is not automatically started. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502248 13f79535-47bb-0310-9956-ffa450edef68
* QPID-333 Committed test class rename to stop it being picked up by SurefireMartin Ritchie2007-02-014-11/+12
| | | | | | AMQTopic.java - whitespace git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@502172 13f79535-47bb-0310-9956-ffa450edef68
* QPID-333 Message Properties on non Qpid Messages are not preservedMartin Ritchie2007-01-315-47/+493
| | | | | | | | | | Updated MessageConverter to have a constructor that takes a Message type. Updated MessageConverterTest to use the new NonQpidMessage to test it out. JMSHeaderAdapter.java - whitespace changes and comment noting that null return is required. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501917 13f79535-47bb-0310-9956-ffa450edef68
* QPID-327 : Patch supplied by Rob Godfrey - [race condition] PoolingFilter : ↵Robert Greig2007-01-295-7/+30
| | | | | | Possible race condition when completing a Job git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501096 13f79535-47bb-0310-9956-ffa450edef68
* QPID-313 : Patch supplied by Rob Godfrey - Call to attainState in ↵Robert Greig2007-01-291-33/+28
| | | | | | makeBrokerConnection can miss the notification of state change. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501011 13f79535-47bb-0310-9956-ffa450edef68
* QPID-324 : Patch supplied by Rob Godfrey - Only send byte indicating topic / ↵Robert Greig2007-01-291-3/+8
| | | | | | queue / other in properties field table, not whole destination git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501008 13f79535-47bb-0310-9956-ffa450edef68
* QPID-322 : Patch supplied by Rob Godfrey - Tests may hang instead of fail if ↵Robert Greig2007-01-2913-46/+133
| | | | | | message does not get through git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501007 13f79535-47bb-0310-9956-ffa450edef68
* QPID-324 : Patch supplied by Rob Godfrey - Only send byte indicating topic / ↵Robert Greig2007-01-2927-115/+339
| | | | | | queue / other in properties field table, not whole destination git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501005 13f79535-47bb-0310-9956-ffa450edef68
* QPID-320 : Patch supplied by Rob Godfrey - Simplify logic to deal with ↵Robert Greig2007-01-292-176/+62
| | | | | | setting MessageListener only after connection start has been called git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501004 13f79535-47bb-0310-9956-ffa450edef68
* [Patch supplied by Jonathan Anstey] Solve probelm in which TransactedTest ↵Kim van der Riet2007-01-261-1/+1
| | | | | | causes a failure in RecoverTest owing to messages sticking around. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@500310 13f79535-47bb-0310-9956-ffa450edef68
* Change to TransactedTest which prevents the intermittent error ↵Kim van der Riet2007-01-261-1/+2
| | | | | | junit.framework.ComparisonFailure: expected:<B> but was:<C> (or similar) from occurring on either the commit or rollback portion of the test. The error occurs when the test consumer testConsumer1 bind frames arrive at the server before the message bodies with A,B,C and cause queue 1 to start a round-robin distribution for these messages when they finally do arrive. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@500264 13f79535-47bb-0310-9956-ffa450edef68
* QPID-315Marnie McCormack2007-01-253-0/+440
| | | | | | Test classes to reproduce problem with missing correlation id on incoming messages from non-Qpid broker git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-315Marnie McCormack2007-01-253-99/+12
| | | | | | | Moved message conversion logic from BasicMessageProducer to MessageConverter Added correlation id to AbstractJMSMessage.toString() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499975 13f79535-47bb-0310-9956-ffa450edef68
* QPID-318 : Patch supplied by Rob Godfrey - remove hard-coding of protocol valuesRobert Greig2007-01-255-26/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499851 13f79535-47bb-0310-9956-ffa450edef68
* QPID-318 : Patch supplied by Rob Godfrey - Remove hard-coding of protocol ↵Robert Greig2007-01-257-164/+218
| | | | | | version number. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499628 13f79535-47bb-0310-9956-ffa450edef68
* QPID-317 : Patch supplied by Rob Godfrey - Remove dependency on JMS from ↵Robert Greig2007-01-246-69/+590
| | | | | | common / broker. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499563 13f79535-47bb-0310-9956-ffa450edef68
* QPID-315Marnie McCormack2007-01-241-10/+14
| | | | | | Updated and tidied class prior to addition of tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499532 13f79535-47bb-0310-9956-ffa450edef68
* QPID-50 : Patch supplied by Rob Godfrey - Virtual Host implementationRobert Greig2007-01-244-20/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499490 13f79535-47bb-0310-9956-ffa450edef68
* QPID-50 : Patch supplied by Rob Godfrey - Virtual Host implementationRobert Greig2007-01-2434-86/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499446 13f79535-47bb-0310-9956-ffa450edef68
* QPID-103 Implemented support for MessageListener in AMQSession.Martin Ritchie2007-01-232-15/+57
| | | | | | | Required configuring an Asynchronous performance test. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-315Marnie McCormack2007-01-231-0/+183
| | | | | | INitial commit - AMQSesssion convertToNativeMessage needs replaced with call to this class git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499087 13f79535-47bb-0310-9956-ffa450edef68
* QPID-308 Configurable timeout on blockForFrame.Martin Ritchie2007-01-221-5/+5
| | | | | | | Stopping on InterruptedException is not correct logic. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@498690 13f79535-47bb-0310-9956-ffa450edef68
* QPID-310 Propagated JMS Exception to client.Martin Ritchie2007-01-227-108/+236
| | | | | | | | | | QPID-308 Configurable timeout on blockForFrame. Timeouts added but need to be configurable. QPID-311 Dispatcher Thread is not thread safe. Added the missing Synchronized code and renamed vars to make it more readable git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@498637 13f79535-47bb-0310-9956-ffa450edef68
* Removed mandatory 6 second sleep! replaced with a countdown latch that will ↵Martin Ritchie2007-01-191-4/+17
| | | | | | wait for a max of 2 seconds git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-275 : Patch supplied by Rob Godfrey - Add support for get / purge / qos ↵Robert Greig2007-01-191-4/+5
| | | | | | size / default exchanges and some other small fixes highlighted by the python tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497770 13f79535-47bb-0310-9956-ffa450edef68
* * uses LONG_STRING in place of WIDE_STRING for properties set through ↵Gordon Sim2007-01-181-4/+4
| | | | | | | | | | | | FieldTable.setString() as these appear to all be equivalent (apart from the type code) * uses setString instead of setAsciiString in creation of the connection.start-ok frames client properties * uses 4 bytes for the size of the BINARY value type as per the spec posted on the wiki git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497352 13f79535-47bb-0310-9956-ffa450edef68
* QPID-245 reverted interop changes for the sake of JMS compliance.Robert Greig2007-01-161-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496785 13f79535-47bb-0310-9956-ffa450edef68
* QPID-300Martin Ritchie2007-01-161-2/+9
| | | | | | Updated BlockingMethodFrameListener so it passed FailoverExceptions without wrapping in AMQExceptions. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496661 13f79535-47bb-0310-9956-ffa450edef68
* QPID-299 Messages not being correctly requeued when transacted session closedRobert Greig2007-01-161-1/+85
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496658 13f79535-47bb-0310-9956-ffa450edef68
* QPID-293Martin Ritchie2007-01-167-146/+784
| | | | | | | | | | | | | Added DispatcherCallback and MessageConsumerPair to allow Processed Messages to be returned to the consumer for redelivery whilst pausing the dispatcher. AMQSession updated to create the callback and populate the queue. Created two test cases that check the messages are correctly delivered with and without message listeners for 1 and 2 clients. Minor non-JIRA related. PropertiesFileInitialContextFactory dropped a warn log to info. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496641 13f79535-47bb-0310-9956-ffa450edef68
* QPID-245 Changed client properties to short strings for interop with C++ broker.Robert Greig2007-01-151-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496496 13f79535-47bb-0310-9956-ffa450edef68
* (Patch submitted by Rupert Smith) QPID-297Robert Greig2007-01-151-7/+1
| | | | | | There were junit exclusions in the POM files that were causing junit to not be found when compiling tests. This may be a maven bug, but a better solution is to exclude stuff in assembly descriptors instead. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496414 13f79535-47bb-0310-9956-ffa450edef68
* QPID-294 : Patch supplied by Rob Godfrey - Fix race condition on client ↵Robert Greig2007-01-153-10/+40
| | | | | | connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496302 13f79535-47bb-0310-9956-ffa450edef68
* Created common AMQMethodListener class, allowing the Request and Response ↵Kim van der Riet2007-01-126-63/+41
| | | | | | managers to use a common interface to dispatch events to both the client and servers. Refactoring of bothe the client and broker AMQStateManagers and AMQProtocolSession classes was performed. The refactoring has run aground in the clustering, however, and this still needs to be resolved. As the cluster tests are currently disabled (by whom, I'm not sure), this does not disrupt the overall test result. JIRAs will be opened for this issue. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-282Martin Ritchie2007-01-123-2/+78
| | | | | | Updated AMQConnection and AMQBrokerDetails to check the host:port and add tcp:// if there is no protocol specified. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-146 QPID-112 QPID-278Martin Ritchie2007-01-1216-1305/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary Reworked a lot of the distribution work done by the build system. This ended up with me creating a reduced client distribution (hope that is ok Steve) Each module now has has a distribution directory (except common it may need a tests build later) This will build the individual components in to a distribution binary only, binary with tests and source. To build the binary with tests in the distribution directory use profile tests so $mvn -Ptests In all cases the dependencies have been reduced and correctly assigned to the correct scope. There were a couple of cases where a runtime dependency of one of our dependencies didn't make it in to the distributions so they were added explicitly. This should be looked at again. Specifics Broker: Three new assembly files are located in the distribution/src directory (broker-bin taking heavily from distribution - bin) these generate the three distributions. SimpleFilterManager.java removed slf4j reference broker/test directory removed as it was left over from the ant system Client: Added intelij files to ignore list. client/dist deleted as it was left over from the ant system client/distribution as for the broker three assemblies matching the three distributions Renamed log4j.properties to client.log4j to prevent issues when it is packaged into the jar. Removed old_test ping and requestreply1 as they have been moved to perftests Moved broker back to a test dependency. This required modifying AMQSession.java to remove reference to ExchangeBoundHandler.java Common: Added more common dependencies from broker and client here. Distribution: Reduced the assemblies to only build the full project binary, binary with tests and source. Perftests: Added building of perftests distribution so this can be bundled separately. Resources: Moved Resources from distribution project to root level this allows them to be easily incorporated in all projects. Systests: as with perftests now builds a separate distribution that can be used on an existing installation. renamed log4j.properties to systests.log4j to prevent logging problems. As systests is a module having the code under the test folder isn't accurate as it is the main code. Test code here should be testing the tests :D !! git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495455 13f79535-47bb-0310-9956-ffa450edef68
* Refactor to create a common AMQMethodEvent object. Also created a common ↵Kim van der Riet2007-01-1122-125/+102
| | | | | | AMQProtocolWriter interface for writing frames. These are required for common request and response handlers to be introduced in 0-9. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495380 13f79535-47bb-0310-9956-ffa450edef68
* QPID-255 : Update old_test files to work with AMQShortStringRobert Greig2007-01-113-32/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@495189 13f79535-47bb-0310-9956-ffa450edef68
* QPID-277 Bhupendra Bhusman Bhardwaj2007-01-101-0/+13
| | | | | | adding tests in distribution git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@494797 13f79535-47bb-0310-9956-ffa450edef68
* QPID-275 : (Patch supplied by Rob Godfrey) Fixes to allow broker to pass ↵Robert Greig2007-01-101-2/+2
| | | | | | more of the Python tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@494769 13f79535-47bb-0310-9956-ffa450edef68