On Wed, 5 Sep 2001, Patrick LeBoutillier wrote:

> I've been thinking about this and I don't think you can get Inline::Java
> working properly under mod_perl in it's current state. The "java" server
> doesn't support
> multiple clients properly.
> 
> What I'll do is try to add a special mode for the next release that will
> take care of these
> problems and hopefully allow for multiple clients and proper functionnality
> under mod_perl.

thanks, partick,
the funny thing is, it seemed to be working just fine =)
maybe a workaround would be, to eval the "use Inline ...", like:

require "MyModule.pm";

-----------------------
package MyModule;
...
eval <<"END_OF_EVAL";
my $port = getFreeJVMPort();
use Inline Java => <<'END_OF_JAVA','CLASSPATH'=>'...', PORT => $port;
// Java-Code
END_OF_JAVA
Inline->init;
END_OF_EVAL

sub new {
 ...
}

and getFreeJVMPort() would return a different port for every child.
i'll try that out.

regards,
tina
> 
> ----- Original Message -----
> From: "Tina Mueller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 03, 2001 7:11 AM
> Subject: Inline::Java and mod_perl
> 
> > i just subscribed to this list.
> > I solved the problem with the restarting of the
> > web-server (i didn't call the restart script
> > properly...). sorry for that confusion.
> > but I would be happy about any experiences with
> > Inline::Java under mod_perl. I know there is one
> > JVM started, but there are several apache childs.
> > do all childs talk to the same JVM, also after
> > the MaxRequestPerChild has been reached and the
> > childs are restarted?

-- 
http://tinita.de    \   enter__| |__the___ _ _ ___
tina's moviedatabase \      / _` / _ \/ _ \ '_(_-< of
search & add comments \     \ _,_\ __/\ __/_| /__/ perception

Reply via email to