tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: what to do in conf. files
Date Fri, 25 Feb 2011 19:54:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ahmet,

On 2/25/2011 1:37 PM, ahmet temiz wrote:
> Are there anythings I have to do in configuration files to
> change from development stages to production stage ?

Unless you've done foolish things in development, production
configuration should not really need any changes. Some things you might
consider changing for a production configuration:

1. Set larger number of request processors in <Connector>
2. Set <Host> autoDeploy="false"
3. Set JspServlet parameters:
   - development
   - modificationTestInterval
   - checkInterval
4. Change the number of db connections in a JNDI DataSource
   (I always use max=1 in dev, so production should clearly have more)

> Especially, what are things to deploy jsf_webapp
>  in its real host after developing it in the localhost  ?

You will also have to make sure that your URLs are built properly. If
the string "localhost" appears anywhere in your webapp, you're probbaly
doing something wrong. Also, if you're not building URLs in pages like this:

   <a href="<%= response.encodeURL(request.getContextPath()
                          + "/path/to/resource") %>">your link</a>

...then you are probably going to have problems re-locating it. Note
that the use of tag libraries for building URLs is generally a good idea
because this complexity is hidden from you.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1oCOwACgkQ9CaO5/Lv0PCyGgCgts7HKVsGPoprtSm7ceNQSBdU
0r8AnRwk1uMwyNU0r+6HyUh3iwQf3rUd
=Zx0H
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message