|
From: <php...@li...> - 2007-08-09 16:50:03
|
Hi,
> Is a ScriptEngine of
> this type already planned for a future release?
a common approach is to use a ServletContextListener and to store the created context instance
into the ServletContext of the web application.
This way we can expose PHP script "beans" to frameworks such as JSF or Spring.
The only additional argument that the factory needs is the location (the port number)
of the pool (apache, fcgi, whatever) managing the PHP instances.
The two new ScriptEngines themselfs will probably be descendants of the php and php-invocable
engine. -- The invocable engine will be tricky, because it needs to suspend execution
(via "java_closure()") to allow Java calls into the "bean". But this shouldn't be a problem if
allow_url_include is set to On. In the worst case it must use a temporary file.
I think I could implement this for the next version, 4.2.3.
Regards,
Jost Boekemeier
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
|