From: <php...@li...> - 2010-10-20 07:14:06
|
We have a Linux / Apache 1.3 / PHP 5.3 web Server running multiple websites. We need to setup a Payment Gateway application that requires JavaBridge as it is coded in Java. We do have Java - with JDK 1.6 installed on the server. We just need to be able to run their Java programs from a PHP script that will be called from a web browser (Actually from WordPress - using the WP e-Commerce plugin) (there is no need to run PHP scripts from the Java app AFAIK) - So my questions are : 1) . Can we just use JavaBridge for this purpose - as the documentation shows that javabridge can be used as a servlet engine ? We do NOT want to install a separate Tomcat or other J2EE server. 2) If yes, how do we do this exactly - a) Which JavaBridge files do we need on the server and where do we copy these files ? To the Java /lib folder or to the Website's root (public_html) folder ? b) How do we run the JavaBridge app as a service/daemon in Linux that can run in the background ? ( We tried running it from a shell command but it runs in the foreground and would terminate once the shell was closed) c) How do we call the java programs from PHP ? Although I did go thru the documentation - it is quite confusing as there are so many options for the installation. Any help / advice or pointers to an existing document that describes this in detail would be great ! Thanks in advance for any help. - Ron |