tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <>
Subject RE: [JK2] JNI worker Init complete
Date Fri, 28 Jun 2002 05:56:43 GMT
> -----Original Message-----
> From: Ignacio J. Ortega [] 
> Sent: 28. lipanj 2002 1:28
> To: 'tomcat-dev'
> Subject: [JK2] JNI worker Init complete
> When tomcat is started inprocess ( by JNI ) we need a way to 
> signal when tomcat ( 3.3 and 4.1.X ) initialization is 
> complete, and make jk2 wait until that signal to start 
> redirecting request to the JNI worker..

I have the same problems, (I've posted that on Monday)...
The problem is also with the channel itself, cause the first invocation
of takes some time, but I solved that cause there was the
multithreading bug in the code.
> I think i will need too another kind of invoke message, to 
> signal inited state from tomcat, from Coyote/JK2.., any help 
> is welcomed..

There is no need to do that for initialization. All that we require is
the worker startup flag, with the timeout probably.
Second large improvement would be (think you meant that) the
introduction of a special fixed single 'maintenance' channel, that could
be used for server<->TC communication, sending status and control
messages like restart/shutdown/busy/resource, etc... Running as a
separate thread (or something like that) for each TC-channel combination
in the load balancer.

I'm pretty close to the first solution (disabling all communication
until the first worker call succeeds, in the preset timeout), and I'll
post it for review when I thoroughly test it.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message