summaryrefslogtreecommitdiff
path: root/qpid/java/client
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3277: AMQCallbackHandler improvements. Refactor AMQCallbackHandler to ↵Robert Gemmell2011-05-269-71/+230
| | | | | | | | accept ConnectionURL in place of AMQProtocolSession (improved information hiding, ease ability to write good unit tests). Remove unused protected constructor from AMQConnection and MockAMQConnection. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1127939 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3254Rajith Muditha Attapattu2011-05-161-2/+2
| | | | | | | | | The default for routing key should be based on the context. i.e for sending it should be "" and for receiving it should be "#". However we currently don't have a way of handling this properly. Therefore defaulting it to "". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1103884 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3220: Specifying connection url option failover='singlebroker' causes ↵Robert Gemmell2011-05-163-6/+343
| | | | | | | | | the wrong failover policy to be used. Wrote new unit test case and resolved the defect. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1103857 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3254Rajith Muditha Attapattu2011-05-111-0/+5
| | | | | | | | Added a check to ensure that durable subscriptions are only created for Topics. Added code to mark a destination durable. If the addressing string explicitly specified durable==false, it will be overriden. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1102102 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3254Rajith Muditha Attapattu2011-05-113-15/+46
| | | | | | | | | Added logic to resolve the address to ensure corner cases such addresses without subjects are handled properly. The address resolotuion code will determine the defaults for subject (and routing key) by querying the name specified in the address. I also added null checks for getRoutingKey() method and getTopicName() method in both AMQTopic and AMQAnyDestination classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1102002 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3207Rajith Muditha Attapattu2011-05-111-1/+1
| | | | | | | | Rolling back the change until we fix the deadlock issue identified in QPID-3216 Also investigate the other test failure to see if there are any other issues besides the deadlock problem. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1101861 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3245Rajith Muditha Attapattu2011-05-041-0/+5
| | | | | | | The ack fusher task is now cancelled when the session is closed due to an error received from the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099634 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3233Rajith Muditha Attapattu2011-05-034-8/+66
| | | | | | | | If the underlying AMQP session gets closed, the JMS session is now notified along with details that caused the session closure. The JMS Session will throw an exception (with an error code and details) when a user accesses the closed session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099288 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3214Rajith Muditha Attapattu2011-05-031-3/+1
| | | | | | | | | Committing the suggested fix by Gordon Sim. All though the currentException may change by the time we call connection.exceptionReceived() it's not really a big issue. Chance of getting two successive sessions exceptions is rare if not none at all. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099060 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3207Rajith Muditha Attapattu2011-04-141-1/+1
| | | | | | | Changed the value of sendClose to "true" as we need to send message-cancel if the session has not encountered any errors. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092510 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3194Rajith Muditha Attapattu2011-04-081-1/+1
| | | | | | | Changed the keyword from "alt-exchange" to "alternate-exchange". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1090422 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3194Rajith Muditha Attapattu2011-04-081-1/+1
| | | | | | | Added logic to use the alternate exchange when issuing the queue-declare. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1090421 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3182Rajith Muditha Attapattu2011-04-062-3/+6
| | | | | | | A queue-bind is now issue when creating a queue under node props or for the subscription queue under link props. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1089552 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3177: Add missing call to connection resumeAndrew Donald Kennedy2011-04-011-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1087890 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3167: add a unit test of SimpleAMQQueue#processQueue to check delivery ↵Robert Gemmell2011-03-302-2/+2
| | | | | | when subscriptions with unique selectors are in use git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1087000 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add missing ASF licenceRobert Gemmell2011-03-291-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1086769 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3156: Use MapAccessor to retrieve Boolean propertiesAndrew Donald Kennedy2011-03-241-15/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1085187 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3156Rajith Muditha Attapattu2011-03-231-1/+8
| | | | | | | | The address parser treats 'true' as a string while it treats 'True' as a boolean. Therefore I modified the AddressHelper class to expect both forms. The MapAccessor class used for the rest of code already handles this case. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1084462 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2959Rajith Muditha Attapattu2011-03-172-6/+14
| | | | | | | | | Added a temp hack to get the testReplyToWithNamelessExchange passing with the java.0.10 test profile. In doing so I realized that "qpid.declare_exchanges" has no affect on the producer side. Therefore I added a check in BasicMessageProducer_0_10.java to check this flag before issuing an exchange_declare. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1082715 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3143Rajith Muditha Attapattu2011-03-141-1/+0
| | | | | | | | | | | Removed the line which sets the create option to 'always'. Please note that the default create option is set to 'never'. Therefore if just a queue name is specified the client will throw an exception if that queue is not present in the broker. However this check will only be performed when a producer or consumer is created using that destination. Also modified the existing test case to verify the default and the explicit create case. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1081460 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2732Rajith Muditha Attapattu2011-03-081-1/+6
| | | | | | | | The reliability mode is now used on the producer side to determine replay. Any messages transfers sent to a destination marked unreliable will not be added to the replay buffer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079408 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3127: Set accept mode to NONE for NO_ACKNOWLEDGEAndrew Donald Kennedy2011-03-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079402 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3109: Change close throws clause to match parent classAndrew Donald Kennedy2011-03-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079059 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2985: Add producer configurable transaction timeoutsAndrew Donald Kennedy2011-03-082-2/+2
| | | | | | Port of QPID-2864 changes from 0.5.x-dev branch to trunk. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079042 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2732Rajith Muditha Attapattu2011-03-072-4/+19
| | | | | | | | Set the default reliability modes for Topics and Queues. The code now throws an exception if at-least-once is specified for Topics as we don't support it properly atm. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1078971 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3109Rajith Muditha Attapattu2011-03-072-3/+5
| | | | | | | | Added a null check for the destination in both MessageConsumer and MessageProducer close methods. According to the JMS spec the MessageProducer can be created with a null destination and still be used properly by specifying a destination on the send. Therefore this null check especially important on the message producer side. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1078961 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Update trunk versions to 0.11Andrew Stitcher2011-03-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1078098 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2732Rajith Muditha Attapattu2011-03-033-2/+46
| | | | | | | | Only UNRELIABLE and AT_LEAST_ONCE is supported. Currently the reliability mode is used only for determining the accept-mode. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076800 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3109Rajith Muditha Attapattu2011-03-035-11/+67
| | | | | | | | | The isQueueExist method is modified to handle the exception when a queue has been deleted. Both the Message producer and consumer now delete the queue if the delete option is selected and will not check if the queue is empty or if there are any subscribers on it. Also added test cases. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3108: Allow QueueSender queue to be unidentified and still use gettersAndrew Stitcher2011-03-031-44/+43
| | | | | | | - Change error checks so that don't throw an incorrect exception in getters when the queue is null. This should only happen when sending. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2930Rajith Muditha Attapattu2011-03-031-1/+15
| | | | | | | | | | | The getPropertyNames method will filter out any property names whose values are not allowed as per the JMS spec. I could have used the ALLOWED map to check if a value is a valid type. But unfortunately that map contains byte[] as a valid type, which is not correct as per the JMS spec. I did not want to modify that map or the behaviour of the setObjectProperty or getObjectProperty methods as there might be applications out there that is depending on it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076532 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3106Rajith Muditha Attapattu2011-03-032-36/+57
| | | | | | | Instead of checking if it's an instance of AMQQueue, the code the now checks if it's an instance of AMQDestination and javax.jms.Queue to cover the AMQAnyDestination case. The same check is done for topics. Added test cases for QueueReceivers, TopicSubscribers and DurableTopicSubscribers using the new addressing scheme. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076516 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3099Rajith Muditha Attapattu2011-03-012-0/+46
| | | | | | | | | | Added logic to look for the 'host' in the authority field if getHost returns null. Looking at the code that follows, you could definitely make more improvements. However since we are close to the 0.10 release I'd leave things as it is for the time being. I have also added test cases to cover the issues highlighted by the respective JIRA. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076011 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3098Rajith Muditha Attapattu2011-03-011-1/+2
| | | | | | | | This commit allows a MapMessage to accept an UUID object in it's setObject method. Added test cases for directly setting UUID objects or inside Maps and Lists that gets set into the MapMessage body. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1075961 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2979: Added SASL client plugin for ANONYMOUS; added call to register ↵Gordon Sim2011-03-014-0/+111
| | | | | | available plugins for 0-10 codepath. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1075871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3008: Fix failover behaviour in 0-10 for QueueBrowserAutoAckTestAndrew Donald Kennedy2011-02-172-12/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1071631 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3047: Fix QueueDepthWithSelectorTest on 0-10Andrew Donald Kennedy2011-02-171-0/+1
| | | | | | Refactor test and fix 0-10 client session to flush acks git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1071620 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3016: Store soft references to ReplyTo destinationsAndrew Donald Kennedy2011-02-171-14/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1071462 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3050Rajith Muditha Attapattu2011-02-121-1/+1
| | | | | | | Modified the code to use the correct system property name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1069998 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3029: actually set and negotiate the supported max num channels per ↵Robert Gemmell2011-02-048-165/+206
| | | | | | connection during connection handshake. Enable/make the 0-10 client use channel numbers 0 to N-1 in line with the spec, rather than 1-N. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1067210 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1670: Implement an UncaughtExceptionHandler to log exceptions causing ↵Robert Gemmell2011-02-042-19/+57
| | | | | | | | | the permature termination of Qpid client threads. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1067108 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3022: enable the logging tests and fix issues causing failures due to ↵Robert Gemmell2011-01-271-0/+14
| | | | | | minor differences between 0-10 and 0-9 behaviour git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1064086 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3019Rajith Muditha Attapattu2011-01-256-14/+47
| | | | | | | | | The createMessageProducer method now throws a JMSException. The MessageProducer constructors now throw an AMQException allowing any exceptions caught during destination validation to be propogated back to the createMessageProducer method. Fixed the exception handling for the 0-10 code path where all exceptions are chained properly. This allows the user to get all the relavent information by examing the stack trace. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1063123 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3011Rajith Muditha Attapattu2011-01-202-8/+26
| | | | | | | | | | Commiting a fix as per the solution outlined in the above JIRA. A null check is added in the generateDestination method in AbstractAMQMessageDelegate.java where an ExchangeInfo object is created with just the exchange name to allow the destination to be created. The correct information will be querried when a consumer or producer is created with that destination. If a replyTo address is available then the exchange info for that is querried and updated within the updateExchangeTypeMapping method in AMQMessageDelegate_0_10.java git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1061577 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2994Rajith Muditha Attapattu2011-01-111-0/+1
| | | | | | | When the session is marked transactional, message transfers are not replayed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057460 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2959Rajith Muditha Attapattu2010-11-241-2/+4
| | | | | | | | If the exchange or routing key is null, it's now being set to empty string. If set to empty string the message will be sent to the nameless exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1038773 13f79535-47bb-0310-9956-ffa450edef68
* Correct typosRobert Gemmell2010-11-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1037923 13f79535-47bb-0310-9956-ffa450edef68
* add README.txt file for Java client, include in the distributed binary ↵Robert Gemmell2010-11-222-1/+58
| | | | | | convenience archive git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1037881 13f79535-47bb-0310-9956-ffa450edef68
* Remove file from the old maven build systemRobert Gemmell2010-11-221-35/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1037878 13f79535-47bb-0310-9956-ffa450edef68
* Remove out of date/redundant scripts and README.txt fileRobert Gemmell2010-11-223-144/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1037877 13f79535-47bb-0310-9956-ffa450edef68