Do you mean using jk2 with tomcat as an in-process server? 
You need the shared memory anyway, wont work without it.
But the options that most people end up using as a connection scheme are
either via
sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
you
are on a *IX OS, you should use sockets. Is there a problem with making port
8009 available
through localhost?

-----Original Message-----
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 17:05
To: [EMAIL PROTECTED]
Subject: jk2 shared memory


I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the
requirement that I must also use a port (8009).  I have apache configured to
require mutual authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the "channel.socket:localhost:8009" section, I cannot
connect to my servlets.  Is there another connector that I should be using?
Or do I need to have port 8009 open?

thank you for the help.



________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__________________________________________________________________
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Reply via email to