diff options
Diffstat (limited to 'config/web.xml.erb')
| -rw-r--r-- | config/web.xml.erb | 36 | 
1 files changed, 36 insertions, 0 deletions
diff --git a/config/web.xml.erb b/config/web.xml.erb new file mode 100644 index 000000000..af962f3b7 --- /dev/null +++ b/config/web.xml.erb @@ -0,0 +1,36 @@ +<!DOCTYPE web-app PUBLIC +  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" +  "http://java.sun.com/dtd/web-app_2_3.dtd"> +<web-app> +<% webxml.context_params.each do |k,v| %> +  <context-param> +    <param-name><%= k %></param-name> +    <param-value><%= v %></param-value> +  </context-param> +<% end %> + +  <filter> +    <filter-name>RackFilter</filter-name> +    <filter-class>org.jruby.rack.RackFilter</filter-class> +  </filter> +  <filter-mapping> +    <filter-name>RackFilter</filter-name> +    <url-pattern>/*</url-pattern> +  </filter-mapping> + +  <listener> +    <listener-class><%= webxml.servlet_context_listener %></listener-class> +  </listener> + +  <listener> +    <listener-class>org.kares.jruby.rack.WorkerContextListener</listener-class> +  </listener> + +<% if webxml.jndi then [webxml.jndi].flatten.each do |jndi| %> +  <resource-ref> +    <res-ref-name><%= jndi %></res-ref-name> +    <res-type>javax.sql.DataSource</res-type> +    <res-auth>Container</res-auth> +  </resource-ref> +<% end; end %> +</web-app>  | 
