|
Jetty example source code file (web.xml)
The Jetty web.xml source code<?xml version="1.0" encoding="ISO-8859-1"?> <web-app 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 http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" metadata-complete="true" version="2.5"> <display-name>Test JNDI WebApp <servlet> <servlet-name>JNDITest <servlet-class>com.acme.JNDITest <load-on-startup>1 </servlet> <servlet-mapping> <servlet-name>JNDITest <url-pattern>/test/* </servlet-mapping> <env-entry> <env-entry-name>wiggle <env-entry-value>99.99 <env-entry-type>java.lang.Double <injection-target> <injection-target-class>com.acme.JNDITest <injection-target-name>wiggle </injection-target> </env-entry> <resource-ref> <res-ref-name>jdbc/mydatasource <res-type>javax.sql.DataSource <res-auth>Container <injection-target> <injection-target-class>com.acme.JNDITest <injection-target-name>myDatasource </injection-target> </resource-ref> <resource-ref> <res-ref-name>jdbc/mydatasource2 <res-type>javax.sql.DataSource <res-auth>Container <injection-target> <injection-target-class>com.acme.JNDITest <injection-target-name>myDatasource2 </injection-target> </resource-ref> <resource-ref> <res-ref-name>jdbc/mydatasource99 <res-type>javax.sql.DataSource <res-auth>Container <injection-target> <injection-target-class>com.acme.JNDITest <injection-target-name>myDatasource99 </injection-target> </resource-ref> <resource-ref> <res-ref-name>mail/Session <res-type>javax.mail.Session <res-auth>Container </resource-ref> <post-construct> <lifecycle-callback-class>com.acme.JNDITest <lifecycle-callback-method>postConstruct </post-construct> <pre-destroy> <lifecycle-callback-class>com.acme.JNDITest <lifecycle-callback-method>preDestroy </pre-destroy> </web-app> Other Jetty examples (source code examples)Here is a short list of links related to this Jetty web.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.