Re: tomcat connector

2005-06-09 Thread dhay

Hi Bill,

You sent this a while back, and I have to pick it up again.

Would you be able to explain how this would all hook together - are you
saying that Apache could load-balance the request (non-HTTP) and our
extension of JkHandler could handle the request?

cheers,

David

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Developers List tomcat-dev@jakarta.apache.org
 Sent: Tuesday, March 22, 2005 8:16 AM
 Subject: Re: tomcat connector
 
  Wow, didn't know this was possible!
 
  This will be perfect for us...except that we need to go through Apache
  mod_jk to load-balance requests as they come in, BEFORE they reach
tomcat.
 
  Please tell me there is a way to do this?!  (and how?!)
 

 It might be easier in this case to extend JkHandler

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache
 /jk/core/JkHandler.html, and implement the invoke method.  Then you can
 insert it into the Handler chain via something like:
class.myhandler=com.myfirm.mypackage.MyHandler
request.next=myhandler
myhandler.next=container
# any other properties that your Handler needs to be set
 |-+
 |  |   Bill Barker|
 | |   [EMAIL PROTECTED]|
 | |   .com|
 | ||
 | |   03/21/2005 03:30 |
 | |   PM   |
 | |   Please respond to|
 | |   Tomcat  |
 | |   Developers List |
 | ||
 |-+




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Session Affinity after Graceful Apache restart? [was Re: Adding working dynamically with mod_jk status?]

2005-06-07 Thread dhay

Hi,

I've been asking some more questions about restarts on the Apache list, and
was redirected back here...

Does anyone know (David, Mladen?) what will happen to session affinity is
this situation?

ie with Apache in front of several tomcats using mod_jk, when Apache is
restarted gracefully using apache -k restart (Windows) will session
affinity be preserved across the restart?  ie will browsers with a session
open with a particular Tomcat continue being directed to that particular
Tomcat after the restart?

cheers,

David



|-+
| |   David Rees   |
| |   [EMAIL PROTECTED]|
| |   m   |
| ||
| |   05/25/2005 02:37 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|




On 5/25/05, [EMAIL PROTECTED] wrote:

 Is this still true if we were to define extra workers that are marked
as
 disabled at startup?  Could we then point them to any new servers as they
 are added and enable them without a restart?  I know it's not very clean,
 but would it work?

 We'd *really* like to find a way around having to force a restart.

Have you seen if a graceful restart of Apache works for you?  Graceful
restarts of Apache have worked for me in the past to add new workers
without dropping requests.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Session Affinity after Graceful Apache restart? [was Re: Adding working dynamically with mod_jk status?]

2005-06-07 Thread dhay


 First of all graceful restart will not work on Windows for any busy
 server. I suggest that you move to some unix/linux version.

Errr...could you explain why?  I was told on the Apache list that it does
work on Windows...what am I missing?

cheers,

David




|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   06/07/2005 01:37 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
  |
  |   cc:   
  |
  |   Subject:  Re: Session Affinity after Graceful Apache restart?  [was 
Re: Addingworking dynamically   |
  |with mod_jk status?] 
  |
  
---|




[EMAIL PROTECTED] wrote:
 Hi,

 I've been asking some more questions about restarts on the Apache list,
and
 was redirected back here...

 Does anyone know (David, Mladen?) what will happen to session affinity is
 this situation?

 ie with Apache in front of several tomcats using mod_jk, when Apache is
 restarted gracefully using apache -k restart (Windows) will session
 affinity be preserved across the restart?  ie will browsers with a
session
 open with a particular Tomcat continue being directed to that particular
 Tomcat after the restart?


First of all graceful restart will not work on Windows for any busy
server. I suggest that you move to some unix/linux version.

And yes, the session affinity will be preserved because it is
related to the worker name and jvmRoute.

Also, like somebody already told you: The easiest is to try by yourself,
and then come up with the real problem.


Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding working dynamically with mod_jk status?

2005-05-31 Thread dhay

Hi David,

That sounds perfectbut I've got to work on Windows too.  Do you know if
there's a way to do it on Win?

thanks!

David



|-+
| |   David Rees   |
| |   [EMAIL PROTECTED]|
| |   m   |
| ||
| |   05/25/2005 02:37 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|




On 5/25/05, [EMAIL PROTECTED] wrote:

 Is this still true if we were to define extra workers that are marked
as
 disabled at startup?  Could we then point them to any new servers as they
 are added and enable them without a restart?  I know it's not very clean,
 but would it work?

 We'd *really* like to find a way around having to force a restart.

Have you seen if a graceful restart of Apache works for you?  Graceful
restarts of Apache have worked for me in the past to add new workers
without dropping requests.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Graceful restart on Windows [was Re: Adding working dynamically with mod_jk status?]

2005-05-31 Thread dhay

After some more digging, it *appears* that apache -k restart WILL do a
graceful restart of Apache2 on Windoze.

Can anyone confirm this please?  And are there any gotcha's to watch out
for?  Can someone explain exactly how this works?  eg if I am in the middle
of a chunk (or series) of work  with a web browser and one of the
tomcats, will it restart in the middle of that?

cheers,

David



|-+
| |   [EMAIL PROTECTED] |
| ||
| |   05/31/2005 05:29 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|





Hi David,

That sounds perfectbut I've got to work on Windows too.  Do you know if
there's a way to do it on Win?

thanks!

David



|-+
| |   David Rees   |
| |   [EMAIL PROTECTED]|
| |   m   |
| ||
| |   05/25/2005 02:37 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|

  |
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org
  |
  |   cc:
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?
  |
  
---|




On 5/25/05, [EMAIL PROTECTED] wrote:

 Is this still true if we were to define extra workers that are marked
as
 disabled at startup?  Could we then point them to any new servers as they
 are added and enable them without a restart?  I know it's not very clean,
 but would it work?

 We'd *really* like to find a way around having to force a restart.

Have you seen if a graceful restart of Apache works for you?  Graceful
restarts of Apache have worked for me in the past to add new workers
without dropping requests.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding working dynamically with mod_jk status?

2005-05-25 Thread dhay

Is this still true if we were to define extra workers that are marked as
disabled at startup?  Could we then point them to any new servers as they
are added and enable them without a restart?  I know it's not very clean,
but would it work?

We'd *really* like to find a way around having to force a restart.

thanks!

David



|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   05/24/2005 02:55 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|




[EMAIL PROTECTED] wrote:
 Any ideas or recommendations on this?


Adding workers would be tricky because if member of load balancer
it has to be known at startup time so that shared memory slot can be
allocated.

The only solution would be to edit the workers.properties file and
then forcing the Apache to restart.


Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding working dynamically with mod_jk status?

2005-05-24 Thread dhay

Any ideas or recommendations on this?

cheers,

David



|-+
| |   [EMAIL PROTECTED] |
| ||
| |   05/23/2005 04:46 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|





Hi Mladen,

Sure...we have a system that uses multiple Tomcats (with Apache/mod_jk
upfront, of course).  We would like to make it easy for the user to add
another server to the mix.  Hence, we'd like to add the new worker to the
Apache config programmatically (we'd like to be able to delete them too, if
they cut down the number of servers they're using.  I think we can just
stop it using the status app.)

Would it be easy to add to the status code?

Comments?

cheers,

David



|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   05/23/2005 04:31 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|

  |
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org
  |
  |   cc:
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?
  |
  
---|




[EMAIL PROTECTED] wrote:
 Hi,

 Is there any way in the current implementatio to **add** a new worker
(for
 a new Tomcat instance) dynamically?  Using mod_jk status?  Another way?



No.

Can you elaborate why would you need such a feature?

Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk status docs?

2005-05-23 Thread dhay

Hi,

Are there any docs for the status worker?

I'm struggling to figure out what it can do, and make it do it!  Any
pointers?

cheers!

David




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Adding working dynamically with mod_jk status?

2005-05-23 Thread dhay

Hi,

Is there any way in the current implementatio to **add** a new worker (for
a new Tomcat instance) dynamically?  Using mod_jk status?  Another way?

cheers,

David




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding working dynamically with mod_jk status?

2005-05-23 Thread dhay

Hi Mladen,

Sure...we have a system that uses multiple Tomcats (with Apache/mod_jk
upfront, of course).  We would like to make it easy for the user to add
another server to the mix.  Hence, we'd like to add the new worker to the
Apache config programmatically (we'd like to be able to delete them too, if
they cut down the number of servers they're using.  I think we can just
stop it using the status app.)

Would it be easy to add to the status code?

Comments?

cheers,

David



|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   05/23/2005 04:31 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
---|
  | 
  |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
  |
  |   cc:   
  |
  |   Subject:  Re: Adding working dynamically with mod_jk status?  
  |
  
---|




[EMAIL PROTECTED] wrote:
 Hi,

 Is there any way in the current implementatio to **add** a new worker
(for
 a new Tomcat instance) dynamically?  Using mod_jk status?  Another way?



No.

Can you elaborate why would you need such a feature?

Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat connector

2005-03-22 Thread dhay

Wow, didn't know this was possible!

This will be perfect for us...except that we need to go through Apache
mod_jk to load-balance requests as they come in, BEFORE they reach tomcat.

Please tell me there is a way to do this?!  (and how?!)

cheers,

David



|-+
| |   "Bill Barker"|
| |   [EMAIL PROTECTED]|
| |   .com|
| ||
| |   03/21/2005 03:30 |
| |   PM   |
| |   Please respond to|
| |   "Tomcat  |
| |   Developers List" |
| ||
|-+
  
---|
  | 
  |
  |   To:   "Tomcat Developers List" tomcat-dev@jakarta.apache.org, 
"Remo rahman"   |
  |[EMAIL PROTECTED]  
  |
  |   cc:   
  |
  |   Subject:  Re: tomcat connector
  |
  
---|




You need to implement your own ProtocolHandler
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache

/coyote/ProtocolHandler.html, which will hand the Request  Response off to
the Adapter that Tomcat hands it when it is ready for Tomcat to process
them.  You'll probably also want to implement an ActionHook as well.

The simplest place to start is to take a look at
org.apache.coyote.memory.MemoryProtocolHandler.

- Original Message -
From: "Remo rahman" [EMAIL PROTECTED]
To: tomcat-dev@jakarta.apache.org
Sent: Monday, March 21, 2005 1:28 AM
Subject: tomcat connector


I'm developing an application which is a java servlet, deployed on tomcat
5.5
Now, I want my application to take raw data from the client through
sockets,  for that it has to make a socket connection and listen that
port for data.

 I've heard that we can create Connectors in Tomcat, which can listen
to any protocol type of request i.e. Http, Telnet or any of
application protocol.

 In my case I need a Connector which can listen to a socket for raw
data type requests…

And, I can hook my application (or servlet) with that Connector  can
listen to those requests which are coming on that connection.

But, as a solution I want my client to be a simple Telnet tool, which
can send requests on the port, I've configured for my Connector.

But, till now I've seen tomcat entertaining Http requests only.



Please suggest,

- How to implement this in tomcat 5.5

- Is there any built-in connector available

- Is it possible to make a custom connector for this scenario



Looking forward to your comments  suggestions

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message is intended only for the use of the person(s) listed above as
the intended recipient(s), and may contain information that is PRIVILEGED
and CONFIDENTIAL.  If you are not an intended recipient, you may not read,
copy, or distribute this message or any attachment. If you received this
communication in error, please notify us immediately by e-mail and then
delete all copies of this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent
through the Internet is not secure. Do not send confidential or sensitive
information, such as social security numbers, account numbers, personal
identification numbers and passwords, to us via ordinary (unencrypted)
e-mail.



-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom load balancing algorithm and mod_jk???

2005-02-09 Thread dhay

Hi,

Thanks very much for the reply.

Ok, how is it possible?  What would we need to extend / where would we plug
it in?

Yes, we'd like to balance on CPU usage of tomcat servers that Apache is
load balancing.  Or, even, by having each tomcat app communicate with the
balancer to tell it how busy it is.

Our problem is that we receive a variety of requests, some of which are
very resource intensive and tie up that tomcat for a good while.  Hence a
round-robin or balance factors algorithm are not very effective.

Do you have any ideas of a possible solution?

Many thanks,

David



|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   02/09/2005 12:17 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
|
  | 
   |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
   |
  |   cc:   
   |
  |   Subject:  Re: Custom load balancing algorithm and mod_jk???   
   |
  
|




[EMAIL PROTECTED] wrote:
 Hi,

 We need to use Apache to load balance a set of Tomcat servers.

 However, we need to use a custom load-balancing algorithm, based on the
 usage of those servers.

 Is this possible with mod_jk?  Would it be easy to extend it?  Any other
 suggestions?


Yes, it's possible, but I doubt it has any practical usage.
Since you are using load balancer, then usage is proportional
to it's balance factors.

If you ment to balance on CPU usage of remote backends,
then that'll be hard or even impossible due to AJP13
protocol limitations. That's why we are trying to make
a AJP14 protocol.

Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom load balancing algorithm and mod_jk???

2005-02-09 Thread dhay

Thanks for the reply, Jim...

So, do you know of any other solutions out there?  Surely there are many
other people who have been faced with a similar problem?

thanks,

David



|-+
| |   Jim Jagielski|
| |   [EMAIL PROTECTED]|
| ||
| |   02/09/2005 12:32 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
|
  | 
   |
  |   To:   tomcat-dev@jakarta.apache.org   
   |
  |   cc:   
   |
  |   Subject:  Re: Custom load balancing algorithm and mod_jk???   
   |
  
|




[EMAIL PROTECTED] wrote:

 Yes, we'd like to balance on CPU usage of tomcat servers that Apache is
 load balancing.  Or, even, by having each tomcat app communicate with the
 balancer to tell it how busy it is.

 Our problem is that we receive a variety of requests, some of which are
 very resource intensive and tie up that tomcat for a good while.  Hence a
 round-robin or balance factors algorithm are not very effective.

 Do you have any ideas of a possible solution?


There's been talk, at least on the HTTPD side of things, to
have the balancer mechanism be open to external weighting
methods (for the httpd proxy module)... But it's only
gone so far as it sure would be nice.
--
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
There 10 types of people: those who read binary and everyone else.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom load balancing algorithm and mod_jk???

2005-02-09 Thread dhay

Hi Mladen,

That sounds feasible...but I have no idea how to do that!!

Would you mind pointing me in the right direction?

- how do we create custom headers?  Where?
- how do we get access to the ajp demarshaling?

Sorry for the ignorance!  I haven't done any extending of tomcat before...

thanks very much,

David




|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   02/09/2005 12:33 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
|
  | 
   |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
   |
  |   cc:   
   |
  |   Subject:  Re: Custom load balancing algorithm and mod_jk???   
   |
  
|




[EMAIL PROTECTED] wrote:
 Hi,

 Thanks very much for the reply.

 Ok, how is it possible?  What would we need to extend / where would we
plug
 it in?

 Yes, we'd like to balance on CPU usage of tomcat servers that Apache is
 load balancing.  Or, even, by having each tomcat app communicate with the
 balancer to tell it how busy it is.

 Our problem is that we receive a variety of requests, some of which are
 very resource intensive and tie up that tomcat for a good while.  Hence a
 round-robin or balance factors algorithm are not very effective.

 Do you have any ideas of a possible solution?


Use custom headers, and update lb_factors according to that value.
During ajp demarshaling remove those headers so that clients are
unaware of that.

For example use 100/CpuUsage as lb_factor, so if CPU load is
high it's lb_factor will be smaller, thus lowering the load to that
node.

Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom load balancing algorithm and mod_jk???

2005-02-09 Thread dhay

 Then I wish you all the luck :).
Thanks!  It seems a little daunting!

So, exploring other possibilities before I undertake it...

Is there any way to just make a call and update the load factors on the
fly?

Or does the JMX additions provide any way to update things dynamically?

Many thanks,

David



|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   02/09/2005 12:51 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
|
  | 
   |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
   |
  |   cc:   
   |
  |   Subject:  Re: Custom load balancing algorithm and mod_jk???   
   |
  
|




[EMAIL PROTECTED] wrote:
 Hi Mladen,

 That sounds feasible...but I have no idea how to do that!!

 Would you mind pointing me in the right direction?

 - how do we create custom headers?  Where?

Inside Tomcat.
Not sure where, but some sort of filter should help.
Take a look at filter documentation if you don't wish
to hack the Tomcat code itself.
The filter will need to gather CPU usage and add some
header to outgoing headers.

 - how do we get access to the ajp demarshaling?


Inside mod_jk.
jk_ajp_common.c - ajp_unmarshal_response
See how headers are parsed.
Then you will need to pass that back to lb_worker.

 Sorry for the ignorance!  I haven't done any extending of tomcat
before...


Then I wish you all the luck :).

Regards,
Mladen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom load balancing algorithm and mod_jk???

2005-02-09 Thread dhay

ok...do you know if this can be done programmatically,  rather than through
the web page?

Also, is there a timeframe for mod_jk 1.2.9?  That sounds perfect if it can
be done programmatically there.  We would probably wait for that to be
released...

thanks!!

David




|-+
| |   Mladen Turk  |
| |   [EMAIL PROTECTED]|
| |   |
| ||
| |   02/09/2005 01:21 |
| |   PM   |
| |   Please respond to|
| |   Tomcat  |
| |   Developers List |
| ||
|-+
  
|
  | 
   |
  |   To:   Tomcat Developers List tomcat-dev@jakarta.apache.org  
   |
  |   cc:   
   |
  |   Subject:  Re: Custom load balancing algorithm and mod_jk???   
   |
  
|




[EMAIL PROTECTED] wrote:
Then I wish you all the luck :).

 Thanks!  It seems a little daunting!

 So, exploring other possibilities before I undertake it...

 Is there any way to just make a call and update the load factors on the
 fly?


Not right now. The mod_jk 1.2.9 will have something Apache2.1
proxy_balancer has, and that is updating various options (and lb_factor)
using manger status page.

You may try the bleeding edge and use Apache2.1 instead.

Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Custom load balancing algorithm and mod_jk???

2005-02-08 Thread dhay
Hi,

We need to use Apache to load balance a set of Tomcat servers.

However, we need to use a custom load-balancing algorithm, based on the
usage of those servers.

Is this possible with mod_jk?  Would it be easy to extend it?  Any other
suggestions?

Many thanks,

David




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JspC recompiles unchanged files

2001-09-10 Thread dhay



Hello,

Does anyone know why JspC pre-compiles all jsp's, even if they have not changed?
I am using Ant to pre-compile and compile my jsps, and it is frustrating that
they are ALL pre-compiled every time.

Is this intended behaviour or a bug?

Many thanks,

Dave





JspC output?

2001-09-10 Thread dhay



Whilst on the subject of JspC...does anyone know why no output is obtained when
you run it from the command line?

I am excecuting java org.apache.jasper.JspC ... and I never get any output!
Again, is this a bug, or intended behaviour?!

Many thanks,

Dave








welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread dhay



Hi.  I posted this to the tomcat user group, with no joy.

I am beginning to suspect this is a bug - is it intended behaviour that if
jsp's are pre-compiled you cannot use them as a welcome page?  Seems very
strange to me if it is!

Thanks,

Dave


-- Forwarded by David Hay/Lex/Lexmark on 08/24/2001 04:13 PM
---


David Hay
08/21/2001 03:00 PM

To:   [EMAIL PROTECTED]
cc:
Subject:  welcome file in web.xml with pre-compiled jsp's?

Hi everyone,

I am pre-compiling my jsp's in my struts web app, and everything works fine,
except specifying the welcome file in the web.xml.

If I do not pre-compile everything, having index.jsp as the first page works
great.  However, when I pre-compile index.jsp it doesn't work.  Putting an
uncompiled index.jsp back in the root directory makes it work again.  I guess it
is because jsp is not in root directory, but figure I should still be able to do
this...

Does anyone know if there is something special I have to do, or if there is
anywhere else I can specify the first page as a servlet?

btw, please copy me into any reply!

Thanks,

Dave

Web.xml:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

!-- web.xml for use with PRE-COMPILED JSP's --
web-app


   !-- The Welcome File List --
   welcome-file-list
!-- call index.jsp as first page --
welcome-fileindex.jsp/welcome-file
   /welcome-file-list

   !-- Action Servlet Configuration --
   servlet
servlet-nameaction/servlet-name
!-- central Action Servlet Controller to use --
servlet-classbeans.AppController/servlet-class
!-- Java class name of the application resources bundle base class --
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
!-- Context-relative path to the XML resource containing our configuration
information --
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
!-- The debugging detail level for this servlet, which controls how much
information is logged. [0] --
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
!-- The debugging detail level for the Digester we utilize in
initMapping(), which logs to System.out instead of the servlet log. [0] --
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
   /servlet

   !-- Catch any exceptions, and redirect to error page --
   error-page
  exception-typejava.lang.Exception/exception-type
  location/error.jsp/location
   /error-page


   servlet
servlet-name
changeLogFileName
/servlet-name
servlet-class
JspServ.changeLogFileName
/servlet-class
   /servlet

   servlet
servlet-name
chooseDevice
/servlet-name
servlet-class
JspServ.chooseDevice
/servlet-class
   /servlet

   servlet
servlet-name
dataDir
/servlet-name
servlet-class
JspServ.dataDir
/servlet-class
   /servlet

   servlet
servlet-name
dataDirFrame
/servlet-name
servlet-class
JspServ.dataDirFrame
/servlet-class
   /servlet

   servlet
servlet-name
error
/servlet-name
servlet-class
JspServ.error
/servlet-class
   /servlet

   servlet
servlet-name
index
/servlet-name
servlet-class
JspServ.index
/servlet-class
   /servlet

   servlet
servlet-name
indexBar
/servlet-name
servlet-class
JspServ.indexBar
/servlet-class
   /servlet

   servlet
servlet-name
log
/servlet-name
servlet-class
JspServ.log
/servlet-class
   /servlet

   servlet
servlet-name
logFilter
/servlet-name
servlet-class
JspServ.logFilter
/servlet-class
   /servlet

   servlet
servlet-name
logFrame
/servlet-name
servlet-class
JspServ.logFrame
/servlet-class
   /servlet

   servlet
servlet-name
logging
/servlet-name
servlet-class
JspServ.logging
/servlet-class
   /servlet

   servlet
servlet-name
loggingFrame
/servlet-name
servlet-class
JspServ.loggingFrame
/servlet-class
   /servlet

   servlet
servlet-name
loggingSaveCancel
/servlet-name
servlet-class
JspServ.loggingSaveCancel
/servlet-class
   /servlet

   servlet
servlet-name
login
/servlet-name
servlet-class
JspServ.login
/servlet-class
   /servlet

   servlet
servlet-name
messages
/servlet-name
servlet-class
JspServ.messages
/servlet-class
   /servlet

   servlet
servlet-name
parameters
/servlet-name
servlet-class