You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Hiram Chirino <hi...@hiramchirino.com> on 2009/01/08 22:51:40 UTC

Using the python qpid client with jython...

Hi,

I'm interested in using the python qpid client with jython.  I've
gotten pretty far but I've had to make some slight modifications to
get it to run.
Basically,

1) a couple of "from __future__ import generators" were needed.
2) socket.SSLType is not defined so a try .. except AttributeError was
needed (I guess jython won't be able to do SSL but thats fine with
me).
3) textwrap module is missing, was able to get a compatible one for
jython from dejango (
http://www.hpc.jcu.edu.au/projects/kepler/browser/jython-django/trunk/jython-Lib/textwrap.py?rev=128
)
4) logging module is also missing, could not find one out there so I
just commented out all the logging statements.  Yeah ugly,
implementing a stub noop logging modules would be better.

Anyways.. it does not seem to ominous of a task to get jython
compatibility.  An I the only guy interested in such a thing?

-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://open.iona.com

Re: Using the python qpid client with jython...

Posted by Carl Trieloff <cc...@redhat.com>.
Hiram Chirino wrote:
> Hi,
>
> I'm interested in using the python qpid client with jython.  I've
> gotten pretty far but I've had to make some slight modifications to
> get it to run.
> Basically,
>
> 1) a couple of "from __future__ import generators" were needed.
> 2) socket.SSLType is not defined so a try .. except AttributeError was
> needed (I guess jython won't be able to do SSL but thats fine with
> me).
> 3) textwrap module is missing, was able to get a compatible one for
> jython from dejango (
> http://www.hpc.jcu.edu.au/projects/kepler/browser/jython-django/trunk/jython-Lib/textwrap.py?rev=128
> )
> 4) logging module is also missing, could not find one out there so I
> just commented out all the logging statements.  Yeah ugly,
> implementing a stub noop logging modules would be better.
>
> Anyways.. it does not seem to ominous of a task to get jython
> compatibility.  An I the only guy interested in such a thing?
>
>   

cross posting to users list also.
Carl.

Re: Using the python qpid client with jython...

Posted by Carl Trieloff <cc...@redhat.com>.
Hiram Chirino wrote:
> Hi,
>
> I'm interested in using the python qpid client with jython.  I've
> gotten pretty far but I've had to make some slight modifications to
> get it to run.
> Basically,
>
> 1) a couple of "from __future__ import generators" were needed.
> 2) socket.SSLType is not defined so a try .. except AttributeError was
> needed (I guess jython won't be able to do SSL but thats fine with
> me).
> 3) textwrap module is missing, was able to get a compatible one for
> jython from dejango (
> http://www.hpc.jcu.edu.au/projects/kepler/browser/jython-django/trunk/jython-Lib/textwrap.py?rev=128
> )
> 4) logging module is also missing, could not find one out there so I
> just commented out all the logging statements.  Yeah ugly,
> implementing a stub noop logging modules would be better.
>
> Anyways.. it does not seem to ominous of a task to get jython
> compatibility.  An I the only guy interested in such a thing?
>
>   

cross posting to users list also.
Carl.