summaryrefslogtreecommitdiff
path: root/java/client/example
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* QPID-1034 by Senaka FernandoCarl C. Trieloff2008-05-161-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656924 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-0411-30/+35
| | | | 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 associated with JIRA QPID-859Rajith Muditha Attapattu2008-03-201-2/+10
| | | | | | | The verify script is modfified to start and stop the c++ broker for each test. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@639098 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-1811-10/+199
| | | | | | | | | | | | | | | | | | 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
* added client/example to the buildRafael H. Schloming2008-02-131-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@627531 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
* Changed version to M3 to avoid confusion with old M2 snapshotsRajith Muditha Attapattu2008-01-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@615264 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
* Added AMQP API examples. The intention is to include these in the M3 release.Rajith Muditha Attapattu2008-01-118-0/+646
| | | | | | | | Also they should interoperate with python and c++ examples. Currently I couldn't test complete interoperability due to some c++ examples not compiling and also some python examples doesn't seem to run out of the box due to dependency issues. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@611251 13f79535-47bb-0310-9956-ffa450edef68
* fixed speling issues and pubsub onesArnaud Simon2007-12-192-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@605613 13f79535-47bb-0310-9956-ffa450edef68
* fixed speling issues and pubsub onesArnaud Simon2007-12-194-17/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@605609 13f79535-47bb-0310-9956-ffa450edef68
* changed for accepting messages from python and c++Arnaud Simon2007-12-075-197/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602154 13f79535-47bb-0310-9956-ffa450edef68
* changed for accepting messages from python and c++Arnaud Simon2007-12-072-18/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602127 13f79535-47bb-0310-9956-ffa450edef68
* clean up outputArnaud Simon2007-12-076-16/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602086 13f79535-47bb-0310-9956-ffa450edef68
* Removed log4j depsArnaud Simon2007-12-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602085 13f79535-47bb-0310-9956-ffa450edef68
* Removed log4j depsArnaud Simon2007-12-0710-34/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602084 13f79535-47bb-0310-9956-ffa450edef68
* Fixed typoRajith Muditha Attapattu2007-12-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601876 13f79535-47bb-0310-9956-ffa450edef68
* Moved runSample.shAlan Conway2007-12-061-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601863 13f79535-47bb-0310-9956-ffa450edef68
* Changed output path to .Arnaud Simon2007-12-061-8/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601802 13f79535-47bb-0310-9956-ffa450edef68
* run script for compiling and running the samplesArnaud Simon2007-12-061-0/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601800 13f79535-47bb-0310-9956-ffa450edef68
* moved base example into the common packageArnaud Simon2007-12-0510-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601388 13f79535-47bb-0310-9956-ffa450edef68
* Updated ofr converting request text in upercase textArnaud Simon2007-12-033-67/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@600561 13f79535-47bb-0310-9956-ffa450edef68