Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Commit a81e1e7

Browse files
author
Arun Gupta
committed
Adding a link to invoke the Servlet and fixing the Servlet endpoint URL
Former-commit-id: 6d91fd8c5bc5105d2ab0f2d521e4ec53555f575e
1 parent 600a3a1 commit a81e1e7

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

samples/jms/jmscontext-cdi/src/main/java/org/glassfish/sample/jmscontext/cdi/TestServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @author arungup
1919
*/
20-
@WebServlet(urlPatterns = {"/TestServlet2"})
20+
@WebServlet(urlPatterns = {"/TestServlet"})
2121
public class TestServlet extends HttpServlet {
2222

2323
@Inject MessageSender sender;
Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,55 @@
1+
<!--
2+
/*
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4+
*
5+
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
6+
*
7+
* The contents of this file are subject to the terms of either the GNU
8+
* General Public License Version 2 only ("GPL") or the Common Development
9+
* and Distribution License("CDDL") (collectively, the "License"). You
10+
* may not use this file except in compliance with the License. You can
11+
* obtain a copy of the License at
12+
* https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
13+
* or packager/legal/LICENSE.txt. See the License for the specific
14+
* language governing permissions and limitations under the License.
15+
*
16+
* When distributing the software, include this License Header Notice in each
17+
* file and include the License file at packager/legal/LICENSE.txt.
18+
*
19+
* GPL Classpath Exception:
20+
* Oracle designates this particular file as subject to the "Classpath"
21+
* exception as provided by Oracle in the GPL Version 2 section of the License
22+
* file that accompanied this code.
23+
*
24+
* Modifications:
25+
* If applicable, add the following below the License Header, with the fields
26+
* enclosed by brackets [] replaced by your own identifying information:
27+
* "Portions Copyright [year] [name of copyright owner]"
28+
*
29+
* Contributor(s):
30+
* If you wish your version of this file to be governed by only the CDDL or
31+
* only the GPL Version 2, indicate your decision by adding "[Contributor]
32+
* elects to include this software in this distribution under the [CDDL or GPL
33+
* Version 2] license." If you don't indicate a single choice of license, a
34+
* recipient has the option to distribute your version of this file under
35+
* either the CDDL, the GPL Version 2 or to extend the choice of license to
36+
* its licensees as provided above. However, if you add GPL Version 2 code
37+
* and therefore, elected the GPL Version 2 license, then the option applies
38+
* only if the new code is made subject to such option by the copyright
39+
* holder.
40+
*/
41+
-->
142
<%@page contentType="text/html" pageEncoding="UTF-8"%>
243
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
344
"http://www.w3.org/TR/html4/loose.dtd">
445

546
<html>
647
<head>
748
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<title>JSP Page</title>
49+
<title>JMSContext Injection</title>
950
</head>
1051
<body>
11-
<h1>Hello World!</h1>
52+
<h1>JMSContext Injection</h1>
53+
<a href="${pageContext.request.contextPath}/TestServlet"/>Send and Receive</a> message.
1254
</body>
1355
</html>

0 commit comments

Comments
 (0)