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) |
2
(4) |
3
(9) |
4
|
5
|
6
(1) |
7
(2) |
8
(4) |
9
(4) |
10
|
11
|
12
|
13
|
14
(8) |
15
|
16
(2) |
17
(6) |
18
|
19
|
20
(2) |
21
(1) |
22
(3) |
23
|
24
(1) |
25
(2) |
26
(1) |
27
|
28
|
29
|
30
(6) |
31
(2) |
|
From: <php...@li...> - 2009-07-31 16:03:57
|
Raja, The way we did it with tomcat is explained here: http://www.theserverside.com/tt/articles/article.tss?l=IntegratingBIRTwithPHP some additional notes are posted here: http://www.birt-exchange.org/devshare/deploying-birt-reports/743-calling-birt-from-php/#description To do it stand alone I just copied the stand alone directory to my php site and created a new directory in it with BIRT libs. Right clicked on the JavaBridge.jar and selected the open with Java. Then wrote php pages to access it. Very simple. Here was one the example pages I used. As you will notice way to many jars. I really did not need them all but wanted to check if this would be an issue. With BIRT you can turn on/off pieces of the engine. I also had some issues with the version of BIRT using static variables so I had to add a work around. This has since been fixed. <?php //define ("JAVA_DEBUG", true); require_once ("java/Java.inc"); $session = java_session(); $here = getcwd(); try { java_require("$here/BIRTReportEngine2.3.1/lib/chartphp.jar;$here/BIRTReportEngine2.3.1/lib/chartengineapi.jar;$here/BIRTReportEngine2.3.1/lib/com.ibm.icu_3.8.1.v20080530.jar;$here/BIRTReportEngine2.3.1/lib/commons-cli-1.0.jar;$here/BIRTReportEngine2.3.1/lib/coreapi.jar;$here/BIRTReportEngine2.3.1/lib/crosstabcoreapi.jar;$here/BIRTReportEngine2.3.1/lib/dataadapterapi.jar;$here/BIRTReportEngine2.3.1/lib/dataaggregationapi.jar;$here/BIRTReportEngine2.3.1/lib/dteapi.jar;$here/BIRTReportEngine2.3.1/lib/engineapi.jar;$here/BIRTReportEngine2.3.1/lib/flute.jar;$here/BIRTReportEngine2.3.1/lib/js.jar;$here/BIRTReportEngine2.3.1/lib/modelapi.jar;$here/BIRTReportEngine2.3.1/lib/modelodaapi.jar;$here/BIRTReportEngine2.3.1/lib/odadesignapi.jar;$here/BIRTReportEngine2.3.1/lib/org.apache.commons.codec_1.3.0.v20080530-1600.jar;$here/BIRTReportEngine2.3.1/lib/dataextraction.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.common_2.4.0.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.ecore.xmi_2.4.1.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.ecore_2.4.1.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.w3c.css.sac_1.3.0.v200805290154.jar;$here/BIRTReportEngine2.3.1/lib/scriptapi.jar;"); if(is_null(java_values($session->get("birtengine")))) { $birtEngineConfig = new java("org.eclipse.birt.report.engine.api.EngineConfig"); $birtEngineConfig->setBIRTHome("C:/xampplite/htdocs/birtphp/BIRTReportEngine2.3.1"); $birtPlatform = new java("org.eclipse.birt.core.framework.Platform"); $birtPlatform->startup($birtEngineConfig); $birtFactory = $birtPlatform->createFactoryObject( "org.eclipse.birt.report.engine.ReportEngineFactory" ); $birtEngine = $birtFactory->createReportEngine( $birtEngineConfig ); $session->put("birtengine", $birtEngine); } $birtEngine = java_values($session->get("birtengine")); $setupChart = new java("chart.work.around.php.ChartMetadataLoader"); $cl = $setupChart->getClass()->getClassLoader(); $setupChart->setupLoader(); $report = $birtEngine->openReportDesign("$here/Reports/TopNpercent.rptdesign"); $task = $birtEngine->createRunAndRenderTask($report); $taskOptions = new java("org.eclipse.birt.report.engine.api.HTMLRenderOption"); $outputStream = new java("java.io.ByteArrayOutputStream"); $taskOptions->setOutputStream($outputStream); $taskOptions->setOutputFormat("html"); $ih = new java( "org.eclipse.birt.report.engine.api.HTMLServerImageHandler"); $taskOptions->setImageHandler($ih); $taskOptions->setBaseImageURL("http://localhost/birtphp"); $taskOptions->setImageDirectory($here); $task->setRenderOption( $taskOptions ); $task->run(); $task->close(); //$birtEngine->destroy(); //$birtPlatform->shutdown(); $file_size = $outputStream->size(); echo $cl->toString(); echo $outputStream; } catch (JavaException $e) { } Jason ________________________________ From: php...@li... [mailto:php...@li...] Sent: Thu 7/30/2009 4:30 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Using PHP/Java Bridge without Tomcat Thanks Jason, > When we worked on the BIRT integration we got it to work without Tomcat, > so I imagine Jasper would work in a similar fashion. The only issue I > worried about is scalability. Maybe this is nothing to worry about but > deserves a little consideration. We just used the STANDALONE method > started the JavaBridge.jar and included all the jars in using the require > method. I also think in same direction, but since we dont have any experience in deploying java application we need exact comands and directory where to place the required jars. can u please give us method for how to start STANDALONE JavaBridge with which user and directory where to place all required jars so that those are available for java_Require method. We need to test difference between Tomcat version and Standalone method. As far as scalability is concerned at later dates is there are complaints about speed or other issues we can very well switch back to tomcat version. If u foresee any issues in this approach let me know. Since already u have got Birt working without tomcat please tell me what u did I work on similar lines. Thanks and best regards Raja ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-31 10:45:23
|
Hi Andre, Thanks. I have just re-tagged the current head (2009-07-31 10:42 UTC) as ROOT_Release-5-5 and Release-5-5. Regards, Jost Boekemeier |
From: <php...@li...> - 2009-07-30 23:30:47
|
Thanks Jason, > When we worked on the BIRT integration we got it to work without Tomcat, > so I imagine Jasper would work in a similar fashion. The only issue I > worried about is scalability. Maybe this is nothing to worry about but > deserves a little consideration. We just used the STANDALONE method > started the JavaBridge.jar and included all the jars in using the require > method. I also think in same direction, but since we dont have any experience in deploying java application we need exact comands and directory where to place the required jars. can u please give us method for how to start STANDALONE JavaBridge with which user and directory where to place all required jars so that those are available for java_Require method. We need to test difference between Tomcat version and Standalone method. As far as scalability is concerned at later dates is there are complaints about speed or other issues we can very well switch back to tomcat version. If u foresee any issues in this approach let me know. Since already u have got Birt working without tomcat please tell me what u did I work on similar lines. Thanks and best regards Raja |
From: <php...@li...> - 2009-07-30 19:19:34
|
Raja, When we worked on the BIRT integration we got it to work without Tomcat, so I imagine Jasper would work in a similar fashion. The only issue I worried about is scalability. Maybe this is nothing to worry about but deserves a little consideration. We just used the STANDALONE method started the JavaBridge.jar and included all the jars in using the require method. Jason ________________________________ From: php...@li... [mailto:php...@li...] Sent: Thu 7/30/2009 10:18 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Using PHP/Java Bridge without Tomcat Thanks Jost, > It depends on your java application. Some applications use/require a > servlet > container as a well-defined java execution environment. > > I do agree, I want to test whether JasperReports Runs without Tomcat. But if PJB needs Tomcat then no options are left. If PJB can run without Tomcat let me what shall I do. I will test the pilot application we developed without Tomcat. If it works then we can plan our main application in different way. Please let me know how can I make the required jasperReport jar files available to PJB for instantiation of jasper report classes. Right now I have put all of then in Tomcat Lib Dir. Thanks and best regards. Raja. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-30 17:18:39
|
Thanks Jost, > It depends on your java application. Some applications use/require a > servlet > container as a well-defined java execution environment. > > I do agree, I want to test whether JasperReports Runs without Tomcat. But if PJB needs Tomcat then no options are left. If PJB can run without Tomcat let me what shall I do. I will test the pilot application we developed without Tomcat. If it works then we can plan our main application in different way. Please let me know how can I make the required jasperReport jar files available to PJB for instantiation of jasper report classes. Right now I have put all of then in Tomcat Lib Dir. Thanks and best regards. Raja. |
From: <php...@li...> - 2009-07-30 15:35:01
|
Hello, Jost I saw that the ROOT_Release-5-5 repository tag is a bit older code. Could you confirm the tag scope or retag the repository? Regards. Andre Felipe |
From: <php...@li...> - 2009-07-30 15:15:26
|
Hi, It depends on your java application. Some applications use/require a servlet container as a well-defined java execution environment. Regards, Jost Boekemeier 30. Jul 2009 6:17 vorm. schrieb am < php...@li...>: Hi, I got PHP/Java Bridge Working with Tomcat 6 very easily and I have tested running jasperReports from PHP flawlessly. The application where we are planning to use is Flex->PHP so except for running Jasper reports we dont need Tomcat. Is it possible to run PHP/Java Bridge without Installing Tomcat in standalone mode ? if yes how. We feel that tomcat may be a unnecessary and may be causing extra installation/security/maintenace work. Thanks and best regards. Raja ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-30 04:17:00
|
Hi, I got PHP/Java Bridge Working with Tomcat 6 very easily and I have tested running jasperReports from PHP flawlessly. The application where we are planning to use is Flex->PHP so except for running Jasper reports we dont need Tomcat. Is it possible to run PHP/Java Bridge without Installing Tomcat in standalone mode ? if yes how. We feel that tomcat may be a unnecessary and may be causing extra installation/security/maintenace work. Thanks and best regards. Raja |
From: <php...@li...> - 2009-07-26 16:25:49
|
Hello, It does not harm leaving v 5.5 at cvs head. I already tagged the debian package 5.4.4.2-3 version. But last week was too busy for me to manage the sf.net interface to the new package. Those who want to build the package theirselves, could use the cvs-buildpackage command as stated at Debian.README file. Maybe this week I could upload the binaries I built. Regards. Andre Felipe http://www.techforce.com.br |
From: <php...@li...> - 2009-07-25 14:28:12
|
Hi Andre, I have accidentally committed version 5.5 to the CVS head instead of the new 5.5 branch. Can I leave it there or do you want me to back out the changes? Regards, Jost Boekemeier 17. Jul 2009 1:16 vorm. schrieb am < php...@li...>: Hello, There is a new Debian package at CVS repository head. It is not a new JavaBridge version, but packaging improvements. The new JavaBridge TomCat 5.5 security policy should be correctly installed now at a Debian Lenny fresh install. The JavaBridge should run with TomCat 5.5 security enabled at /etc/default/tomcat5.5 (it is the Debian/Ubuntu default configuration anyway). Debian package installation scripts were improved. SE Linux policy installation procedure is the same already at cvs since last week. Please, checkout, compile and test at a Debian 5.x ****test machine****. Do not deploy it at a production environment. It "should" compile and install at an Ubuntu one too. Remember that that JavaBridge TomCat 5.5 rules are not enough to protect a server. SE Linux should be used for that. Please, contribute better rules to the project. Please, send comments to the php-java-bridge-users list. Regards. Andre Felipe Machado http://www.techforce.com.br ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-25 04:44:25
|
Hi, Please see our README or FAQ. Regards, Jost Boekemeier 24. Jul 2009 10:27 nachm. schrieb am < php...@li...>: Hi, I have few jar files of classes i have written. I want to use them in PHP. Can some body tell me in which folder I should place them so that those can be accessed by php script. At present I have adopted very ugly solution to place them in Tomcat 6.0's lib folder. It has worked but i would like to have some more elegant and stable soution so that even if I Upgrade to next tomcat version or some other application server it will work. Thanks and best regards Raja. ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-24 20:26:31
|
Hi, I have few jar files of classes i have written. I want to use them in PHP. Can some body tell me in which folder I should place them so that those can be accessed by php script. At present I have adopted very ugly solution to place them in Tomcat 6.0's lib folder. It has worked but i would like to have some more elegant and stable soution so that even if I Upgrade to next tomcat version or some other application server it will work. Thanks and best regards Raja. |
From: <php...@li...> - 2009-07-22 17:16:32
|
Hi, So you need a Java singleton object which is loaded with the library and persisted right before the web context or the entire JVM is destroyed? The java_context() supports a synchronized init() and an onShutdown() hook, where you can set up the singleton and synchronize with the database. Please see report.php (within JavaBridge.war) for details. However, that's one singleton per jvm, not per cluster. If you want to set up a cluster, better use a 3tier approach instead and allocate your session beans there. Regards, Jost Boekemeier 22. Jul 2009 6:56 nachm. schrieb am < php...@li...>: Thanks Jost, for your quick reply. That looks like a very handy class (I had not even stumbled across that folder yet; it looks like it contains other useful things). Unfortunately, I need to be able to connect to the same Java object from multiple php scripts, with the risk that one call will be executing while another script begins access. So file access won't be enough. Named sessions won't be enough, either, since even instances of the same session are separate executions when they are from different scripts. What I really want to do is be able to send messages across the bridge to the same Java execution from different scripts. Is there any discussion/documentation of how exactly the PHP/Java Bridge keeps track of the scripts that are accessing it? I have planned a workaround using cron jobs, in which case I might go ahead and use Persistence rather than Session (and consolidate calls to the object every 10 or 20 seconds, say). But it would be much nicer to just keep it running, since the web app will be accessing it pretty constantly. Thanks, Chris On Wed, Jul 22, 2009 at 9:06 AM, < php...@li...> wrote: > Hi, > > Yo... |
From: <php...@li...> - 2009-07-22 16:56:05
|
Thanks Jost, for your quick reply. That looks like a very handy class (I had not even stumbled across that folder yet; it looks like it contains other useful things). Unfortunately, I need to be able to connect to the same Java object from multiple php scripts, with the risk that one call will be executing while another script begins access. So file access won't be enough. Named sessions won't be enough, either, since even instances of the same session are separate executions when they are from different scripts. What I really want to do is be able to send messages across the bridge to the same Java execution from different scripts. Is there any discussion/documentation of how exactly the PHP/Java Bridge keeps track of the scripts that are accessing it? I have planned a workaround using cron jobs, in which case I might go ahead and use Persistence rather than Session (and consolidate calls to the object every 10 or 20 seconds, say). But it would be much nicer to just keep it running, since the web app will be accessing it pretty constantly. Thanks, Chris On Wed, Jul 22, 2009 at 9:06 AM, <php...@li...> wrote: > Hi, > > You could also use the JPersistenceAdapter to store your PHP/Java objects on > disc or in the database. > > Please see JPersistence.php from the documentation.zip download. > > Regards, > Jost Boekemeier > > 21. Jul 2009 9:26 nachm. schrieb am < > php...@li...>: > > O wise developers, > > I am trying to persist a java object (from PHP) using PHP/Java Bridge, > because interacting with that object is expensive and I don't want to > repeat calculations. I have read through the examples and the FAQ, > and done some searching through the mailing list, but found very few > references to persistence. The only references I did find used > sessions. It was fairly easy to implement persistence using a named > session, but I found that it has the problem of eventual expiration. > Is this the only way to persist an object? The FAQ seems to imply > that there is another (built-in) way, but it doesn't give any hint as > to what that might be. > > I am running PHP/Java Bridge 5.4.4.2 on Tomcat 6.0.20, and connecting > to it from PHP5 running on a vanilla Apache2 install. > > Thanks for your help, > > - Chris Sullins > > > > >From the FAQ: > >> Q: How do I make my script state (objects or variables) persistent? >> A: If you must code it yourself: with e.g. java_session()->put("buf", > $stringBuffer) > > >From the Session Sharing example: > > if(is_null(java_values($session->get("counter")))) { > $session->put("counter", 1); > } > $counter = java_values($session->get("counter")); > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2009-07-22 16:06:22
|
Hi, You could also use the JPersistenceAdapter to store your PHP/Java objects on disc or in the database. Please see JPersistence.php from the documentation.zip download. Regards, Jost Boekemeier 21. Jul 2009 9:26 nachm. schrieb am < php...@li...>: O wise developers, I am trying to persist a java object (from PHP) using PHP/Java Bridge, because interacting with that object is expensive and I don't want to repeat calculations. I have read through the examples and the FAQ, and done some searching through the mailing list, but found very few references to persistence. The only references I did find used sessions. It was fairly easy to implement persistence using a named session, but I found that it has the problem of eventual expiration. Is this the only way to persist an object? The FAQ seems to imply that there is another (built-in) way, but it doesn't give any hint as to what that might be. I am running PHP/Java Bridge 5.4.4.2 on Tomcat 6.0.20, and connecting to it from PHP5 running on a vanilla Apache2 install. Thanks for your help, - Chris Sullins >From the FAQ: > Q: How do I make my script state (objects or variables) persistent? > A: If you must code it yourself: with e.g. java_session()->put("buf", $stringBuffer) >From the Session Sharing example: if(is_null(java_values($session->get("counter")))) { $session->put("counter", 1); } $counter = java_values($session->get("counter")); ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-21 19:25:55
|
O wise developers, I am trying to persist a java object (from PHP) using PHP/Java Bridge, because interacting with that object is expensive and I don't want to repeat calculations. I have read through the examples and the FAQ, and done some searching through the mailing list, but found very few references to persistence. The only references I did find used sessions. It was fairly easy to implement persistence using a named session, but I found that it has the problem of eventual expiration. Is this the only way to persist an object? The FAQ seems to imply that there is another (built-in) way, but it doesn't give any hint as to what that might be. I am running PHP/Java Bridge 5.4.4.2 on Tomcat 6.0.20, and connecting to it from PHP5 running on a vanilla Apache2 install. Thanks for your help, - Chris Sullins >From the FAQ: > Q: How do I make my script state (objects or variables) persistent? > A: If you must code it yourself: with e.g. java_session()->put("buf", $stringBuffer) >From the Session Sharing example: if(is_null(java_values($session->get("counter")))) { $session->put("counter", 1); } $counter = java_values($session->get("counter")); |
From: <php...@li...> - 2009-07-20 16:35:40
|
Hi, > but I can't successfully run the same program from a > different computer Yes. This has been switched off intentionally. > 2Fbridge X_JAVABRIDGE_REDIRECT: 9267 No host name means: Loopback only. > What am I doing wrong? Perhaps you forgot to enable promiscuous mode. Please re-read the INSTALL.J2EE from the documentation download for details, especially the security warning. Regards, Jost Boekemeier 20. Jul 2009 4:36 nachm. schrieb am < php...@li...>: Hi all, I've been running tests with the new 5.4.4.2 version, and the bridge works flawlessly both in "PhpJavaServlet mode" and in "PhpCGIServlet mode" when the PHP script resides on the same machine where my Jetty server runs, but I can't successfully run the same program from a different computer. Specifically, I do not understand how I need to set the #define statements listed in java/Java.inc ... this is how the start of the latest version of my calling script looks like (base URL for the bridge webapp is /bridge): define ("JAVA_SERVLET", "/bridge/JavaBridge.phpjavabridge"); define ("JAVA_PERSISTENT_SERVLET_CONNECTIONS", false); include_once('http://jetty_server_IP:80/bridge/java/Java.inc'); ..... According to php_errors.log, the script cannot connect to port 9267 on the target server; ethereal shows that a first connection is made to port 80, and the servlet response contains headers like: X_JAVABRIDGE_CONTEXT: b@%2Fopt%2Fjetty%2Fwebapps%2Fbridge X_JAVABRIDGE_REDIRECT: 9267 but then it shows that the client is, again, trying to call port 80 on the next interaction, disregarding the redirection. What am I doing wrong? Thank you, Massimo ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-20 14:34:34
|
Hi all, I've been running tests with the new 5.4.4.2 version, and the bridge works flawlessly both in "PhpJavaServlet mode" and in "PhpCGIServlet mode" when the PHP script resides on the same machine where my Jetty server runs, but I can't successfully run the same program from a different computer. Specifically, I do not understand how I need to set the #define statements listed in java/Java.inc ... this is how the start of the latest version of my calling script looks like (base URL for the bridge webapp is /bridge): define ("JAVA_SERVLET", "/bridge/JavaBridge.phpjavabridge"); define ("JAVA_PERSISTENT_SERVLET_CONNECTIONS", false); include_once('http://jetty_server_IP:80/bridge/java/Java.inc'); ..... According to php_errors.log, the script cannot connect to port 9267 on the target server; ethereal shows that a first connection is made to port 80, and the servlet response contains headers like: X_JAVABRIDGE_CONTEXT: b@%2Fopt%2Fjetty%2Fwebapps%2Fbridge X_JAVABRIDGE_REDIRECT: 9267 but then it shows that the client is, again, trying to call port 80 on the next interaction, disregarding the redirection. What am I doing wrong? Thank you, Massimo |
From: <php...@li...> - 2009-07-17 19:28:10
|
Hi, The relevant files are Java.inc and JavaProxy.php. Both start with <?php and correcly end with ?>. I don't think anyone recommends to not write well-formed html or xml. Furthermore it is not recommended to omit a ?>. Without it, the following JSR223 PHP script will fail: <?php $a=1; echo $a?> // your script <?php java_context()->call(java_closure());?> //bridge Regards, Jost Boekemeier 17. Jul 2009 8:54 nachm. schrieb am < php...@li...>: Sorry I see some files start only <? and close tag if not nessary. And prevent error if you leave line breaks before close tag. is a good practice recommed for Zend, to many php programmers and best code implementation use this practices like Wikipedia, etc. On Fri, Jul 17, 2009 at 3:13 PM, < php...@li...> wrote: > Hi, > > >... -- Gustavo A. Novaro Celular: +54 9 11 15-5757-7730 Blog: http://gustavonovaro.blogspot.com Antes de im... |
From: <php...@li...> - 2009-07-17 18:53:25
|
Sorry I see some files start only <? and close tag if not nessary. And prevent error if you leave line breaks before close tag. is a good practice recommed for Zend, to many php programmers and best code implementation use this practices like Wikipedia, etc. On Fri, Jul 17, 2009 at 3:13 PM, < php...@li...> wrote: > Hi, > > > Replace: <? For: <?php > > <?php ... ?> is corect. > > Why should this be changed? > > 17. Jul 2009 8:06 nachm. schrieb am < > php...@li...>: > > PHP Recomendations > > Change all php files > > Replace: <? > For: <?php > > Remove close tag if a full php script file ?> > > Sorry for my poor english. > > > -- > Gustavo A. Novaro > Celular: +54 9 11 15-5757-7730 > Blog: http://gustavonovaro.blogspot.com > Antes de imprimir este e-mail tenga en cuenta el medio ambiente. > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Gustavo A. Novaro Celular: +54 9 11 15-5757-7730 Blog: http://gustavonovaro.blogspot.com Antes de imprimir este e-mail tenga en cuenta el medio ambiente. |
From: <php...@li...> - 2009-07-17 18:13:13
|
Hi, > Replace: <? For: <?php <?php ... ?> is corect. Why should this be changed? 17. Jul 2009 8:06 nachm. schrieb am < php...@li...>: PHP Recomendations Change all php files Replace: <? For: <?php Remove close tag if a full php script file ?> Sorry for my poor english. -- Gustavo A. Novaro Celular: +54 9 11 15-5757-7730 Blog: http://gustavonovaro.blogspot.com Antes de imprimir este e-mail tenga en cuenta el medio ambiente. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-07-17 18:05:00
|
PHP Recomendations Change all php files Replace: <? For: <?php Remove close tag if a full php script file ?> Sorry for my poor english. -- Gustavo A. Novaro Celular: +54 9 11 15-5757-7730 Blog: http://gustavonovaro.blogspot.com Antes de imprimir este e-mail tenga en cuenta el medio ambiente. |
From: <php...@li...> - 2009-07-17 05:22:44
|
[Continued from previous mail, a bug in android mail app causes a 'send' rather than 'save'] ... and tomcat won't restrict the JavaBridge library. But I don't know whether such a global repository of Java libraries exists and if it's possible to split the debian package that way. Regards, Jost Boekemeier 17. Jul 2009 1:05 vorm. schrieb am < php...@li...>: > > Hello, Jost > Thanks for your hints. > Actually, the Debian Policy for packaging imposes FHS co... ------------------------------------------------------------------------------ Enter the BlackBe... |
From: <php...@li...> - 2009-07-17 05:11:22
|
> So, the JavaBridge must be installed at TomCat > webapps directory I think the JavaBridge.jar is also useful outside of tomcat. With "jrunscript -classpath JavaBridge.jar - php-interactive" I can run an interactive php session. If JavaBridge.jar (and php-script.jar) gets installed by some base .deb package, and Java is able to load the additional libraries from there, all users and tomcat could use this library as usual. jrunscript -q would list the php script engine and tomcat 17. Jul 2009 1:05 vorm. schrieb am < php...@li...>: Hello, Jost Thanks for your hints. Actually, the Debian Policy for packaging imposes FHS compliance. So, the JavaBridge must be installed at TomCat webapps directory. The system directories are for official libraries. But studying the tomcat system security policies (per your hints) helped to improve the /etc/tomcat5.5/policy.d/60JavaBridge.policy file. Juli logging was not configured and prevented startup. The # comment sign was not recognized at that file at a Debian Lenny clean install . Improved the rule cross platform portability. Improved the installation script sequence. The file ownership and permissions were wrong, preventing startup. So, packaging improvements were made to address these issues. Even configuring TomCat error logging does not show startup errors at /var/log/tomcat5.5/... This kind of TomCat startup errors were logged at /var/log/syslog I commited changes to CVS head today. Regards. Andre Felipe Machado http://www.techforce.com.br ------------------------------------------------------------------------------ Enter the BlackBe... |
From: <php...@li...> - 2009-07-16 23:16:32
|
Hello, There is a new Debian package at CVS repository head. It is not a new JavaBridge version, but packaging improvements. The new JavaBridge TomCat 5.5 security policy should be correctly installed now at a Debian Lenny fresh install. The JavaBridge should run with TomCat 5.5 security enabled at /etc/default/tomcat5.5 (it is the Debian/Ubuntu default configuration anyway). Debian package installation scripts were improved. SE Linux policy installation procedure is the same already at cvs since last week. Please, checkout, compile and test at a Debian 5.x ****test machine****. Do not deploy it at a production environment. It "should" compile and install at an Ubuntu one too. Remember that that JavaBridge TomCat 5.5 rules are not enough to protect a server. SE Linux should be used for that. Please, contribute better rules to the project. Please, send comments to the php-java-bridge-users list. Regards. Andre Felipe Machado http://www.techforce.com.br |