You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2007/06/11 17:41:40 UTC

[Tapestry Wiki] Update of "Tapestry5WhereToStoreConfigurationResources" by DanielJue

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The following page has been changed by DanielJue:
http://wiki.apache.org/tapestry/Tapestry5WhereToStoreConfigurationResources

New page:
Configuration Resources often need to be stored with your web application.  These are consumed either by your application server, or libraries in your application (such as Hibernate).


 * These locations a based on using a directory structure generated by Maven Tapestry 5 Archetype.  At the time of this writing, this is the typical way to start working on a Tapestry 5 project.  If your structure looks different, you will need to make changes accordingly.

 * Things that can go in 
   src/main/resources
      1. hibernate.cfg.xml or hibernate.properties
 
      2. log4j.properties

 * Things that can go in 
   src/main/webapp/META-INF
      1. context.xml, as used for Tomcat.  In here you can put your JNDI resource settings as referenced in your web.xml.  These will get appended to the server.xml file in the Tomcat/conf directory.

 * Things that can go in 
   src/main/webapp/WEB-INF
      1. web.xml, as used by web application containers (Tomcat/Jetty, etc)  In here you can put your context parameters, filters and filter mappings, and JNDI resource references.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org