|
From: <php...@li...> - 2011-12-09 08:05:07
|
Hi,
Within Java.inc, constants JAVA_HOSTS and JAVA_SERVLET are used and then
based on them servlet is retrieved
e.g.
<?php define("JAVA_HOSTS", "localhost:8080");
define("JAVA_SERVLET", "/MyWebApp/MyServlet");
require_once("java/Java.inc");
$servlet = java_context()->getServlet();
In our case we would need two different servlets based on two different
JAVA_HOSTS and JAVA_SERVLET.
As I see client variable within Java.inc is defined as static. Should we
customize only Java.inc to fit our needs, or this can be solved differently?
Kind regards,
Zvonimir
2011/12/8 <php...@li...>
> Hi,
>
> > We have a need to send requests from PHP to two different servlets
> running
> > on separate JBoss servers on separate machines.
> > Is this supported with php/JAVA bridge?
>
> Yes. PHP can open multiple socket connections to different servers.
>
>
> > If yes, how it should be configured?
>
> Not sure what you mean. You cannot "configure" the bridge; you give it a
> HTTP connection to the back-end and it will use that connection.
>
>
> Regards,
> Jost Bökemeier
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point
> of
> discussion for anyone considering optimizing the pricing and packaging
> model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|