home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java EE 6 example source code file (web.xml)

This example Java EE 6 source code file (web.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Java EE 6 tags/keywords

all, copyright, inc, microsystems, microsystems, sun, sun, use, use, utf-8, utf-8

The Java EE 6 web.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright 2004-2009 Sun Microsystems, Inc.  All rights reserved.
 Use is subject to license terms.
-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

    <display-name>WebApp
    <distributable/>
    <servlet>
        <servlet-name>MailServlet
        <servlet-class>samples.connectors.mailconnector.servlet.SendMailServlet
        <load-on-startup>0
    </servlet>
    <servlet>
        <servlet-name>MailBrowserServlet
        <servlet-class>samples.connectors.mailconnector.servlet.MailBrowserServlet
        <load-on-startup>0
    </servlet>
    <servlet-mapping>
        <servlet-name>MailServlet
        <url-pattern>/mail
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>MailBrowserServlet
        <url-pattern>/browse
    </servlet-mapping>
    <login-config>
        <auth-method>BASIC
    </login-config>
    <session-config>
        <session-timeout>30
    </session-config>
    <resource-ref>
        <res-ref-name>eis/MyConnectionFactory
        <res-type>samples.connectors.mailconnector.api.JavaMailConnectionFactory
        <res-auth>Container
        <res-sharing-scope>Shareable
      </resource-ref>
    <resource-ref>
        <res-ref-name>TheMailSession
        <res-type>javax.mail.Session
        <res-auth>Container
        <res-sharing-scope>Shareable
    </resource-ref>
</web-app>

Other Java EE 6 examples (source code examples)

Here is a short list of links related to this Java EE 6 web.xml source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.