You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
|
3
(2) |
4
(1) |
5
(1) |
6
|
7
|
|
8
|
9
(1) |
10
|
11
|
12
(3) |
13
(2) |
14
(6) |
|
15
|
16
(3) |
17
(2) |
18
(4) |
19
(2) |
20
|
21
|
|
22
|
23
(1) |
24
(1) |
25
(9) |
26
(7) |
27
(9) |
28
(5) |
|
29
(1) |
30
(7) |
31
(4) |
|
|
|
|
|
From: <php...@li...> - 2007-07-26 18:19:51
|
Hi Jost, thank a lot for your feedback. >I assumed that you wanted to connect your framework (typo3) with another, >java-based framework running in a different web context, but within the same >tomcat container. > > yes, >1) So you have typo3 running in the Apache front-end connected to an associated back-end >running in tomcat. > > yes >2) A second, unspecified application is running in tomcat, associated with the Apache >front-end via mod_jk. > > > yes >The second application should parse the request parameters and call the first application which >should generate the response. > >Isn't it possible to direct all requests to the second app and then use >requestDispatcher.forward(...) to let typo 3 generate the response? > >The call graph would be: > > apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response > > > this is a great idea. i think this could be the solution. The prerequisite is that the php-webapp is correct running via the bridge in the tomcat. unfortunately runs the php-app not in the tomcat. I reduced my system to the absolutly mimimum. I installed php version 5.2.3. If i configure the system as you decribe in PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples (http://www.dsl.uow.edu.au/~sk33/php5java.htm) the Bridge is running and if i call phpinfo then i see the correct version 5.2.3 If i configure as PHP5, PHP/Java Bridge & Tomcat on XP PRO + SP and examples (http://www.dsl.uow.edu.au/~sk33/php5jsp.htm) the bridge isnt running. In this case, i wondering the the php version is 5.1.3-dev. why used this install not the installed version? A question to you, it is posible to get you as consultand to solve this case in our project? best regards Jörg >Regards, >Jost Boekemeier > > > > dddd > >------------------------------------------------------------------------- >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-07-26 10:33:59
|
Hi Jörg,
first of all thank you very much for your feedback.
> i dont know exacly what you mean with another web application.
I assumed that you wanted to connect your framework (typo3) with another,
java-based framework running in a different web context, but within the same
tomcat container.
> I have a
> Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms).
> The requests is not forwarding via mod_jk to the tomcat. In this webapp
> i install the bridge (WebInf Folder and java folder from the
> JavaBridge.war). The second app is located in the tomcat. All requests
> (/jsp) goes via mod_jk to the context in the tomcat. The second app
> implements a HttpServlet. Every request from the first app (typo3
> cms) should be also call the doGet Method in the second Application.
> This method retrieve the parameters and use it. But the response is
> generated by the first app, the cms system.
1) So you have typo3 running in the Apache front-end connected to an associated back-end
running in tomcat.
2) A second, unspecified application is running in tomcat, associated with the Apache
front-end via mod_jk.
The second application should parse the request parameters and call the first application which
should generate the response.
Isn't it possible to direct all requests to the second app and then use
requestDispatcher.forward(...) to let typo 3 generate the response?
The call graph would be:
apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response
Regards,
Jost Boekemeier
dddd
|
|
From: <php...@li...> - 2007-07-26 09:28:21
|
Hi Philip, > I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? yes. Some other component must cause the delay. Do you load the Java libraries from a shared network folder so that the dynamic classloader doesn't cache the libraries? Can you please set the log level to 5, open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the log at the end of the ticket? We'll look at this issue asap. Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
|
From: <php...@li...> - 2007-07-26 09:23:29
|
Hi Jost, >do you want to call a servlet from another web application or a different container? > > i dont know exacly what you mean with another web application. I have a Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms). The requests is not forwarding via mod_jk to the tomcat. In this webapp i install the bridge (WebInf Folder and java folder from the JavaBridge.war). The second app is located in the tomcat. All requests (/jsp) goes via mod_jk to the context in the tomcat. The second app implements a HttpServlet. Every request from the first app (typo3 cms) should be also call the doGet Method in the second Application. This method retrieve the parameters and use it. But the response is generated by the first app, the cms system. regards Jörg >The former is possible by using the RequestDispatcher, please see >http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html > > >Regards, >Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail > >------------------------------------------------------------------------- >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-07-26 09:18:46
|
Hi Jost! Sorry, I forgot to give you information about my environment: 32-bit Intel Machine Windows XP + Service Pack 2 WAMP Version 1.6.5 which includes: * Apache 2.0.59 * PHP 5.1.6 (Using Apache 2.0 Handler as Server API) JDK 1.5.0.10 PHP-Java Bridge 3.2.1 J2EE > I assume you mean the DynamicClassLoader. (DynamicLoad may also mean > that you start the bridge and the JVM as a sub component for each incoming > request). Yes, I meant the DynamicClassLoader. > Do you start Java as a sub component of apache or IIS or as a separate > component, for example via the Tomcat servlet engine? I installed PHP-Java Bridge following instructions here: TITLE: PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples URL: http://www.dsl.uow.edu.au/~sk33/php5java.htm In that setup, I suppose I start Java as a sub component of Apache (?). >> 3) The system loads the Java Virtual Machine (JVM). > Only if the JVM is running as a sub component of Apache ... AND if Apache ... > cannot maintain a pool of PHP instances, which is usually the case with CGI. > (emphasis mine -- Filip) You mention two conditions: 1) the JVM is running as a sub component of Apache The answer appears to be YES. 2) Apache cannot maintain a pool of PHP instances, which is usually the case with CGI I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? If that is the case (i.e. the second condition is not met), then the system SHOULD NOT be loading the JVM every time a user requests for a PHP script. >> 4) The system loads all Java libraries needed by the PHP script. > Only if the JVM is running as a sub component OR Apache/IIS and PHP is > running in CGI mode. (emphasis mine -- Filip) Only if the JVM is running as a sub component --- TRUE Apache/IIS and PHP is running in CGI mode --- FALSE TRUE or FALSE = TRUE, the system does load all Java libraries needed (e.g. log4j, dom4j, etc.) per request unless they're already in the cache (?) >> What happens exactly with "static loading"? Is this sequence of events accurate? >> >> 0) User starts up the welcome page of a web application. >> The system loads all Java base classes (libraries) AND >> the Java Virtual Machine (JVM). > Well, the JVM is usually started as a separate component. Or in the MINIT > method invoked during the startup of Apache or IIS. This means that one VM > is usually attached to the web server. So do you think this is the solution to my problem (slow loading per request, esp. the first)? > The only exception are CGI or console scripts. By 'console scripts', do you mean command line scripting (that doesn't use a web server)? Thanks again! Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
|
From: <php...@li...> - 2007-07-26 07:31:02
|
Hi,
> installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the
> DYNAMIC LOAD method.
I assume you mean the DynamicClassLoader. (DynamicLoad may also mean that you start the bridge
and the JVM as a sub component for each incoming request).
> It works but the web page that contains the PHP script loads very slowly
> (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds).
5 seconds is too slow. This may mean that you are starting a new JVM for each invocation.
Do you start Java as a sub component of apache or IIS or as a separate component, for example
via the Tomcat servlet engine?
> What the Java code does is supposedly simple, it reads a short string value from a relational
> database, and passes it to PHP script to display. Oh, but the Java code requires a lot of
> libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them).
Does't matter, the DynamicClassLoader caches them.
> What happens exactly with "dynamic loading"? Is the sequence of events below accurate?
[depends on what you mean with "dynamic loading".
> 1) User requests for a web page that contains a PHP script that calls Java code.
Apache/IIS keeps a pool of PHP instances. When the client browser requests a PHP page, the
web server activates the PHP instance and passes it the script. The PHP/Java Bridge creates
an XML document from the script and forwards it to the Java VM (usually started via a local
Servlet Engine).
> 2) The system loads all Java base classes (libraries).
When your script contains a java_require(...) call, the DynamicClassLoader resolves and loads
the Java libraries and caches them.
> 3) The system loads the Java Virtual Machine (JVM).
Only if the JVM is running as a sub component of Apache or IIS and if Apache or IIS cannot
maintain a pool of PHP instances, which is usually the case with CGI.
> 4) The system loads all Java libraries needed by the PHP script.
Only if the JVM is running as a sub component or Apache/IIS and PHP is running in CGI mode.
> What happens exactly with "static loading"? Is this sequence of events accurate?
>
> 0) User starts up the welcome page of a web application.
> The system loads all Java base classes (libraries) AND
> the Java Virtual Machine (JVM).
Well, the JVM is usually started as a separate component. Or in the MINIT method invoked during
the startup of Apache or IIS. This means that one VM is usually attached to the web server.
The only exception are CGI or console scripts. If you use the C implementation, it will start
a new JVM for each invocation. If you use the PHP implementation, it will throw an error if no
persistent JVM is running on the given port#.
Regards,
Jost Boekemeier
dddd
|
|
From: <php...@li...> - 2007-07-26 06:54:29
|
I'm a PHP programmer tasked with calling Java code written by someone else. I successfully installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the DYNAMIC LOAD method. It works but the web page that contains the PHP script loads very slowly (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds).
What the Java code does is supposedly simple, it reads a short string value from a relational database, and passes it to PHP script to display. Oh, but the Java code requires a lot of libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them).
My immediate question is: Is there a way to improve performance, especially the first time the webpage (PHP script) is loaded?
My deeper question is:
What happens exactly with "dynamic loading"? Is the sequence of events below accurate?
1) User requests for a web page that contains a PHP script that calls Java code.
2) The system loads all Java base classes (libraries).
3) The system loads the Java Virtual Machine (JVM).
4) The system loads all Java libraries needed by the PHP script.
5) The system executes the Java code.
What happens exactly with "static loading"? Is this sequence of events accurate?
0) User starts up the welcome page of a web application.
The system loads all Java base classes (libraries) AND
the Java Virtual Machine (JVM).
1) User requests for a webpage that contains a PHP script that calls Java code.
2) The system loads all Java libraries needed by the PHP script.
3) The system executes the Java code.
Regards,
Filip
Send instant messages to your online friends http://uk.messenger.yahoo.com
|