|
From: <php...@li...> - 2009-08-18 10:23:40
|
Hi Massimo, I will add a jsr223 tutorial to our web site. The bindings are complete. The reason for the new script-api.jar was a degression in version 5.4.4.2; I have cleaned up a little bit too much, leaving the standalone script engine w/o a urlreader path, even though it has been documented in the api doc. The path was re-introduced in 5.5.1. Please see the jsr223 api documentation for details. The X_ headers and the java_getHeader() are internal and shouldn't be used in general. The line I have given is an exception. You can wrap it in a function and use 'if called_from_java() java_context()-call(java_closure())' if you want. > I still don't quite grasp how to use java_closure( That's the core idea of the bridge. These calls never return but call others ad infinitum. Regards, Jost Boekemeier 18. Aug 2009 11:48 vorm. schrieb am < php...@li...>: Hi Jost, > Sure, you could use json or even invent your own text-based > communication protocol, but why not use the php java bridge > to handle the communication? > > Here's a simple php script which acts as a receiver. Thank for the advice, I will try your code. It may be me, but I would never have tried what you suggest; I can't find documentation about the several X_JAVABRIDGE_* constants and their intended usage, nor was I aware of the java_getHeader() function. Moreover, I still don't quite grasp how to use java_closure() and lastly, I believe several methods of the ScriptEngine API are still to be implemented ... is this correct? Massimo ------------------------------------------------------------------------------ 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 |