Questions tagged [jsr356]

JSR 356, Java API for WebSocket, specifies the API that Java developers can use when they want to integrate WebSockets into their applications—both on the server side as well as on the Java client side. Every implementation of the WebSocket protocol that claims to be compliant with JSR 356 must implement this API.

JSR 356 defines a standard API for creating WebSocket applications (as standardize by IETF in protocol RFC 6455) enabling Web clients or native clients leveraging any WebSocket implementation to easily communicate with a Java back end.

JSR 356 provide support in the Java EE platform for:

  • Creating WebSocket Java components to handle bi-directional WebSocket conversations
  • Initiating and intercepting WebSocket events
  • Creation and consumption of WebSocket text and binary messages
  • The abililty to define WebSocket protocols and content models for an application
  • Configuration and management of WebSocket sessions, like timeouts, retries, cookies, connection pooling
  • Specification of how WebSocket application will work within the Java EE security model

See:

52 questions
0
votes
1 answer

Websocket used in Servlet, is "public static void main(final String[] args)" needed?

This is my first time working with Java Websockets (not using Jetty, using JSR-356 instead), and all of the examples that I have seen utilize the "public static void main(final String[] args)" to map the Websocket client and server endpoints. If I…
0
votes
0 answers

Why is Weblogic container not able to inject the Event object?

First of all I want to tell that this question is more about CDI, especially CDI Events. Container ( in my case Weblogic 12 is not able to inject the Event object) Motivation for the Question: I am trying to integrate JMS with WebSocket. Basically I…
Geek
  • 26,489
  • 43
  • 149
  • 227
0
votes
1 answer

How can I declare my Java WebSocket endpoint to consume and produce JSON?

How can I convey the information in a declarative way that I need my JSR 356 supported WebSocket server endpoint to consume and produce JSON payload? If not possible declaratively, what is programmatic way to achieve the same?
Geek
  • 26,489
  • 43
  • 149
  • 227
0
votes
1 answer

session variables on jsr 356 and HTML/js client based

I have been checking on the internet for a while and couldn't find an answer to my query... I am building a web app using java in the server side and plain HTML/javascript on the client side. My idea is to implement websockets using JSR 356 and need…
masber
  • 2,875
  • 7
  • 29
  • 49
0
votes
1 answer

IBM Websphere v8.5.5.4 : Websocket deployment successful but client not connecting

I was able to deploy a sample Websocket application in my Liberty profile and it was working as tested. Then, I tried to deploy the same application to real WAS v8.5.5.4 ( so far I know WAS 8.5.5.4 has websocket support). It looks like application…
pijushcse
  • 510
  • 9
  • 31
0
votes
1 answer

java.lang.linkage error when trying to use jsr 356

I'm trying to implement a jsr 356 websocket connection from within a war deployed in jetty. I'm using this as a guide: http://aredko.blogspot.com/2013/11/java-websockets-jsr-356-on-jetty-91.html (I can find lots of tutorials on basically using jsr…
user2197116
  • 667
  • 3
  • 8
  • 21
0
votes
1 answer

Websocket - ServerEndpoint and ClientEndpoint does not exchange messages

I'm currently testing Websockets with Glassfish 4 and the "on board" implementation but cannot send or receive any messages although following tutorials like The Java EE 7 Tutorial - Sending and Receiving Messages or How to build Java WebSocket…
Patrick
  • 55
  • 1
  • 7
1 2 3
4