summaryrefslogtreecommitdiff
path: root/java/client/example/src
Commit message (Collapse)AuthorAgeFilesLines
* Extension of publisher class for TopicsMarnie McCormack2009-10-231-0/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829106 13f79535-47bb-0310-9956-ffa450edef68
* Fix for large files in FileMessageFactory, changes to Publisher to make ↵Marnie McCormack2009-10-233-13/+181
| | | | | | topic publication easier, added MultiMessageDispatcher class to allow parameterised sending of messages to a queue or a topic git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829102 13f79535-47bb-0310-9956-ffa450edef68
* Clarified for users who do not run the Java broker on the same machineJonathan Robie2009-08-181-3/+4
| | | | | | | as client examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@805418 13f79535-47bb-0310-9956-ffa450edef68
* The example verification was broken.Rajith Muditha Attapattu2009-03-2420-32/+32
| | | | | | | Fixed the verify files to use the correct paths for log4j file, python and c++ examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@757641 13f79535-47bb-0310-9956-ffa450edef68
* Modified README to match runSample.shJonathan Robie2009-03-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@756072 13f79535-47bb-0310-9956-ffa450edef68
* Modified runSample.sh to use a relative path to the example source.Jonathan Robie2009-03-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@756071 13f79535-47bb-0310-9956-ffa450edef68
* Changed the default location for examples.Jonathan Robie2009-03-192-2/+2
| | | | | | | | | | !!! HACK ALERT !!! These files have long contained a default path used in one particular vendor's installation. We need to fix this! Today's fix makes the default correct for at least that one vendor, but we need to find a better way to do this. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@756032 13f79535-47bb-0310-9956-ffa450edef68
* Made the various receive variants check that the server queue is empty ↵Rafael H. Schloming2009-02-255-0/+10
| | | | | | before returning null. Also modified AMQQueueBrowser to use receiveNoWait() when browsing queues using 0-10. These changes uncovered numerous second order bugs, mostly in failover. These are also fixed. This fixes QPID-1642 and QPID-1643. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747963 13f79535-47bb-0310-9956-ffa450edef68
* qpid-1647: Added headers exchange exampleArnaud Simon2009-02-053-0/+267
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@741151 13f79535-47bb-0310-9956-ffa450edef68
* Qpid-1587: Added LVQ samplesArnaud Simon2009-01-163-0/+246
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734994 13f79535-47bb-0310-9956-ffa450edef68
* Added the ASF license header to the following files.Rajith Muditha Attapattu2008-12-165-0/+96
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@726943 13f79535-47bb-0310-9956-ffa450edef68
* removed incubating from various shell scripts, release artifacts, and READMEsRafael H. Schloming2008-12-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724948 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1480 : Updated Simple Request Response code to loop on the shutdownHook ↵Martin Ritchie2008-11-241-7/+10
| | | | | | to ensure that it is zero before exit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720183 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1480 : Updated Simple Request Response codeMartin Ritchie2008-11-242-12/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720181 13f79535-47bb-0310-9956-ffa450edef68
* updated version numbers and release notes for M4Rafael H. Schloming2008-11-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714267 13f79535-47bb-0310-9956-ffa450edef68
* This is for QPID-1296Rajith Muditha Attapattu2008-10-238-8/+8
| | | | | | | | | | | | | added a boolean to the connect method to indicate whether an SSL connection should be created. currently there seems to be two issues. 1. The shutdownInput method used in IoReceiver is not supported by the SSLSocket implementation. 2. I haven't able to get client side authentication working. For item 1 we may need to use nio classes to get around the issue. For item 2 I am yet to figure out the correct config options to get client side auth working. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707453 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1339: refactor of low level client API to permit connections to exist ↵Rafael H. Schloming2008-10-098-339/+124
| | | | | | in a disconnected state as well as to provide a central point from which to track session state git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703208 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1258 add ASL to java files that were missing itAidan Skinner2008-08-228-0/+168
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@688094 13f79535-47bb-0310-9956-ffa450edef68
* Add Simple Request/Response Example from M2.xMartin Ritchie2008-08-212-0/+476
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@687665 13f79535-47bb-0310-9956-ffa450edef68
* Profiling driven changes:Rafael H. Schloming2008-08-053-24/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - made AMQShortString cache the toString() value - added static initializer to IoTransport to disable use of pooled byte buffers - modified IoSender to permit buffering - removed OutputHandler and eliminated intermediate Frame generation between Disassembler and Sender<ByteBuffer> (IoSender) - made Disassembler take advantage of IoSender's buffering - removed Header and Data as distinct protocol events, added Header and Body members to MessageTransfer - modified Assembler and Disassembler to decode/encode Header and Data directly to/from MessageTransfer - modified Disassembler to only write data if encoding of headers is successful - added Strings.toUTF8(String) -> byte[] to do proper UTF-8 encoding that is also fast for 7-bit ascii - modified JMSTextMessage to use the Strings.toUTF8 - modified QpidBench to only generate 7-bit ascii when using TextMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682887 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1072: renamed org.apache.qpidity -> org.apache.qpidRafael H. Schloming2008-07-298-52/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680803 13f79535-47bb-0310-9956-ffa450edef68
* Primarily profiling driven changes:Rafael H. Schloming2008-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - added batched writes of commands/controls issued on a session - copy fragmented frames and segments rather than trying to decode them piecemeal, removed FragmentDecoder - added caching for str8 encode/decode - compute sizes as we encode by going back and filling in the amount of bytes written rather than computing it up front - added SYNC option to commands - renamed NO_OPTION argument to NONE - added a timeout to Client.java - removed use of UUID.fromString in BasicMessageProducer_0_10.java git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1157: Added cc example automation scriptsArnaud Simon2008-06-3020-34/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@672766 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1134: updated username:password --> guest:guestArnaud Simon2008-06-125-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@667015 13f79535-47bb-0310-9956-ffa450edef68
* I am applying the patch provided by Senaka attached to QPID-968Rajith Muditha Attapattu2008-05-262-1/+18
| | | | | | | We need to get rid of the defaults that points to rhm. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660254 13f79535-47bb-0310-9956-ffa450edef68
* Modified the verify_java_python.in file to reflect the changes made to the ↵Rajith Muditha Attapattu2008-05-141-3/+3
| | | | | | | | | python code in rev 655965. The change was to correct a few typos. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656071 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1044: Part of patch from Jonathan Robie + changes to verify scripts to ↵Gordon Sim2008-05-124-84/+82
| | | | | | keep automated testing working. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655568 13f79535-47bb-0310-9956-ffa450edef68
* Update and cleanup scripts for automated 0-10 example testing.Gordon Sim2008-05-0410-16/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653253 13f79535-47bb-0310-9956-ffa450edef68
* QPID-832 merge M2.xAidan Skinner2008-04-241-0/+171
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@651133 13f79535-47bb-0310-9956-ffa450edef68
* QPID-901: updated the JMS examples to use legal delivery mode values as they ↵Rafael H. Schloming2008-04-162-2/+3
| | | | | | are now checked with the 0-10 final updates git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648784 13f79535-47bb-0310-9956-ffa450edef68
* QPID-901: updates to the java client to use the 0-10 final spec instead of ↵Rafael H. Schloming2008-04-168-25/+41
| | | | | | the 0-10 preview spec; this includes improvements to the codegen process as well as some modifications to the shared code path in the client to not lose per message state when consumers are closed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648692 13f79535-47bb-0310-9956-ffa450edef68
* QPID-829 Remove 0.10 specific URL. The code path is now selected based on ↵Arnaud Simon2008-04-025-5/+5
| | | | | | broker response. We first try the highest protocol version and update the handler if the broker replies with a different protocol version. NOTE that we need to update the current java broker and 0.8 client for handling protocol headers. This should happen with the M2.1 merge. For the moment we only support an in VM 0.8 broker. Moreover, we'll need to migrate to a 0.10 vs 99.0 protocol version. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@643822 13f79535-47bb-0310-9956-ffa450edef68
* This commit is for JIRA QPID-859Rajith Muditha Attapattu2008-03-2030-0/+1026
| | | | | | | | This contains verify scripts and xxx.in files for pubsub, fanout and requestResponse. These scripts will run the java examples against itself, c++ and python git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@639095 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-864.Rajith Muditha Attapattu2008-03-203-11/+24
| | | | | | | | This allows the Listener or Consumer to start multiple instances by taking a JNDI name of a queue bound to the topic exchange as a program argument. The JNDI name should be defined in the fanout.properties. Currently 3 such queues are defined. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@639090 13f79535-47bb-0310-9956-ffa450edef68
* This contains a trivial fix for QPID-863.Rajith Muditha Attapattu2008-03-192-86/+38
| | | | | | | | | I also took the oportunity to organize the code a bit more. Also removed the temp hack we used to bind a Topic to more than one routingkey to interop with the c++/python examples. The topics can now be bound to more than one routingkey in the jndi properties file. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@639078 13f79535-47bb-0310-9956-ffa450edef68
* This commit is for QPID-859Rajith Muditha Attapattu2008-03-1810-10/+173
| | | | | | | | | | | | | | | | | | The verify_all script will run all verify scripts under each example Following is a description of each script type ============================================== verify - runs java producer and consumer. verify_java_python - runs java producer and python consumer verify_python_java - runs python consumer and java consumer verify_cpp_java - runs cpp producer and java consumer verify_java_cpp - runs java producer and cpp consumer The xxx.in file contains the expected output. It will be compared against the output of the test to determine any failures. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@638553 13f79535-47bb-0310-9956-ffa450edef68
* verify scripts for the JMS direct exchange examples. This is tracked in JIRA-859Rajith Muditha Attapattu2008-03-175-0/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@638019 13f79535-47bb-0310-9956-ffa450edef68
* print message text directlyRafael H. Schloming2008-02-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627654 13f79535-47bb-0310-9956-ffa450edef68
* updated runSample.sh from jrobieRafael H. Schloming2008-02-131-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627536 13f79535-47bb-0310-9956-ffa450edef68
* I accidently commited some modifications done for a quick test, I reversed ↵Rajith Muditha Attapattu2008-01-291-19/+1
| | | | | | those changes git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@616545 13f79535-47bb-0310-9956-ffa450edef68
* added support to notify connection.close to the JMSExceptionListenerRajith Muditha Attapattu2008-01-291-1/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@616542 13f79535-47bb-0310-9956-ffa450edef68
* Added warningArnaud Simon2008-01-181-9/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@613155 13f79535-47bb-0310-9956-ffa450edef68
* Qpid 742Arnaud Simon2008-01-182-59/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@613114 13f79535-47bb-0310-9956-ffa450edef68
* removed argsArnaud Simon2008-01-171-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612829 13f79535-47bb-0310-9956-ffa450edef68
* Cleanded up the samplesArnaud Simon2008-01-1718-748/+346
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612811 13f79535-47bb-0310-9956-ffa450edef68
* This example is written using the AMQP Java API and interoperates with the ↵Rajith Muditha Attapattu2008-01-163-0/+223
| | | | | | python and c++ client git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612598 13f79535-47bb-0310-9956-ffa450edef68
* This example is written to interoperate with the c++ and python examples and ↵Rajith Muditha Attapattu2008-01-164-0/+532
| | | | | | looksup a destination defined in the properties file. The destination defines a fannout exchange and a queue git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612597 13f79535-47bb-0310-9956-ffa450edef68
* Fixed various compilation errorsRajith Muditha Attapattu2008-01-165-230/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612593 13f79535-47bb-0310-9956-ffa450edef68
* Modified the direct exchange examples to interoperate with the c++ and ↵Rajith Muditha Attapattu2008-01-164-107/+104
| | | | | | | | | | | | python examples by allowing the ability to specify a routing key that is different from it's queue name. Also deleted the sample.properties and replaced them by property files for each example. I also removed the dependency on the BaseExamples class. Waiting for Arnaud to review it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612584 13f79535-47bb-0310-9956-ffa450edef68
* Changed for using JNDI destinations and log4J conf fileArnaud Simon2008-01-166-21/+116
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612473 13f79535-47bb-0310-9956-ffa450edef68