|
From: <php...@li...> - 2008-10-06 16:15:51
|
Hi,
> 1) What all things I can remove from JavaBridge directory
> on Apache as I
> dont want to put un-required stuff on Apache WebServer.
Only the java/Java.inc is neccessary.
> 2) What all things I can remove from JavaBridge directory
> on Tomcat?
Everything except WEB-INF/web.xml, WEB-INF/lib/{JavaBridge*,*php*}.jar
If you want to run PHP scripts directly from servlets, you need to keep the WEB-INF/cgi directory.
> 3) Do I need to setup mod_jk between Apache WebServer and
> Tomcat , or bridge
> will take care of communication by itself.
I would use mod_proxy instead of mod_jk. mod_proxy also supports load balancing, if you need it. Please see our FAQ for details.
> 4) When I develope my Java Classes where I need to put jar
> file?
> is it JavaBridge/WEB-INF/lib? , will it automatically
> put in classpath?
Yes. If you touch the WEB-INF/web.xml, the web context automatically
reloads all libraries.
> 5) Can I also develop seperate WebApplication and deploy on
> Tomcat and still
> can access from PHP in Apache WebServer?
You can copy JavaBridge to MyWebApp and access that. Both applications will be separated. If you want to hard-code all requests to MyWebApp, just fetch the Java.inc from MyWebApp or hard-code the string in java/Java.inc or use a define(...) before including Java.inc.
Please see our FAQ for details
Regards,
Jost Boekemeier
|