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-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
|