n Thu, Apr 24, 2008 at 4:36 PM, Senaka Fernando <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> As a first step towards improving documentation on Qpid, and understanding
> how it works, I wanted to run some examples. I first of all wanted to try
> out the Java examples, but mainly due to no-documentation, I couldn't
> really
> get through. However, I managed to successfully install and try out the C++
> examples, and I'm looking forward to create documentation in this regard.
> There are few questions that I would like to sort out, before getting
> started.
>
> 1. Isn't it better to name examples/examples to something like examples/src
> ?
> 2. What does verfify and verify_all do? When I run it I get something like
> this
The verify scripts in each folder (ex direct, fanout) etc runs the examples
and compare the output with the corresponding {verify_script_name}.out and
report if there are any diffs.
The verify_all in the cpp/examples folder will run all the verify scripts
located within the cpp/examples/examples/.
If you look you could see there are verify, verify_cpp_python and
verify_python_cpp scripts in each of the foldes (direct, pubsub, fanout
..etc)
For example if we the direct folder,
verify - will run the c++ consumer and producer and compare the output with
the verify.out
verify_cpp_python - will run the c++ producer with python consumer and
compare the output with verify_cpp_python.out
verify_python_cpp - will run the python producer with the c++ consumer and
compare the output with verify_python_cpp.out
The verify_all in the java/client/examples/bin will run all the verify
scripts located in the src folders of
java/client/examples/src/main/java/org/apache/qpid/example/jmsexample
There you would see verify, verify_java_python and verify_python_java
scripts.
It works the same as described above.
If you run make check from cpp/ it should compile the examples as well.
If you run the verify_all script with $QPID_SRC as the first parameter
(where QPID_SRC points to the qpid folder in your svn checkout) it should
pick up the python examples.
Python examples are yet to be updated to the new python API so it will not
work with the c++ examples anyway.
There is currently a patch for the python examples and hopefuly I will
commit it soon after some review.
Regards,
Rajith
>
>
> Warning: not verifying python examples, /python/examples not found
> == examples/fanout/verify
> ./verify: 84: source: not found
> FAIL
> == examples/direct/verify
> ./verify: 84: source: not found
> FAIL
> == examples/request-response/verify
> ./verify: 84: source: not found
> FAIL
> == examples/pub-sub/verify
> ./verify: 84: source: not found
> FAIL
>
> I also ran the setup.py, but nothing seem to change.
>
> 3. Where (on the wiki) should I create the docs? These are related to
> "Getting started on C++ examples"
>
> Thanks,
> Senaka
>
--
Regards,
Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/