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).
----- Original Message -----
From: "Tim Hoffman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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.
> >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
> >could get a servlet in front of Zope (once you've taken care of all of
> >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
> >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
> >Zope will fire up and answer a request.
> Tim Hoffman
> Zute Pty Ltd
> mobile: 0411 068888
> fax: +61 8 6210 1883
> email: [EMAIL PROTECTED]
> Zope-Dev maillist - [EMAIL PROTECTED]
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope )
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -