[Zope-dev] A modest proposal: Replace medusa with Twisted

Phil Harris phil.harris@zope.co.uk
Thu, 11 Oct 2001 16:47:32 +0100


Been there, done that.

JPE (as it was originally known, Java Python Extensions), has a fatal flaw,
at most one JVM can be attached to a Python script at any one time, this
single instance attaches itself to a single thread, and is not available in
any other thread.

I've had this working with Zope, even serving pages with Java stuff creating
the content, but only intermittently. When Zope serves from the thread with
the JVM attached everything is great, as soon as the thread changes, all
hell breaks loose.

That said, I think JPE/PJE is the best way forward, but this problem needs
to be solved (if it hasn't already).

Phil

----- Original Message -----
From: "Tim Hoffman" <timhoffman@cams.wa.gov.au>
To: <zope-dev@zope.org>; <kdangoor@webelite.com>
Sent: Thursday, October 11, 2001 4:32 PM
Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted


> There is another approach however for getting Java and Zope together
>
> A few weeks back I was mucking around with the Python Java Extension
> (see Python 9 proceedings) and was able to interact with Java
> classes/instances directly from Zope by calling ExternalMethods.  PJE
> basically allows the Java vm to be loaded into the python interpreter.
>
> Tim
>
>
>
>  >I can speak about this one... The difficult part of getting Zope to w
>  >ork on
>  >Java, IMHO, is not the server. Without too terribly much work, I think
>  >you
>  >could get a servlet in front of Zope (once you've taken care of all of
>  >the
>  >other things).
>  >
>  >We've made some progress toward getting Zope running on Java
>  >(http://www.phabric.org). The past few weeks, phabric has been on the
>  >back
>  >burner at Web Elite because of unrelated paying work.
>  >
>  >There are two main areas of work in getting Zope on top of Java: the C
>  >modules and differences between C Python and Jython. We've made quite a
>  > bit
>  >of progress in both of those areas, but there's still more to be done
>  >before
>  >Zope will fire up and answer a request.
>  >
>  >Kevin
>
>
>
> Tim Hoffman
> Zute Pty Ltd
> mobile: 0411 068888
> fax:    +61 8 6210 1883
> email:  timh@zute.net
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )