Hi,
> BUT when using PJB in PHP environment, i have no
> idea where i should put the WEB-INF folder,
Isn't it possible to deploy the backend (the
JavaBridge.war) into tomcat or some other j2ee
environment?
In this setup the httpd handles the php requests and
the bridge connects to tomcat (to the "j2ee backend")
as necessary, please see the sessionSharing.jsp and
sessionSharing.php examples in the j2ee download.
> it will be fine while running in J2EE environment
>(such as Weblogic),
> coz URLs were transformed and run as java classes at
> server-side
> automatically.
> BUT when using PJB in PHP environment, i have
> no idea where i should
> put the WEB-INF folder,
> and how httpd transformed/handle the URLs, and
> run the java classes, if web.xml works.
The "PHP environment", as you call it, isn't much
different than the environment you're familiar with.
The PHP/Java Bridge adds a "middle tier" so that php
scripts don't have to connect to databases directly
anymore. Whether you run the standalone backend (the
JavaBridge.jar) or the j2ee backend (JavaBridge.war)
doesn't matter: since 2.0.8 the j2ee backend is
(nearly) as fast as the standalone backend.
When java.servlet=On is set and a client sends a
request for a php page with java code in it, the php
java bridge internally connects to a controller
servlet (default: "/JavaBridge/PhpJavaServlet"), asks
for the page and then lets the http/php instance
render the content. The standalone backend works
simliar except that the standard j2ee services are not
available.
Binding actions to php/jsp scripts or servlets via a
standard web.xml file is just right, ihmo. I don't
have plans to add similar functionality to the
standalone backend.
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|