From: <php...@li...> - 2017-01-18 17:17:26
|
Hi Chris, Great ! If you intend to rely on it I would really consider few things. Depending on your needs it's always good to consider developping API (rest/microservices/json..) between Java and PHP first. This way you can really fine-tune your integrations. Of course this requires a fixed contract and development on both sides. On the other hand if you are looking to use directly Java libs, the bridge is the way to go ! *Here's some feedbacks on my experience (limited to call Java from PHP)* 1. The Bridge is rock solid. Stable and performant (experience with Tomcat 7/8) 2. Don't use the original client 'Java.inc' and use https://github.com/ belgattitude/soluble-japha instead (HHVM and PHP7 supported + PSR4 + fixes). 3. Don't refer too much on obsolete doc. Whatever you read, the bridge is running perfectly with modern ecosystem (JDK8, servlet 3.0, Tomcat8...). Really have a look to https://github.com/belgattitude/pjb-starter-gradle/ *Some drawbacks* 1. If you intend to use java closure from php... you'll need to figure out how... :) Check first 2. Performance, try to limit things like making 100000 method calls (iterating over a resultset)... Prefer buffering on the server and get everything at once. See https://github.com/belgattitude/php-java-bridge/blob/master/README#L481 3. Timezone differences.... Please be aware of them, see https://github.com/belgattitude/soluble-japha/blob/master/doc/language_basics.md#working-with-dates when if you rely on dates. 4. Be aware of security implications of running a bridge (should be localhost only or secured access). Many options exists, but easily doable. 5. Logging/Debugging (so far not problem, but needs to be documented better - I used to watch tomcat log files regularly, not efficient when developping) So If you're not afraid, your help is greatly appreciated. I prepared some ideas to share, see the link below: https://github.com/belgattitude/php-java-bridge/issues/6 I'm not really Java developer (more and more on typescript/react/frontend projects those days) so I'm really enjoying sharing. Can be a start for to something... I'll PM you soon, so we can get in contact. Seb On Tue, Jan 17, 2017 at 3:00 PM, < php...@li...> wrote: > Hi Seb, > > thanks for your reply and hinting at the source! I've just overlooked the > Java sources somehow buried inside server/php/... > I have now managed to successfully build the artifacts (*.jar, *.war, > *.inc) and can start to play around with it a bit :) > > Ernestly: > I wholehearted consider your project as an important component for some of > my own major project works: > Building a SaaS-ready Edition of Nextcloud Server. We have a definite > requirement there for accessing the Java ecosystem from Nextcloud's > PHP-centric environment in an effective and reliable way. > > In case you need any help for e.g. modernizing the Java code I would be > quite willing to contribute my 10+ years of Java developer experience. Just > let me know via christian [dot] lerch [at] km-works [dot] eu > > Best, > Chris > > > 2017-01-16 20:21 GMT+01:00 <php...@li...>: > > > Hi Chris, > > > > The original sources are available through CVS > > https://sourceforge.net/p/php-java-bridge/code/ > > > > As a better alternative I made an unofficial fork : > > > > https://github.com/belgattitude/php-java-bridge > > > > You can have a look to the changelog to have more info or clone the > > preserved 6.2.1 original branch. Check the README.md for build recipes. > > > > Note that if you intend to work with PHP7, I've rewrote the client part > > `Java.inc`, see the > > > > https://github.com/belgattitude/soluble-japha > > and http://docs.soluble.io/soluble-japha/manual/ > > > > As a teaser I'm also preparing a starter project with gradle, spring boot > > and embedded tomcat: https://github.com/belgattitude/pjb-starter-gradle/ > > Still at very early stages but don't hesitate to open issues or > contribute. > > > > All the best, > > > > Seb > > > > On Mon, Jan 16, 2017 at 5:32 PM, < > > php...@li...> wrote: > > > > > Hi all, > > > > > > would love to compile JavaBridge.jar with Java 8 but could not find the > > > sources anywhere. Can you help? > > > > > > Best, > > > Chris > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > php-java-bridge-users mailing list > > > php...@li... > > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |