[jboss-cvs] JBoss Messaging SVN: r5112 - branches/amqp_integration.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 14 11:34:54 EDT 2008


Author: jmesnil
Date: 2008-10-14 11:34:53 -0400 (Tue, 14 Oct 2008)
New Revision: 5112

Added:
   branches/amqp_integration/README_AMQP.txt
Log:
README explaining the manual procedure to test AMQP integration

Added: branches/amqp_integration/README_AMQP.txt
===================================================================
--- branches/amqp_integration/README_AMQP.txt	                        (rev 0)
+++ branches/amqp_integration/README_AMQP.txt	2008-10-14 15:34:53 UTC (rev 5112)
@@ -0,0 +1,53 @@
++------------------+
+| AMQP Integration |Ê
++------------------+
+
+JBoss Messaging does not provide a client API for AMQP.
+
+To test JBoss Messaging AMQP interoperability, we intend to use Qpid tests.
+
+For now, I use a single Ruby test to check that JBoss Messaging can received a
+message published by Qpid Ruby client.
+
+1. Download QPid 1.0 M2.1
+2. modify ruby/tests/basic.rb:
+
+    def publish(body, headers = {})
+      ...
+      ch.basic_publish(:routing_key => "queuejms.testQueue", :content => content)
+      ...
+    end
+
+   and comment all tests except test_publish_headers:
+   
+   def test_publish_headers(); publish("hello world", :content_type => "text/plain", :foo => "bar
+") end
+   
+   
+3. run JBoss Messaging server:
+
+   $ cd $JBOSS_MESSAGING_HOME
+   $ ant clean runServer
+   
+4. Run the Ruby test
+
+   $ cd $QPID_HOME/ruby
+   $ ./run_tests
+   Loaded suite ./run-tests
+   Started
+   ...
+   Finished in 1.0873 seconds.
+   
+   1 tests, 1 assertions, 0 failures, 0 errors
+   
+5. Check that a message is in the queuejms.testQueue using jconsole
+6. since JBoss Messaging does not handle delivering AMQ message at the moment,
+I've hacked the SimpleClient example to consume the message from queuejms.testQueue:
+
+   $ cd $JBOSS_MESSAGING_HOME
+   $ ant SimpleClient
+   ...
+   SimpleClient:
+     [java] msg.getPayload() = hello world
+   
+   
\ No newline at end of file




More information about the jboss-cvs-commits mailing list