https://issues.apache.org/bugzilla/show_bug.cgi?id=57091

--- Comment #4 from Niklas Hallqvist <niklas+apa...@appli.se> ---
Created attachment 32117
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32117&action=edit
A simple websocket client

A simple websocket client test.
Name it se/appli/test/WebsocketClientTest.java
Compile, put in a jar, sign, call it test-signed.jar.
Install it somewhere in a web-catalog along with an html-file like:

<html>
  <head><title>WebsocketClientTest</title></head>
  <body>
    <object type="application/x-java-applet" width="800" height="600">
      <param name="code" value="se.appli.test.WebsocketClientTest"/>
      <param name="archive"
value="test-signed.jar,websocket-api.jar,tomcat-websocket.jar,tomcat-util.jar,tomcat-juli.jar"/>
      <param name="uri" value="ws://tomcat8.appli.se:8080/websocket/test"/>
    </object>
  </body>
</html>

Alter the uri-parameter to somewhere a websocket will reply.
Any websocket service that provides a greeting (e.g. an hello world websocket
test) will suffice.

Also install the foloowing jar files in there:

websocket-api.jar
tomcat-websocket.jar
tomcat-util.jar
tomcat-juli.jar

Fire up a browser on a MS Windows box with a JRE7 installed, whcih is trusting
the key you signed the applet with.
Load the HTML file.  Watch the AccessControlException come up in the console.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to