|
From: <php...@li...> - 2009-09-13 22:00:45
|
Hi Jost-
Glad to report the bug! Sadly I seem to be good at finding them ;)
This is the *only* setup I use for getting the bridge going. If this
either of these settings turns on promiscuous mode, I didn't do it on
purpose.
// PHP side (duh)
define ("JAVA_HOSTS", "127.0.0.1:9676");
define ("JAVA_PREFER_VALUES", true); # required for BC with the way
we wrote our php-java-bridge code. Could try to debug and fix but no
downside to this.
require_once('/Users/alanpinstein/dev/sandbox/showcase2/showcase2/
classes/dieselpoint/Java.inc');
// bridge side
java -server -Xmx1200m -Dphp.java.bridge.default_log_level=5 -jar /
path/to/JavaBridge.jar SERVLET:9676 2>$LOGFILE 1>$LOGFILE &
I read the docs just now on promiscuous mode and I am not certain I
understand what it does. I sort of see what it's used for, but it's
not really clear exactly what it does, and consequently, what
technically doesn't happen if it's not on.
In fact I have a nice wrapper script for starting/stopping a
standalone bridge (which frankly I think is really convenient for
people that aren't already running an app server). I will post the
script in a separate email if you want to use it in the project.
Alan
On Sep 13, 2009, at 5:45 PM, php-java-bridge-
us...@li... wrote:
> Hi,
>
> Yes, if your back end rejects the local fifo (in promiscuous mode),
> Java.inc
> creates a new pair and tries again in the next request.
>
> The fifos are only used on security enhanced linux, please disable
> them by
> setting JAVA_PIPE_DIR to null.
>
> Thank you very much for reporting this bug. -- It has been there
> since 5
> years. I guess you are the first person who enabled promiscuous mode
> in the
> back end w/o setting the host value in the front end.
>
> Regards,
> Jost Boekemeier
>
> On Sep 13, 2009 11:07 PM, <php-java-bridge-
> us...@li...>
> wrote:
>
> Oops the image got stripped. Here's a link to it:
>
> http://idisk.me.com/apinstein/Public/Pictures/Skitch/php-java-bridge_tmp_files_problem-20090913-170627.jpg
>
> Alan
>
> On Sep 13, 2009, at 5:01 PM, php-java-bridge-
>
> us...@li... wrote: > My /tmp directory ran out of
> space (or
> inodes or something) to...
>> You can see that the bridge exhausted all inodes on /dev/shm then as
>> soon as that was full it "failed-over" (by accident, based on a look
>> at the code) to /tmp.
>>
>> Please advise.
>>
>> Regards,
>> Alan
>>
> ------------------------------------------------------------------------------
>> 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
>
>
> ------------------------------------------------------------------------------
> 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
> ------------------------------------------------------------------------------
> 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
|