From: <php...@li...> - 2007-08-07 17:42:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good day all, I apologize in advance if this question is answered in documentation -- I'm having trouble find mention of it. I'm encountering an issue with a new php-cgi process being created on each request, and not being terminated until servlet restart when running PJB as "java -jar JavaBridge.jar SERVLET_LOCAL:8080 3 JavaBridge.log". I feel like this isn't/shouldn't be normal behavior and that I may be missing a configuration hook or scripting cue that let's PJB know to shutdown the php-cgi process. Any help would be appreciated. P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the line "e.eval((Reader)null);". What is that line used for? - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGuK65KpzEXPWA4IcRAld7AJ4nHHA8pStHVaENC5fuhEcRTFGxSACeMsos xr7FC15fPGh+28mL/OePEJI= =q0B7 -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-08-07 19:40:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > Good day all, > > I apologize in advance if this question is answered in documentation -- > I'm having trouble find mention of it. > > I'm encountering an issue with a new php-cgi process being created on > each request, and not being terminated until servlet restart when > running PJB as "java -jar JavaBridge.jar SERVLET_LOCAL:8080 3 > JavaBridge.log". > > I feel like this isn't/shouldn't be normal behavior and that I may be > missing a configuration hook or scripting cue that let's PJB know to > shutdown the php-cgi process. I resolved this issue. It turns out that the problem was caused by my use of "php-invocable" engine where I should have been using "php". However, my other questions regarding "(Reader)null" remains. Thanks in advance for any assistance. > > P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the > line "e.eval((Reader)null);". What is that line used for? > - ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGuMqOKpzEXPWA4IcRApBFAJ9BltpznEt8iMuFl+fbQMSva0RyDwCfaCFm ItihaH5yrW6dsuW3LWNerxY= =r/vB -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-08-08 16:17:13
|
Hi, > > P.S. Additionally, the examples at the bottom of INSTALL.J2SE have the > > line "e.eval((Reader)null);". What is that line used for? it releases the PHP continuation immediately. It is taken from the tests, which check if calling eval with a null works. I will remove that line. However, you're right that the PHP/Java Bridge should release the PHP continuation before the ScriptEngine is finalized. At the moment it keeps the PHP continuation as long as possible. This isn't a problem in practice (when ScriptEngines are pooled). You say that you use the Script API from within servlets. First of all, the PhpScriptEngine currently always starts a PHP CGI continuation. If you want to use PHP script instances from a FastCGI or Apache/IIS pool, you currently need a URLReader. I think it makes sense to add a ScriptEngine which exposes Apache or FastCGI PHP instances through the JSR223 script API. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-08 23:09:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > You say that you use the Script API from within servlets. First of all, the PhpScriptEngine > currently always starts a PHP CGI continuation. If you want to use PHP script instances from > a FastCGI or Apache/IIS pool, you currently need a URLReader. I think it makes sense to add > a ScriptEngine which exposes Apache or FastCGI PHP instances through the JSR223 script API. Interesting. Okay, thanks for your help Jost. Is a ScriptEngine of this type already planned for a future release? - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGuk0HKpzEXPWA4IcRAhXqAJ4q9u/kKk8M5mHWyWTQc1QoKvsbCQCbBClz 6OCr4OFFZH5HVTweSxcsb3E= =dMmt -----END PGP SIGNATURE----- |
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 |
From: <php...@li...> - 2007-08-10 19:50:39
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > 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. > This has been an extremely informative e-mail exchange. Thanks a lot Jost! - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGvMEsKpzEXPWA4IcRAgFdAJ4snLCJS6IR11YBbk6dzpUCISOuSACcCbK5 CEJYEQQ6BPhdwTm4YG1FHFs= =6mvM -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-08-13 12:31:12
|
The temp. download link http://sourceforge.net/project/showfiles.php?group_id=117793 on http://php-java-bridge.sourceforge.net/pjb/download.php seem to dangle. I only get unable to connect... Michael |
From: <php...@li...> - 2007-08-13 12:38:10
|
Hi, > to dangle. I only get unable to connect... the link is okay, but sf.net uses a different Apache pool for the download area. I guess the pool has some temporary problems. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-08-13 12:46:12
|
Is there some other location or mirror to get it from? It seems to be d= own already a while... Michael = From: php...@li... = = To: php...@li... = = Date: 13.08.2007 14:38 = = Subject: Re: [Php-java-bridge-users] Download page link dangling..= . = Hi, > to dangle. I only get unable to connect... the link is okay, but sf.net uses a different Apache pool for the downl= oad area. I guess the pool has some temporary problems. Regards, Jost Boekemeier Wissenswertes f=FCr Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever -----------------------------------------------------------------------= -- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser.= Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users = |
From: <php...@li...> - 2007-08-13 12:59:45
|
Hi, It seems that the entire OSDN subnet is not reachable for an unknown reason. > Is there some other location or mirror to get it from? It seems to be down > already a while... Well, other open-source distribution channels are likely to have similar problems. I remember that php.net was not reachable for at least three days. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |