Questions tagged [tyrus]

Tyrus is a reference implementation of JSR-356: WebSocket API for Java

Tyrus is the open source JSR 356 - Java API for WebSocket reference implementation for easy development of WebSocket applications. WebSocket protocol defined by IETF provides bi-directional communication between the server and the remote host. The pros are mainly the ability to communicate both ways, low latency and small communication overhead. Therefore Tyrus and WebSocket in general are suitable for web applications that require sending a huge volume of relatively small messages like online games or market ticker broadcasting.

The governance policy is the same as the one used in the GlassFish project. We also use the same two licenses - CDDL 1.1 and GPL 2 with CPE - so, you can pick which one suites your needs better.

120 questions
2
votes
2 answers

How can I programmatically enable WSS for a Tyrus WebSocket @ServerEndpoint

I have a microservice that has a REST endpoint and a WebSocket endpoint. It Spring-wires Grizzly and Tyrus, and adds in authentication via SSO using a JAX-RS filter and a ServerEndpointConfig.Configurator. I've added in SSL to the REST endpoint…
PEELY
  • 1,183
  • 1
  • 11
  • 21
2
votes
1 answer

Weblogic 12.2.1.2 - websocket endpoint - The async-support is disabled on this request

I already have an answer to the question I am about to pose. In any casse, I am asking it here so that it may help people migrating from JEE 6 to JEE 7 and that are thinking of using websocket - e.g to substitute long polling by websocket…
99Sono
  • 3,554
  • 27
  • 39
2
votes
1 answer

Is it possible to run a standalone Tyrus websocket server with SSL?

I have a java web start application that runs a local websocket server. This app receives some data, sign these data and returns the signed data to the browser through the websocket connection. I'm using Tyrus container as my local websocket server.…
Tulio Gomes
  • 68
  • 1
  • 7
2
votes
1 answer

ClassNotFoundException when start tyrus standalone server

I'm getting the following error on server.start() call: ClassNotFoundException: org.glassfish.tyrus.container.grizzly.server.GrizzlyServerContainer I also could not found a maven dependency for GrizzlyServerContainer. Any ideas? Here is my…
kyromoto
  • 71
  • 1
  • 1
  • 8
2
votes
1 answer

Tyrus wss:// websocket not passing through squid proxy

This is using Java 8, squid 3.1.2, and the tyrus-standalone-client-1.12.jarfor the websocket implementation. UPDATE: It is still not working with Tyrus. However, it appears the problem is not with squid because when I make Chrome use the proxy and…
QuantumMechanic
  • 13,795
  • 4
  • 45
  • 66
2
votes
2 answers

Standalone Java Websocket client NoClassDefFoundError by ContainerProvider

I'm new to Java, but I have to use it to do a small WebSocket related project. So, I installed JDK 1.8.0 and NetBeans 8.1 on my CentOS 7 in a VirtualBox. I added the tyrus-standalone-client-jdk 1.12 plug-in in the pom.xml to make the standalone…
2
votes
2 answers

Using Java Websocket API Implementation without a Web-Server

Is it possible to implement a custom WebSocket app in Java without having to run it on a Web-Server like GlassFish, Tomcat, Jetty etc? I intend to develop a very custom-tailored App and would like to implement my own way to manage threads,…
friendOfOURS
  • 25
  • 2
  • 6
2
votes
1 answer

Encoding collection to json array in jsr 356

I am learning websockets and my webapp is using jsr 356 library. I followed the tutorials and I can encode/decode POJOs, however I can't find examples on how to serialize either arrays or collections to JSON. This is what I am doing to encode my…
masber
  • 2,875
  • 7
  • 29
  • 49
2
votes
0 answers

Websocket javax.websocket.DeploymentException on connectToServer

Environment: NetBeans 8.0.2 Glassfish 4.1 Tyrus 1.11 I'm trying to test a websocket in http://localhost:8080/doit/changes but I'm getting in test a javax.websocket.DeploymentException. ToDoChangeTracker.java ... import java.io.IOException; import…
Joe
  • 7,749
  • 19
  • 60
  • 110
2
votes
1 answer

Threading in javax.websockets / Tyrus

I'm writing a Java app that sends and receives messages from a websocket server. When the app receives a message it might take some time to process it. Therefore I'm trying to use multiple threads to receive messages. To my understanding Grizzly has…
sigvardsen
  • 1,531
  • 3
  • 26
  • 44
2
votes
2 answers

JSR 356 WebSocket Max message size configuration failed

I am using the Websocket for data transaction, client side is listened through Tyrus client end point api. While transfer the message size of 5kb or less from server it reaches the client with out failure but any message size above 5kb is not…
Jeevanantham
  • 984
  • 3
  • 19
  • 48
2
votes
1 answer

What is the best practice for closing a connection from within a server endpoint?

I have a custom configurator set up that grabs the cookie and processes it. The output is added to the user properties on the config. In the @OnOpen-annotated method, I compare that value with a value from the path. If there is a mismatch, then I…
Daniel Thompson
  • 603
  • 7
  • 11
2
votes
3 answers

Can Tyrus server use inner class endpoints?

I am having a problem getting an extremely simple standalone Tyrus websocket server to work. I have gotten this to work under very specific circumstances that don't make sense to me. The case that works correctly is where I define a top-level (in…
Bill Balloni
  • 23
  • 1
  • 5
2
votes
1 answer

Websocket with Tyrus in Openshift

I deployed an Wildfly 8.1 java application using Tyrus to manage a websocket server, nothing too complicated, it just receives the message and respond the message reversed, well, it should work, everything is according to OpenShift tutorial, but on…
H_DANILO
  • 321
  • 1
  • 9
2
votes
2 answers

Tyrus - pass object from client to server

Is it posible to pass custom object from client to server, using Tyrus project for websocket communication. I want to build simple desktop application using JavaFX. How can I pass data that I "collect" on client side (e.g. Object Person with name…
Sysrq147
  • 1,359
  • 4
  • 27
  • 49