+1, let's use the META-INF directory for our config files.

On Thu, Apr 28, 2016 at 4:48 PM, Chiranga Alwis <chira...@wso2.com> wrote:

> Hi,
> the all new wso2as-web.xml web application descriptor for WSO2 Application
> Server 6.0.0 is a configurations file reminiscent to Apache Tomcat's
> context.xml file.
>
> The primary reasons behind the introduction of this file are as follows:
> 1. Separate out the WSO2 specific configurations from those related to
> Tomcat in order to improve the usability.
> 2. Separate out the configurations which are configurable at web
> application level from those which are configurable at server level.
> 3. Provide the facility to set configurations globally, effective for all
> web applications and also to override those configurations at web
> application level for the desired web application(s).
>
> This file can be currently added to the <CONTEXT_ROOT>/WEB-INF of a web
> application.
> But in my belief, since wso2as-web.xml file acts as a configurations file
> specific to WSO2 Application Server or more precisely an application server
> specific configurations file, this file should move
> to <CONTEXT_ROOT>/META-INF folder.
>
> I found an accurate description about this from the book 'Professional
> Java for Web Applications' by Nicholas S. Williams. This description comes
> under the 'Directory structure and WAR Files' section of chapter 1 of the
> book. It is as follows:
>
> "You probably also noticed the presence of two different META-INF
> directories. This can be a source of confusion for some developers, but if
> you remember the simple classpath rules, you can easily differentiate the
> two. Like JAR file META-INF directories, the root-level /META-INF directory
> contains the application manifest file. It can also contain resources for
> specific web containers or application servers. For example, Apache Tomcat
> (which you’ll learn about in Chapter 2) looks for and uses a context.xml
> file in this directory to help customize how the application is deployed in
> Tomcat. None of these files are part of the Java EE specification, and the
> supported files can vary from one application server or
> web container to the next." (from page 14-15)
>
> Any suggestions and ideas with regards to the location of this file are
> highly appreciated.
>
> --
> Chiranga Alwis,
> Software Engineering Intern,
> +94 77 5930497
> +94 77 6368208
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to