Hi,

>I'm migrating from Apache2/JK2/Tomcat 5.0.28 to Tomcat standalone
(don't
>need php anymore), and have some questions regarding the matter.

Good.

>1) Since Tomcat now will be serving all the static content as well,
will
>it require more threads than when only serving dynamic content?

Probably only slightly: run a load test to simulate normal load and see
how the response times are.

>2) In Apache I'm using mod_rewrite to rewrite requests to mydomain.com/
>to mydomain.com/myapp. I've implemented this behaviour by using
>response.sendRedirect in a scriptlet in the index.jsp of my ROOT app.
Is
>this the preferred way of doing this?

It's fine.  It's a low-overhead, low-complexity way that should serve
you fine for now.

>3) In Apache I'm using some aliases to serve images stored outside my
>appbase from insisde my webapp (Alias /myapp/alias
>"/path/outside/appbase"). I've implemented this by creating context xml
>files for all my aliases with appBase="/path/outside/appbase"
>path="/myapp/alias". Again, is this the preferred way of doing this?

This is also OK.  You're creating small webapps that contain only the
images, and that's fine.

>4) I've compiled jsvc and adapted the Tomcat5.sh to start the server.
If
>I do "Tomcat5.sh stop ; Tomcat5.sh start" to do a restart of the server
>my machine hangs. If I allow a pause between stop and start then the
>server starts with no problem. Is this a known issue?

What's your hardware?

You should always allow a pause between the stop and start, as cleanup
can take a little while.  This is especially true if you have
significant code that runs on shutdown.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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

Reply via email to