summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* added a null check for connection settingsRajith Muditha Attapattu2010-01-291-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904375 13f79535-47bb-0310-9956-ffa450edef68
* moved pprint from JAddr into separate utility class and use it from Address ↵Rafael H. Schloming2010-01-283-112/+156
| | | | | | to implement a property toString git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904162 13f79535-47bb-0310-9956-ffa450edef68
* Added a null check for connection as some test cases use mock sessions by ↵Rajith Muditha Attapattu2010-01-281-1/+1
| | | | | | passing null as the connection parameter git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904126 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2352Rajith Muditha Attapattu2010-01-284-1/+233
| | | | | | | The SASL encryption layer is not fully functional, however it's dormant unless explicitly enabled using the jvm arg "qpid.sasl_encryption" or the connection parameter "sasl_encryption". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903942 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2363Rajith Muditha Attapattu2010-01-284-4/+27
| | | | | | | I added use_legacy_map_msg_format as a connection paramter to force the client to use the old map message format. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903940 13f79535-47bb-0310-9956-ffa450edef68
* This commit contains the changes agreed upon in QPID-2363 except for the ↵Rajith Muditha Attapattu2010-01-286-108/+74
| | | | | | connection parameter which will be added shortly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903924 13f79535-47bb-0310-9956-ffa450edef68
* forgot to remove the unused boolean flagRajith Muditha Attapattu2010-01-281-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903919 13f79535-47bb-0310-9956-ffa450edef68
* moving the logic of creating the map message to the AMQSession.java.Rajith Muditha Attapattu2010-01-281-16/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903917 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2363Rajith Muditha Attapattu2010-01-2710-21/+328
| | | | | | | | I am comitting the patch as it is. I will make the agreed changes in a subsequent commit shortly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903911 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2347 broke some java tests; I believe these make incorrect assumptions ↵Gordon Sim2010-01-223-6/+5
| | | | | | about durable subscriptions and have changed them accordingly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902231 13f79535-47bb-0310-9956-ffa450edef68
* added boolean literals to java & python address parser; added validation to ↵Rafael H. Schloming2010-01-222-1/+15
| | | | | | python address usage git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902095 13f79535-47bb-0310-9956-ffa450edef68
* The commit contains fixes for QPID-2351, QPID-2350 and some ground work for ↵Rajith Muditha Attapattu2010-01-2113-93/+351
| | | | | | | | | | | | | | QPID-2352 - Modified Connection.java to add more than one ConnectionListener. This was done to facilitate the SASL encryption patch - QPID-2352. - Changed the access modifier for getSaslClient method to "public" to allow the SaslClient to be retrieved by the SASL encryption code -QPID-2352. - Introduced ConnectionSettings object to hold all the configuration options. Previous constructor methods remains unchanged. - Modified the ClientDelegate to handle heartbeat and idelTimeout value properly. - Added support to specify config options via the connection URL - QPID-2351 - Added support to handle the heartbeat/idle_timeout options properly in the 0-10 code - QPID-2350. However once QPID-2343 is completed, the code will be further simplified. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901506 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2350Rajith Muditha Attapattu2010-01-201-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901448 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2349 : Fixed Protocol Version negotiation. The Negotiated protocol ↵Martin Ritchie2010-01-206-8/+19
| | | | | | | | | version was not given to the ProtocolSession. Once this is done the correct delegate is enabled on connection. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901341 13f79535-47bb-0310-9956-ffa450edef68
* added java address parser (QPID-1831)Rafael H. Schloming2010-01-2011-0/+1239
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901268 13f79535-47bb-0310-9956-ffa450edef68
* fixed generics warnings; added join methodRafael H. Schloming2010-01-201-2/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901267 13f79535-47bb-0310-9956-ffa450edef68
* Added detailed instructions for running the individual examples. ↵Jonathan Robie2010-01-201-1/+272
| | | | | | Instructions are taken from the MRG Messaging Tutorial. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901241 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2343Rajith Muditha Attapattu2010-01-192-2/+154
| | | | | | | | | I have added the basis for using a single config source for resolving property names. We could now add a set of new properties that follows the naming convention agreed on the list while providing support for old property names. Next step is to dig the code for all the properties and populate the correct tables in ClientProperties.java git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901002 13f79535-47bb-0310-9956-ffa450edef68
* Changed the setIdleTimeout method to take an int instead of a long.Rajith Muditha Attapattu2010-01-1912-25/+23
| | | | | | | | The socket interface takes the so_timeout as an int and also the AMQP heartbeat interval is taken as an int. This change will help simplify the code that handles heartbeats. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901000 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2262 : Removed SALCT from from exclude list and added required null check.Martin Ritchie2010-01-192-13/+35
| | | | | | | Updated references to QPID-1204 to QPID-2345 which talks more to the issue of setting exception cause when the connection is closed by the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900943 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1825 : Updated test to only start the 'clock' for timeout when the ↵Martin Ritchie2010-01-191-3/+14
| | | | | | message count on the queue hasn't changed after a 100ms sleep. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900919 13f79535-47bb-0310-9956-ffa450edef68
* This is a first step towards QPID-2343Rajith Muditha Attapattu2010-01-187-7/+7
| | | | | | | | The common module also contains code for the client, and therefore contains configuration required for the client to be accessible from within the common module. Therefore the ClientProperties.java is best be placed inside the common module. The goal is to have a place holder for all configuration properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900595 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2137 : Update QpidTestCase to set QPID_WORK on the external broker ↵Martin Ritchie2010-01-153-5/+8
| | | | | | based on the port of the running broker. This allows multiple brokers to be started by QTC with a given QPID_WORK value. Removed manual changing of QPID_WORK in FailoverBaseCase as there was no way to know what that value was later. All calls to startBroker in QTC will correctly append the port to the given QPID_WORK value. AcknowledgeOnMessageTest was updated to provide some extra debugging to help aid later investigation of why messages are not recieved after failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899797 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1662 : Added logged to TimeToLiveTest. This showed that the second ↵Martin Ritchie2010-01-151-2/+8
| | | | | | | | | | message was not recieved and so the third was non-null and caused the test failure. Adjusting the timeout for msgs 1 and 2 to 5s helped ensure that they were correctly received. I've left the logging in so that we can see what the results of the three receives were even if it fails on one of the asserts. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899782 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2340 : Fix ProducerFlowControlTest to call a synchronous operation ↵Robert Godfrey2010-01-141-0/+4
| | | | | | between sends (merged from 0.5-dev) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2340 : Fix ProducerFlowControlTest to call a synchronous operation ↵Robert Godfrey2010-01-144-5/+19
| | | | | | between sends (merged from 0.5-dev) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899296 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2137 : Add a test that creates log messages simultaneously in multiple ↵Martin Ritchie2010-01-131-3/+101
| | | | | | threads to validate the previous change. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898953 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2137 : Update ot LogMessages velocity macro to create a new ↵Martin Ritchie2010-01-131-21/+16
| | | | | | MessageFormat for each log message as re-using a static formatter is not thread safe. The gap between applyPattern() and format() gives another thread the chance to change the pattern. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898821 13f79535-47bb-0310-9956-ffa450edef68
* Added a null check for SASL client in the connectionOpenOk methodRajith Muditha Attapattu2010-01-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898634 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2339Rajith Muditha Attapattu2010-01-121-9/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898570 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2174Rajith Muditha Attapattu2010-01-124-7/+70
| | | | | | | | I couldn't find any straight forward way to grab the proper ID from the SASL client. Therefore I had to use the java GSSAPI classes to create a security context to grab the ID. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898505 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2173Rajith Muditha Attapattu2010-01-111-2/+32
| | | | | | | | | The qpid.client_process could also be set to something more descriptive as follows using a jvm argument. -Dqpid.client_process="My Billing App" Currently added the prop names as plain strings. They will be moved to a single location as part of wider effort in organizing our configuration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897985 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2336Rajith Muditha Attapattu2010-01-113-3/+16
| | | | | | | The fix allows an idle_timeout of zero to be set as the heartbeat interval with a warning message to say heartbeats are disabled. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897922 13f79535-47bb-0310-9956-ffa450edef68
* There is mistake in a commit made for QPID-1830 in rev 891805Rajith Muditha Attapattu2010-01-081-2/+2
| | | | | | | | Due to the mistake a get operation could reference an index out of bounds or it could print fewer items than what is required. This commit corrects that mistake. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897323 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2322: Add new createUser and setPassword methods using String for ↵Robert Gemmell2010-01-066-49/+67
| | | | | | passwords. Position these after the older now-deprecated char[] methods within the UserManagement interface to manipulate the MBeanInfo generated, resulting in overwriting the OperationData of the deprecated method on the old 0.5 management console and forcing use of these newer methods rather than the incompatible char[] based methods. Remove previously added compatibility check as it is no longer required. Update current management console to use the new String based methods when available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896693 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2322: change the JMX parameter name for the password parameter to ↵Robert Gemmell2010-01-062-2/+48
| | | | | | prevent the 0.5 management console from sending an MD5-hashed password to the once again versionless UserManagement MBean. Add compatibility check to alert users of the old console they should upgrade to a newer release. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896692 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2322: remove unused version key from the MBean ObjectName'sRobert Gemmell2010-01-0620-43/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896674 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2325 : Fix SASL server for PLAIN so that it works with C++ and Ruby clientsRobert Godfrey2010-01-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2315: split out commons-configuration from common.libs property and add ↵Robert Gemmell2010-01-051-8/+10
| | | | | | | | | to libs for modules other than client that depend on common.libs. Add commons-lang and commons-collections to client.libs merge from 0.5.x-dev r894875 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@895992 13f79535-47bb-0310-9956-ffa450edef68
* Upped qpid version to 0.7 for next development cycleAndrew Stitcher2010-01-044-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@895789 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2308: Update the DerbyStore createExchange() method to check for ↵Robert Gemmell2010-01-042-26/+16
| | | | | | existing exchange entry in the store first. Remove the no-longer-required workarounds for QPID-2096 that prevent addition of the default and config-defined durable exchanges to the store at startup and so lead to failure to recover the associated bindings on subsequent store recovery cycles git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@895736 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2096: decouple the addition of durable exchanges to the store from ↵Robert Gemmell2010-01-047-11/+32
| | | | | | exchange registration. Remove auto-delete related persistence restriction from 0-10 based exchange declarations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@895735 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2155: remove stray character causing parser warnings during broker startupRobert Gemmell2009-12-221-1/+1
| | | | | | | merge from r892761 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@893301 13f79535-47bb-0310-9956-ffa450edef68
* I forgot to add the package names when adding the tests in r892119Rajith Muditha Attapattu2009-12-181-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@892304 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2273 : Fix Protocol NegotiationRobert Godfrey2009-12-1814-31/+156
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@892301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2177: insert a synchronous operation to alleviate the recieve race ↵Robert Gemmell2009-12-181-0/+5
| | | | | | condition in the test git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@892228 13f79535-47bb-0310-9956-ffa450edef68
* The following tests exhibits randomly failures for the last 2 months or so.Rajith Muditha Attapattu2009-12-181-1/+7
| | | | | | | | | | | I am adding them to the Exclude list until they are fixed. FailoverBeforeConsumingRecoverTest QPID-2225 SimpleACLTest.testClientPublishInvalidQueueSuccess - QPID-2262 MINANetworkDriverTest - QPID-2224 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@892119 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1830Rajith Muditha Attapattu2009-12-172-4/+16
| | | | | | | | | I have removed the checkReadable() method from the toBodyString() This will enable the toString() method to be used any time on message. I have also modified the Functions.str() to take in an additional parameter to denote to the starting position of the buffer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891805 13f79535-47bb-0310-9956-ffa450edef68
* This is the first attempt at fixing QPID-2283Rajith Muditha Attapattu2009-12-161-11/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891416 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2155 : Updated log4j file with more sensible default values for the ↵Martin Ritchie2009-12-161-16/+29
| | | | | | | | QpidRollingFileAppender appender. Also added more local documentation explaining the more obscure params git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891332 13f79535-47bb-0310-9956-ffa450edef68