You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Jonathan Robie <jo...@redhat.com> on 2007/11/06 16:34:04 UTC

QPid examples - C++, Python, Java

Hi Alan,

Here is the current version of the examples I've been working on. Please 
look them over and check them in.  The C++ API has changed in ways that 
will let me simplify those, the Python API is changing as we speak, and 
the Java example is a bit anemic, but I'd like to get the current 
version checked in for all languages.

Thanks!

Jonathan

Re: QPid examples - C++, Python, Java

Posted by Robert Godfrey <ro...@gmail.com>.
I think it would be good to make the examples consistent between languages,
which I believe is what Jonathan was doing.

I wouldn't want to lose any of the existing Java examples however,

Rob

On 07/11/2007, Jonathan Robie <jo...@redhat.com> wrote:
>
> Rupert Smith wrote:
> > Jonathan,
> >
> > Just in case you did not realize it, but there are already some Java
> > examples under client/examples.
> >
>
> OK, I won't focus on Java examples.
>
> Jonathan
>

Re: QPid examples - C++, Python, Java

Posted by Jonathan Robie <jo...@redhat.com>.
Rupert Smith wrote:
> Jonathan,
>
> Just in case you did not realize it, but there are already some Java
> examples under client/examples.
>   

OK, I won't focus on Java examples.

Jonathan

Re: QPid examples - C++, Python, Java

Posted by Rupert Smith <ru...@googlemail.com>.
Jonathan,

Just in case you did not realize it, but there are already some Java
examples under client/examples.

Rupert

On 06/11/2007, Jonathan Robie <jo...@redhat.com> wrote:
>
> Hi Alan,
>
> Here is the current version of the examples I've been working on. Please
> look them over and check them in.  The C++ API has changed in ways that
> will let me simplify those, the Python API is changing as we speak, and
> the Java example is a bit anemic, but I'd like to get the current
> version checked in for all languages.
>
> Thanks!
>
> Jonathan
>
>

Re: QPid examples - C++, Python, Java

Posted by Jonathan Robie <jo...@redhat.com>.
Thanks, Ted - that really does make the identifiers more reasonable.

Jonathan

Ted Ross wrote:
> Jonathan,
>
> One minor point:  I find that I get shorter and friendlier looking 
> session-specific queue names by using
>
>    base64.urlsafe_b64encode (session.session_id)
>
> instead of
>
>    repr (session.session_id)
>
> -Ted
>
> Jonathan Robie wrote:
>> Hi Alan,
>>
>> Here is the current version of the examples I've been working on. 
>> Please look them over and check them in.  The C++ API has changed in 
>> ways that will let me simplify those, the Python API is changing as 
>> we speak, and the Java example is a bit anemic, but I'd like to get 
>> the current version checked in for all languages.
>>
>> Thanks!
>>
>> Jonathan
>


Re: QPid examples - C++, Python, Java

Posted by Ted Ross <tr...@redhat.com>.
Jonathan,

One minor point:  I find that I get shorter and friendlier looking 
session-specific queue names by using

    base64.urlsafe_b64encode (session.session_id)

instead of

    repr (session.session_id)

-Ted

Jonathan Robie wrote:
> Hi Alan,
>
> Here is the current version of the examples I've been working on. 
> Please look them over and check them in.  The C++ API has changed in 
> ways that will let me simplify those, the Python API is changing as we 
> speak, and the Java example is a bit anemic, but I'd like to get the 
> current version checked in for all languages.
>
> Thanks!
>
> Jonathan