Permalink
Switch branches/tags
Nothing to show
Find file
1a4d9f3 Nov 22, 2014
executable file 43 lines (38 sloc) 1.5 KB
<!--
Copyright © 2013, 2013, Oracle and/or its affiliates. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
-->
<!DOCTYPE html>
<html>
<head>
<title>Java EE 7 JMS with WebSockets</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="myapp.js"></script>
</head>
<body>
<h1>WebSockets and JMS</h1>
<ul>
<li>First open a session</li>
<li>Send messages and wait for replies</li>
<li>Check server's log</li>
</ul> <br/>
<a href="javascript:open();">Open Session</a>
<br/>
<input id="message" type="text" name="message" placeholder="Message" />
<a href="javascript:sendMessage(document.getElementById('message').value)">Send message</a>
<br/>
<a href="javascript:close();">Close Session</a>
<br/>
<h3>WebSocket messages received:</h3>
<div id="websocketMessages" style="border: 1px solid">
</div>
</body>
</html>