tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristian Lorenzetto <cristian.lorenze...@gmail.com>
Subject TOMCAT WEBSOCKET CLARIFICATION
Date Sat, 18 Feb 2017 00:42:43 GMT
I have a doubt about a application using websocket.

I have a application in which many threads can send a message to a specific
connection.
To send message is a thread safe function or not?
In the case is not thread safe you suggest to use a queue or to use a
synchronized on the connection object?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message