-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from belgattitude/develop
Prep v7.0.0
- Loading branch information
Showing
31 changed files
with
2,694 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.2.11 | ||
7.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,23 @@ php-java-bridge NEWS -- history of user-visible changes. | |
Please send bug reports, questions and suggestions to | ||
<[email protected]>. | ||
|
||
Version 7.0.0 | ||
|
||
* Fixed a bug in Java.inc and Client.inc | ||
|
||
* PHPDebugger.php now uses the latest protocol and is now part of the PHP/Java Bridge. It can be switched off by addint the following line to WEB-INF/web.xml: | ||
<context-param><param-name>php_include_debugger</param-name><param-value>Off</param-value></context-param> | ||
|
||
|
||
Version 6.2.3 | ||
|
||
* Fixed a bug in WriterOutputStream. | ||
|
||
|
||
Version 6.2.2 | ||
|
||
* Changed old constructor to __construct | ||
|
||
Version 6.2.1 | ||
|
||
* java_session(null, false) now returns false if a session does not exist. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Embed recipes | ||
|
||
> This document is currently a work-in-progess stub. To learn more | ||
> see the [#51](https://github.com/belgattitude/php-java-bridge/issues/51) | ||
> and feel free to contribute. | ||
## Introduction | ||
|
||
The php-java-bridge provides a standalone server (`JavaBridgeRunner`) for | ||
embedding the bridge. In the soluble fork, this internal server have been | ||
deprecated in favour of embedded Tomcat, Jetty... adopted more widely. | ||
|
||
|
||
## Embedded containers | ||
|
||
|
||
### Tomcat | ||
|
||
|
||
1. Add the embedded tomcat in your dependencies: | ||
|
||
With maven: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.apache.tomcat.embed</groupId> | ||
<artifactId>tomcat-embed-core</artifactId> | ||
<version>7.0.75</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.tomcat</groupId> | ||
<artifactId>tomcat-juli</artifactId> | ||
<version>7.0.75</version> | ||
</dependency> | ||
``` | ||
|
||
With gradle | ||
|
||
```gradle | ||
// todo | ||
``` | ||
|
||
2. Register servlet and start tomcat. | ||
|
||
```java | ||
public void startTomcat() { | ||
Tomcat tomcat = new Tomcat(); | ||
tomcat.setPort(8087); | ||
Context ctx = tomcat.addContext("/", new File(".").getAbsolutePath()); | ||
Tomcat.addServlet(ctx, "jbs", new JavaBridgeServlet()); | ||
ctx.addServletMapping("/*", "jbs"); | ||
try { | ||
tomcat.start(); | ||
log("started, now waiting for connections..."); | ||
tomcat.getServer().await(); | ||
} catch (Exception e) { | ||
warning(e.getMessage()); | ||
} | ||
} | ||
``` | ||
|
||
### Jetty | ||
|
||
> The doPut() method Seems buggy right now. See [#43](https://github.com/belgattitude/php-java-bridge/issues/43) | ||
|
||
### Undertow | ||
|
||
(todo) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: php.java.bridge.Standalone | ||
Main-Class: io.soluble.pjb.bridge.Standalone | ||
Created-By: 1.5.0 (Sun Microsystems Inc.) | ||
Class-Path: php-script.jar script-api.jar log4j.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.