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
(17) |
5
(5) |
6
(7) |
7
(11) |
8
(11) |
|
9
(3) |
10
(3) |
11
(9) |
12
(6) |
13
(11) |
14
(3) |
15
(2) |
|
16
(1) |
17
(4) |
18
|
19
|
20
(2) |
21
(2) |
22
(3) |
|
23
|
24
|
25
|
26
|
27
(1) |
28
(1) |
29
|
|
30
|
31
|
|
|
|
|
|
|
From: <php...@li...> - 2008-03-10 13:53:19
|
Hi,
Ah Thanks a lot :)
It finally works. My mistakes were :
require("http://localhost8091/JavaBridge/java/Java.inc");
The 'localhost' link is effectively important
launching the JavaBridge.jar
Which of course was already launched
By clearing my php script according to your advice, it now works perfectly
:)
>> I put the archive into my deployment directory 'ext'. This directory
contains:
>> - java/Java.inc
>> - hello.php
>> - JavaBridge.jar
>> - phpjava.jar
> I don't understand why this is necessary.
It was just to be sure that the correct scripts were called.
Thanks again and sorry for my low understanding :p
Tom
--
# !! brOl_oUilLe -->
|
|
From: <php...@li...> - 2008-03-10 13:20:12
|
Hi,
> public static void main(String[] args) {
> obj = new Integer(15);
> System.out.println(getObj());
> while(true);
> }
> public static int getObj() { return obj; }
> }
Okay. But you may want to use Thread.sleep() instead of the while(true); loop. :)
> I make a jar archive from it (phpjava.jar). The jar contains:
> Main-Class: app.Main
> Class-Path: JavaBridge.jar
Okay.
Next you can run a PHP script as follows:
<?php require("http://localhost8091/JavaBridge/java/Java.inc");
$myClass = new java("app.Main");
echo $myClass->getObj();
?>
> I put the archive into my deployment directory 'ext'. This directory
> contains:
> - java/Java.inc
> - hello.php
> - JavaBridge.jar
> - phpjava.jar
I don't understand why this is necessary.
> According to the manifest of JavaBridge.jar, I have also put in 'ext' (just
> in case):
> - php-script.jar
> - script-api.jar
No. These are the JSR223 bindings.
> Here is the php script:
> <?php
> require_once("java/Java.inc");
> java_require("phpjava.jar");
> $myClass = new java("app.Main");
> $obj = $myClass->getObj();
> echo $obj;
> ?>
No. The above script connects to the wrong application (if any). The java_require() is not
necessary either, your application already knows about app.Main.
> I launch the JavaBridge.jar by right-clicking on it and 'execute with
No. You have already started your application.
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-03-10 12:42:34
|
Hi,
> With Runner.getRequiredInstance(). This allocates a Java continuation
which has full access to your Java objects.
> Please see the INSTALL.STANDALONE document for details.
Ok, so here is what i have done, following the instructions given by
INSTALL.STANDALONE and INSTALL.J2EE
I have my very simple java application:
package app;
public class Main {
public static final String JAVABRIDGE_PORT="8091";
static final php.java.bridge.JavaBridgeRunner runner =
php.java.bridge.JavaBridgeRunner.getRequiredInstance(JAVABRIDGE_PORT);
private static int obj;
public static void main(String[] args) {
obj = new Integer(15);
System.out.println(getObj());
while(true);
}
public static int getObj() { return obj; }
}
I make a jar archive from it (phpjava.jar). The jar contains:
app/Main.class
META-INF/MANIFEST.MF
The Manifest is:
Manifest-Version: 1.0
Main-Class: app.Main
Created-By: 1.5.0
Class-Path: JavaBridge.jar
I put the archive into my deployment directory 'ext'. This directory
contains:
- java/Java.inc
- hello.php
- JavaBridge.jar
- phpjava.jar
According to the manifest of JavaBridge.jar, I have also put in 'ext' (just
in case):
- php-script.jar
- script-api.jar
Here is the php script:
<?php
require_once("java/Java.inc");
java_require("phpjava.jar");
$myClass = new java("app.Main");
$obj = $myClass->getObj();
echo $obj;
?>
I launch the JavaBridge.jar by right-clicking on it and 'execute with
java...' and select the socket.
I execute in a shell: java -jar phpjava.jar
The value of 15 appears and then the application continues running because
of the while(true) loop.
I try to connect through http://localhost:8091/hello.php
The value of 0 appears.
The VMbridge.log warns me that the port is already being used.
Meaning that with php, it launches another instance of my Main.class
What am I missing ? For me, the "new java(app.Main);" line in the php script
is not the correct one if I want to get the already allocated objects.
Is 'runner' the variable I should use from php or is it a variable used by
the bridge ?
Which kind of methods can I call to access my allocated objects ?
> But why don't you simply call into the Java continuation and use the
objects already allocated by your Java application?
I would love to :)
Thanks for your help
Regards,
--
# !! brOl_oUilLe -->
|