| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Distribution License v. 1.0, which is available at |
| http://www.eclipse.org/org/documents/edl-v10.php. |
| |
| SPDX-License-Identifier: BSD-3-Clause |
| |
| --> |
| |
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
| <servlet> |
| <servlet-name>org.glassfish.jersey.examples.bookmark_em.MyApplication</servlet-name> |
| <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
| <init-param> |
| <param-name>javax.ws.rs.Application</param-name> |
| <param-value>org.glassfish.jersey.examples.bookmark_em.MyApplication</param-value> |
| </init-param> |
| <load-on-startup>1</load-on-startup> |
| </servlet> |
| <servlet-mapping> |
| <servlet-name>org.glassfish.jersey.examples.bookmark_em.MyApplication</servlet-name> |
| <url-pattern>/resources/*</url-pattern> |
| </servlet-mapping> |
| |
| <persistence-unit-ref> |
| <persistence-unit-ref-name>persistence/bookmark</persistence-unit-ref-name> |
| <persistence-unit-name>BookmarkPU</persistence-unit-name> |
| </persistence-unit-ref> |
| <resource-ref> |
| <res-ref-name>UserTransaction</res-ref-name> |
| <res-type>javax.transaction.UserTransaction</res-type> |
| <res-auth>Container</res-auth> |
| </resource-ref> |
| </web-app> |