Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
executable file 43 lines (38 sloc) 1.541 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
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>
<title>Java EE 7 JMS with WebSockets</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="myapp.js"></script>
<h1>WebSockets and JMS</h1>
<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>
<input id="message" type="text" name="message" placeholder="Message" />
<a href="javascript:sendMessage(document.getElementById('message').value)">Send message</a>
<a href="javascript:close();">Close Session</a>
<h3>WebSocket messages received:</h3>
<div id="websocketMessages" style="border: 1px solid">
Jump to Line
Something went wrong with that request. Please try again.