Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-02-25 Thread Mark Thomas
On 25/02/2014 15:14, Jacopo Cappellato wrote: Any hints? I would really appreciate if someone could provide some pointers (e.g. classes involved etc) about the implementation of the mechanism used to discover and deploy endpoints; I will then try to study the code in order to figure out why it

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-02-25 Thread Jacopo Cappellato
application but are on the class path. Well, actually in my unit test (posted in this thread) I am deploying the examples application of Tomcat, and the websockets in it are under the WEB-INF folder. Jacopo Mark - To unsubscribe

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-02-25 Thread Konstantin Kolinko
2014-02-25 19:14 GMT+04:00 Jacopo Cappellato jacopo.cappell...@gmail.com: Any hints? I would really appreciate if someone could provide some pointers (e.g. classes involved etc) about the implementation of the mechanism used to discover and deploy endpoints; I will then try to study the code

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-02-14 Thread Jacopo Cappellato
+ File.separatorChar + examples; Tomcat tomcat = new Tomcat(); tomcat.setBaseDir(tomcatDir); tomcat.setPort(8080); tomcat.addWebapp(/examples, webRoot); // this code gets the JarScanner and sets scanClassPath to false: // with this setting the websockets

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-02-13 Thread Jacopo Cappellato
Hello all, I did further tests and I have now implemented a test client that executes a Tomcat embedded instance that is successfully running websockets. The client code resembles quite closely what we are doing in OFBiz to prepare the Tomcat instance... and I think I have found the settings

Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-01-29 Thread Jacopo Cappellato
Hello all, I am trying to deploy and use Websockets using the Tomcat 7.0.50 *Embedded* distribution [*]. Some more details on my environment: * I have the following jars in my classpath: ** tomcat-7.0.50-tomcat-embed-core.jar ** tomcat-7.0.50-tomcat-embed-jasper.jar ** tomcat-7.0.50-tomcat

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-01-29 Thread Mark Thomas
On 29/01/2014 15:42, Jacopo Cappellato wrote: Hello all, I am trying to deploy and use Websockets using the Tomcat 7.0.50 *Embedded* distribution [*]. Java version? Some more details on my environment: * I have the following jars in my classpath: ** tomcat-7.0.50-tomcat-embed-core.jar

Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded

2014-01-29 Thread Jacopo Cappellato
Thank you Mark! Please see inline: On Jan 29, 2014, at 4:50 PM, Mark Thomas ma...@apache.org wrote: On 29/01/2014 15:42, Jacopo Cappellato wrote: Hello all, I am trying to deploy and use Websockets using the Tomcat 7.0.50 *Embedded* distribution [*]. Java version? 1.7.0_40 Some

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-14 Thread Mark Thomas
On 13/12/2013 13:12, Bob DeRemer wrote: We have been profiling this in YourKit and as we increase the number of websockets, naturally we see the CPU utilization increase. The concern is that we’re seeing this at what seems to be a fairly low number of websockets. The YourKit profiling showed

RE: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-14 Thread Bob DeRemer
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Saturday, December 14, 2013 9:06 AM To: Tomcat Users List Subject: Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49? On 13/12/2013 13:12, Bob DeRemer wrote: We have been profiling

high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread Bob DeRemer
Hi Mark (et al), We're seeing really high CPU utilization with just a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of connections, the time spent in the NIO logic starts

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread David kerber
On 12/13/2013 8:12 AM, Bob DeRemer wrote: Hi Mark (et al), We’re seeing really high CPU utilization with just a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of connections

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread Christopher Schultz
a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of connections, the time spent in the NIO logic starts to consume the majority of the processing. For those trying to play-along

Re: Websockets with tomcat clustering and session replication

2013-12-02 Thread Johan Compagner
...@netomedia.com wrote: Hi, Ive asked here before about how do i get a session replication over websockets sessions. Mark Thomas answered me that i should try and link the httpsession with the websocket and then i will gain the replication abilities. So, I listended and implemented it just like

Re: Websockets with tomcat clustering and session replication

2013-12-02 Thread Nir A
doesn't notice anything And also is it not a spec or behavior requirement that you don't hold on to your http session objects outside of requests? On 1 December 2013 15:33, Nir A n...@netomedia.com wrote: Hi, Ive asked here before about how do i get a session replication over websockets

Re: Websockets with tomcat clustering and session replication

2013-12-02 Thread Rossen Stoyanchev
On Sun, Dec 1, 2013 at 4:33 PM, Nir A n...@netomedia.com wrote: My POC web application has one html page with javascript web socket send\recieve messages. What i did notice that might shade light on whats the problem is the following scenario: If i press f5 on the browser, the web page is

Re: Websockets with tomcat clustering and session replication

2013-12-02 Thread Nir A
Yeah but, I would like to link the websocket session with the http session of the handshake. and that way i will be able to imitiate the session replication abilities for websocket. This mechanism works as intended only problem is the replication not replicate http session attribute while the

Websockets with tomcat clustering and session replication

2013-12-01 Thread Nir A
Hi, Ive asked here before about how do i get a session replication over websockets sessions. Mark Thomas answered me that i should try and link the httpsession with the websocket and then i will gain the replication abilities. So, I listended and implemented it just like in this url: http

Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Francesco Bassi
Hello everybody. I have a doubt: whenever the HttpSession expires, I get a NullPointerException on WsServerContainer.unregisterAuthenticatedSession in this line: private void unregisterAuthenticatedSession(WsSession wsSession, String httpSessionId) { SetWsSession

Re: Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Mark Thomas
On 28/11/2013 14:06, Francesco Bassi wrote: Hello everybody. I have a doubt: whenever the HttpSession expires, I get a NullPointerException on WsServerContainer.unregisterAuthenticatedSession in this line: private void unregisterAuthenticatedSession(WsSession wsSession,

Re: Tomcat 7.0.48-dev WebSockets: NullPointerException on WsServerContainer.unregisterAuthenticatedSession

2013-11-28 Thread Francesco Bassi
Thanks a lot for your prompt support. Definitely a serious reason not to switch to any other application server! On Thu, Nov 28, 2013 at 3:29 PM, Mark Thomas ma...@apache.org wrote: On 28/11/2013 14:06, Francesco Bassi wrote: Hello everybody. I have a doubt: whenever the HttpSession

Re: setting the text or binary buffer size for websockets

2013-11-20 Thread Mark Thomas
On 19/11/2013 17:12, Johan Compagner wrote: I expect that i can send now 32K at once of text (or binary) withing that continuation frame The buffer sizes control the input buffer - i.e. they control the maximum size of a message that can be received if an application doesn't support partial

Re: setting the text or binary buffer size for websockets

2013-11-20 Thread Johan Compagner
Konstantin, Right, I also think the calls to getBasicRemote().sendText(...) should be synchronized as multiple threads can concurrently access this method for a particular client (that however could mean that if one client stops receiving from its WebSocket connection, no other client can

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
On 19 November 2013 03:55, Igor Urisman igor.uris...@gmail.com wrote: Upgraded my environment to 8RC5 and this feature works for me. Don't know how much help this is, but here's my deployment descriptor: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee;

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
Hi I have just tested it more, now just with the examples tomcat ships (the chat example) What i first did is add in web.xml these lines: context-param param-nameorg.apache.tomcat.websocket.textBufferSize/param-name param-value32768/param-value /context-param context-param

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Mark Thomas
On 19/11/2013 14:15, Johan Compagner wrote: If i run that (http://localhost:8080/examples/websocket/chat.xhtml) Type in a string that will go over the 8K boundary Then in chrome it will still display a frame of 8K and then continuation frame (Opcode 0) which is the rest. am i expecting

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
I expect that i can send now 32K at once of text (or binary) withing that continuation frame The buffer sizes control the input buffer - i.e. they control the maximum size of a message that can be received if an application doesn't support partial messages. The output buffers are all

RE: setting the text or binary buffer size for websockets

2013-11-19 Thread Konstantin Preißer
Hi Johan, -Original Message- From: Johan Compagner [mailto:jcompag...@servoy.com] Sent: Tuesday, November 19, 2013 6:13 PM To: Tomcat Users List Subject: Re: setting the text or binary buffer size for websockets I expect that i can send now 32K at once of text (or binary

Re: setting the text or binary buffer size for websockets

2013-11-18 Thread Igor Urisman
Upgraded my environment to 8RC5 and this feature works for me. Don't know how much help this is, but here's my deployment descriptor: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: setting the text or binary buffer size for websockets

2013-11-17 Thread Mark Thomas
On 16/11/2013 14:12, Johan Compagner wrote: We have problems (with chrome) with all kinds of errors when sending these frames (invalid opcode, utf char encoding problem, reserved words 1 ,2 ,3 errors in the browser) So i want to see if i just don't use frames what the result is then Exactly

Re: setting the text or binary buffer size for websockets

2013-11-17 Thread Johan Compagner
On 17 November 2013 12:55, Mark Thomas ma...@apache.org wrote: On 16/11/2013 14:12, Johan Compagner wrote: We have problems (with chrome) with all kinds of errors when sending these frames (invalid opcode, utf char encoding problem, reserved words 1 ,2 ,3 errors in the browser) So i

Re: setting the text or binary buffer size for websockets

2013-11-17 Thread Mark Thomas
On 17/11/2013 13:09, Johan Compagner wrote: On 17 November 2013 12:55, Mark Thomas ma...@apache.org wrote: On 16/11/2013 14:12, Johan Compagner wrote: We have problems (with chrome) with all kinds of errors when sending these frames (invalid opcode, utf char encoding problem, reserved

Re: setting the text or binary buffer size for websockets

2013-11-17 Thread Johan Compagner
Exactly which version of Tomcat 7 are you using? currently testing it on 8 RC5 I can test on 7, but i guess thats the +/- the same code? Latest 8 RC is fine but then why are you looking at the Tomcat 7 docs? first that i found, and also this

setting the text or binary buffer size for websockets

2013-11-16 Thread Johan Compagner
Hi i read this: http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html so what i do is add this into the web.xml -- Johan Compagner Servoy

Re: setting the text or binary buffer size for websockets

2013-11-16 Thread Johan Compagner
sorry, mail did go to soon... I do this in the web.xml (directly in the web-app tag) context-param param-nameorg.apache.tomcat.websocket.textBufferSize/param-name param-value32768/param-value /context-param context-param

Re: setting the text or binary buffer size for websockets

2013-11-16 Thread Igor Urisman
Johan, What you've described is exactly what works for me. But I am still on RC1. -Igor. On Sat, Nov 16, 2013 at 6:12 AM, Johan Compagner jcompag...@servoy.comwrote: sorry, mail did go to soon... I do this in the web.xml (directly in the web-app tag) context-param

Tomcat 7.0.48 JSR-356 Server (appears ??) to be closing websockets under heavy load with REASON (1006) network name is no longer available

2013-11-06 Thread Bob DeRemer
* In addition, we had them increase IDLE connection time to 15 mins - as we already hit that problem since we hadn't incorporated a PING yet When we fire up 4 separate client machines - each one creating/connecting 25K jsr-356 websockets, they all connect through the ELB. Once connected

RE: Tomcat 7.0.48 JSR-356 Server (appears ??) to be closing websockets under heavy load with REASON (1006) network name is no longer available

2013-11-06 Thread Bob DeRemer
-Original Message- From: Bob DeRemer [mailto:bob.dere...@thingworx.com] Sent: Wednesday, November 06, 2013 1:41 PM To: Tomcat Users List Subject: Tomcat 7.0.48 JSR-356 Server (appears ??) to be closing websockets under heavy load with REASON (1006) network name is no longer

Re: Question about websockets origin and remote addresses

2013-10-28 Thread Mark Thomas
On 27/10/2013 20:53, Marcelo v wrote: Hello My name is Marcelo, i have a little web site and i am using apache tomcat 8.0.0-RC5 and making use of JSR-356 websocket api ... (i followed the ChatAnnotation example) ... I almost finished the development when i found 2 problems ... 1) Is it

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Mark Thomas
to servlets when they are initialized. Is there an equivalent in the javax.websocket world? If not, are there any suggested practices for achieving this? There is no direct link from web.xml since WebSockets were designed to be implementable independently from a J2EE container. You can provide

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Johan Compagner
and i have a follow up question about this, with a servlet or a filter you can do: getServletContext() then you have access to the resources of the web application and stuff like that How is that possible in an websocket endpoint? The ServerEndpointConfig will have the modifyHandshake()

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Mark Thomas
the API because WebSockets were designed to be implementable independently from a J2EE container. You can do it via the EndpointConfig but you have to do your own plumbing. Mark - To unsubscribe, e-mail: users-unsubscr

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Neil Martin
Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE container. Maybe I'm wrong, but it seems like the plumbing to make the servlet context available to the EndpoingConfig will be messy because

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Niki Dokovski
On Sun, Oct 27, 2013 at 4:46 PM, Neil Martin nsm...@gmail.com wrote: Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE container. Maybe I'm wrong, but it seems like the plumbing to make

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Johan Compagner
On 27 October 2013 16:09, Niki Dokovski nick...@gmail.com wrote: On Sun, Oct 27, 2013 at 4:46 PM, Neil Martin nsm...@gmail.com wrote: Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE

Question about websockets origin and remote addresses

2013-10-27 Thread Marcelo v
Hello My name is Marcelo, i have a little web site and i am using apache tomcat 8.0.0-RC5 and making use of JSR-356 websocket api ... (i followed the ChatAnnotation example) ... I almost finished the development when i found 2 problems ... 1) Is it possible to get the remote ip of the client on

Tomcat 8 Websockets configuration

2013-10-26 Thread Neil Martin
Hi, I've just started looking at the javax.websocket implementation in tomcat 8 and I have a question about how one integrates an endpoint with application code. Using servlets as an analogy, web.xml allows configuration information to be passed to servlets when they are initialized. Is

Re: Tomcat 8 Websockets configuration

2013-10-26 Thread Johan Compagner
I've just started looking at the javax.websocket implementation in tomcat 8 and I have a question about how one integrates an endpoint with application code. Using servlets as an analogy, web.xml allows configuration information to be passed to servlets when they are initialized. Is there an

Re: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets?

2013-08-06 Thread Mark Thomas
On 06/08/2013 03:45, Bob DeRemer wrote: QUESTION Is anyone aware of any problems using the apr/native connector + websockets in Tomcat 7.0.42? I'm not aware of any reports. BACKGROUND We are trying to see how many concurrent websocket connections Tomcat will handle running on Windows

RE: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets?

2013-08-06 Thread Bob DeRemer
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, August 06, 2013 3:56 AM To: Tomcat Users List Subject: Re: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets? On 06/08/2013 03:45, Bob DeRemer wrote: QUESTION Is anyone

Re: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets?

2013-08-06 Thread Niki Dokovski
) with websockets? On 06/08/2013 03:45, Bob DeRemer wrote: QUESTION Is anyone aware of any problems using the apr/native connector + websockets in Tomcat 7.0.42? I'm not aware of any reports. BACKGROUND We are trying to see how many concurrent websocket connections Tomcat

Re: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets?

2013-08-06 Thread Mark Thomas
On 06/08/2013 14:20, Bob DeRemer wrote: -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, August 06, 2013 3:56 AM To: Tomcat Users List Subject: Re: any known problems using Tomcat 7.0.42 apr/native (windows) with websockets? On 06/08/2013 03:45, Bob

any known problems using Tomcat 7.0.42 apr/native (windows) with websockets?

2013-08-05 Thread Bob DeRemer
QUESTION Is anyone aware of any problems using the apr/native connector + websockets in Tomcat 7.0.42? BACKGROUND We are trying to see how many concurrent websocket connections Tomcat will handle running on Windows Server. We wrote a multi-threaded java console app that spins up a thread-per

Re: WebSockets Thread Safety question

2013-07-11 Thread Darryl Miles
Martin Gainty wrote: use java.util.Collections.synchronizedList or even better use a ConcurrentLinkedQueue class (with offer()/peek()/poll() APIs), as I suspect you never need to access the middle elements in the ordered list directly, so why carry this extra java.util.List API

Re: websockets questions

2013-07-08 Thread Rossen Stoyanchev
Andre, if you happen to use the Spring Framework already, we have a milestone release (version 4.0 M1) that provides fallback options based on the SockJS protocol. The next milestone 2 due in a week will provide higher level (sub-protocol) support for messaging patterns such as pub-sub and

Re: websockets questions

2013-07-05 Thread André Warnier
Howard W. Smith, Jr. wrote: On Thu, Jul 4, 2013 at 1:43 PM, Pierre Goupil goupilpie...@gmail.comwrote: Regarding browser support, a framework like Atmosphere handles pretty well having WebSockets when they are available and falling-back to another Comet implementation (such as long-polling

Re: websockets questions

2013-07-05 Thread Howard W. Smith, Jr.
On Fri, Jul 5, 2013 at 3:40 AM, André Warnier a...@ice-sa.com wrote: We're still one level remote of thinking of any implementation, and trying to understand 1) how exactly websockets works Most websocket implementations (RI/glassfish, atmosphere, tomcat, etc...) are open source, so diving

Re: websockets questions

2013-07-04 Thread André Warnier
I'll just add a little bit of info (and guesses) below. Jess Holle wrote: Unfortunately I don't have any information -- just related questions. 1. For someone currently using Apache httpd+mod_jk to load balance requests, what does one do about load balancing WebSockets requests between

Re: websockets questions

2013-07-04 Thread Martin Grigorov
balance requests, what does one do about load balancing WebSockets requests between Tomcat instances? * As Andre alluded to, the only mention of websocket handling in Apache httpd really appears to be in its infancy. * It would kind of seem like mod_jk should be expanded

Re: websockets questions

2013-07-04 Thread Mark Thomas
On 04/07/2013 10:17, André Warnier wrote: To me that means that at some point, there must be on the server side a process or thread which is dedicated to this websocket client for as long as it takes, and this process/thread in the meantime is no longer available to process other HTTP

Re: websockets questions

2013-07-04 Thread André Warnier
Mark Thomas wrote: On 04/07/2013 10:17, André Warnier wrote: To me that means that at some point, there must be on the server side a process or thread which is dedicated to this websocket client for as long as it takes, and this process/thread in the meantime is no longer available to process

Re: websockets questions

2013-07-04 Thread Martin Grigorov
On Thu, Jul 4, 2013 at 5:52 PM, André Warnier a...@ice-sa.com wrote: Mark Thomas wrote: On 04/07/2013 10:17, André Warnier wrote: To me that means that at some point, there must be on the server side a process or thread which is dedicated to this websocket client for as long as it takes,

Re: websockets questions

2013-07-04 Thread Mark Thomas
On 04/07/2013 15:52, André Warnier wrote: Mark Thomas wrote: On 04/07/2013 10:17, André Warnier wrote: To me that means that at some point, there must be on the server side a process or thread which is dedicated to this websocket client for as long as it takes, and this process/thread in the

Re: websockets questions

2013-07-04 Thread Pierre Goupil
Regarding browser support, a framework like Atmosphere handles pretty well having WebSockets when they are available and falling-back to another Comet implementation (such as long-polling or http-streaming) when they are not. Le 4 juil. 2013 17:12, Mark Thomas ma...@apache.org a écrit : On 04/07

Re: websockets questions

2013-07-04 Thread Howard W. Smith, Jr.
On Thu, Jul 4, 2013 at 1:43 PM, Pierre Goupil goupilpie...@gmail.comwrote: Regarding browser support, a framework like Atmosphere handles pretty well having WebSockets when they are available and falling-back to another Comet implementation (such as long-polling or http-streaming) when

websockets questions

2013-07-03 Thread André Warnier
Hi. I am looking for general and not so general info about websockets. I have read the Wikipedia article, RFC 6455, the websocket API doc on MSDN, and pretty much all that I have been able to find on the WWW. But I am still not sure if I have a full picture. This is the context : we

Re: websockets questions

2013-07-03 Thread Jess Holle
Unfortunately I don't have any information -- just related questions. 1. For someone currently using Apache httpd+mod_jk to load balance requests, what does one do about load balancing WebSockets requests between Tomcat instances? * As Andre alluded to, the only mention of websocket

WebSockets Thread Safety question

2013-06-03 Thread Martin Schmiedel
I have recently had problems with a simple WebSocket sample I'm developing. Tomcat Version is 7.0.39. When I use the syntax from the samples in the onTextMessage() method, I get ConcurrentModificationException if I have more than one client sending data to the server at the same time:

Re: WebSockets Thread Safety question

2013-06-03 Thread Mark Thomas
On 03/06/2013 08:45, Martin Schmiedel wrote: About the mmiList object, why isn't it a Threadsafe Collection? Where / how is that object declared? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: WebSockets Thread Safety question

2013-06-03 Thread chris derham
When I use the syntax from the samples in the onTextMessage() method, I get ConcurrentModificationException if I have more than one client sending data to the server at the same time: for(MyMessageInbound mmib: mmiList){ CharBuffer buffer = CharBuffer.wrap(cb);

RE: WebSockets Thread Safety question

2013-06-03 Thread Martin Gainty
aucune responsabilité pour le contenu fourni. From: ch...@derham.me.uk Date: Mon, 3 Jun 2013 07:42:01 -0300 Subject: Re: WebSockets Thread Safety question To: users@tomcat.apache.org When I use the syntax from the samples in the onTextMessage() method, I get ConcurrentModificationException

Re: WebSockets Thread Safety question

2013-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 6/3/13 6:42 AM, chris derham wrote: When I use the syntax from the samples in the onTextMessage() method, I get ConcurrentModificationException if I have more than one client sending data to the server at the same time:

Re: websockets holding on to threads.

2013-04-09 Thread Mark Thomas
On 08/04/2013 15:32, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 4/8/13 8:30 AM, Caldarale, Charles R wrote: From: Anton Piatek1 [mailto:anton.pia...@uk.ibm.com] Subject: Re: websockets holding on to threads. My thinking about it being a bug

Re: websockets holding on to threads.

2013-04-08 Thread Anton Piatek1
maybe it is user-error. I have tomcat (was 7.0.30, but I just tried with 7.0.39) running a website which uses websockets. The websockets code in tomcat isn't that complicated - My servlet returns a new subclass of StreamInbound which has overridden the onTextData() and onBinaryData

RE: websockets holding on to threads.

2013-04-08 Thread Caldarale, Charles R
From: Anton Piatek1 [mailto:anton.pia...@uk.ibm.com] Subject: Re: websockets holding on to threads. My thinking about it being a bug is that to support N clients with websockets, you need N threads available on tomcat, even though they are only getting updates every x seconds. I don't

Re: websockets holding on to threads.

2013-04-08 Thread Howard W. Smith, Jr.
/windows per device (or ip address). Thanks for the motivation. :) Have you looked at how many tomcat threads you have running and what happens to each of them as you open more websockets? What if you open more websockets than you have threads... I open one websocket per client (client = user

Re: websockets holding on to threads.

2013-04-08 Thread Howard W. Smith, Jr.
On Mon, Apr 8, 2013 at 8:30 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Anton Piatek1 [mailto:anton.pia...@uk.ibm.com] Subject: Re: websockets holding on to threads. My thinking about it being a bug is that to support N clients with websockets, you need N threads

RE: websockets holding on to threads.

2013-04-08 Thread Anton Piatek1
Caldarale, Charles R chuck.caldar...@unisys.com wrote on 08/04/2013 13:30:00: From: Caldarale, Charles R chuck.caldar...@unisys.com From: Anton Piatek1 [mailto:anton.pia...@uk.ibm.com] My thinking about it being a bug is that to support N clients with websockets, you need N threads

Re: websockets holding on to threads.

2013-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 4/8/13 8:30 AM, Caldarale, Charles R wrote: From: Anton Piatek1 [mailto:anton.pia...@uk.ibm.com] Subject: Re: websockets holding on to threads. My thinking about it being a bug is that to support N clients with websockets, you need

websockets holding on to threads.

2013-04-05 Thread Anton Piatek1
I am seeing what at first appears to be a bug, but given the lack of other reports I can't believe I am the only person seeing this, so maybe it is user-error. I have tomcat (was 7.0.30, but I just tried with 7.0.39) running a website which uses websockets. The websockets code in tomcat isn't

Re: websockets holding on to threads.

2013-04-05 Thread Howard W. Smith, Jr.
) running a website which uses websockets. The websockets code in tomcat isn't that complicated - My servlet returns a new subclass of StreamInbound which has overridden the onTextData() and onBinaryData() methods. This seems to generally work fine, and I can send and receive data happily

Re: help on websockets

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, Please don't top-post. See my response below. On 3/17/13 4:44 PM, Muralidhar Yaragalla wrote: On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org wrote: On 17/03/2013 20:17, Muralidhar Yaragalla wrote: Hi I have

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher, The following is the link in tomcat7 docs http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html in this under the application development section there is a pointer to server side code which shows an example implementation of chat application with annotations. You can have

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
sorry, I use gmail and i am not sure how to avoid top-posting. On Wed, Mar 20, 2013 at 1:37 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, Please don't top-post. See my response below. On 3/17/13 4:44 PM,

Re: help on websockets

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, On 3/19/13 4:43 PM, Muralidhar Yaragalla wrote: Hi Christopher, The following is the link in tomcat7 docs http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html in this under the application development section there is a

RE: help on websockets

2013-03-19 Thread Caldarale, Charles R
From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response _below_ the point you are replying to. (This has nothing to do with gmail.) - Chuck THIS COMMUNICATION MAY

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher, I dont want to go for those examples which might be in effect from tomcat8. I am fine with tomcat7 and examples that comes with the distribution. I am using websockets but i have centralized that code so when websocket spec changes and when tomcat provides implementation

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
On Wed, Mar 20, 2013 at 2:19 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response _below_ the point you

Re: help on websockets

2013-03-19 Thread André Warnier
Muralidhar Yaragalla wrote: On Wed, Mar 20, 2013 at 2:19 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response

Re: help on websockets

2013-03-17 Thread Mark Thomas
On 17/03/2013 20:17, Muralidhar Yaragalla wrote: Hi I have downloaded the tomcat 7.0.37 and trying to run the websocket chat program which is with javax.wesocket annotations but the annotations are not being recognized. how to run this on tomcat. Tomcat 7.0.x does not (yet) implement JSR-356.

Re: help on websockets

2013-03-17 Thread Muralidhar Yaragalla
Thank you. Without implementing jsr why would they show examples in tomcat7 online docs. It is so much confusing. Thanks anyway. On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org wrote: On 17/03/2013 20:17, Muralidhar Yaragalla wrote: Hi I have downloaded the tomcat 7.0.37 and

WebSockets problem Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
/javax.websocket.server.ServerContainerProvider META-INF/services/javax.websocket.server.ServerEndpointConfig.Configurator When I added those to my uber-jar embedded JAR file, WebSockets started working properly. So, looks like something about the way that artifact is built is omitting those files

Re: Sending through WebSockets

2012-10-11 Thread Mark Thomas
On 10/10/2012 21:29, Steffen Heil (Mailinglisten) wrote: Hi I have a server with several websocket connections. (Or at least I will have at some time, see thread about ssl problems...) Now just as in the chat example, I need to send some data from time to time so some (but not

Re: AW: AW: WebSockets and HTTPS problems

2012-10-11 Thread Mark Thomas
On 10/10/2012 19:57, Mark Thomas wrote: On 10/10/2012 19:51, Steffen Heil (Mailinglisten) wrote: Hi I just took a look at this. The examples work out of the box for HTTPS with BIO but not with NIO. This looks like a Tomcat bug at this point. I'll take a look. What would I need to do to

Re: AW: AW: WebSockets and HTTPS problems

2012-10-11 Thread Konstantin Kolinko
2012/10/11 Mark Thomas ma...@apache.org: On 10/10/2012 19:57, Mark Thomas wrote: On 10/10/2012 19:51, Steffen Heil (Mailinglisten) wrote: Hi I just took a look at this. The examples work out of the box for HTTPS with BIO but not with NIO. This looks like a Tomcat bug at this point. I'll

AW: AW: AW: WebSockets and HTTPS problems

2012-10-11 Thread Steffen Heil (Mailinglisten)
Hi See if this fixes if for you: http://people.apache.org/~markt/dev/tomcat-7/v7.0.33-r1397089/apache- tomcat-7.0.33-r1397089.tar.gz Preliminary tests look promising. Everything worked (using a few single click tests so far). Thanks! This is not an official release. Use it at your own

Re: AW: AW: AW: WebSockets and HTTPS problems

2012-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen, On 10/11/12 11:36 AM, Steffen Heil (Mailinglisten) wrote: See if this fixes if for you: http://people.apache.org/~markt/dev/tomcat-7/v7.0.33-r1397089/apache- tomcat-7.0.33-r1397089.tar.gz Preliminary tests look promising. Everything

Re: AW: AW: WebSockets and HTTPS problems

2012-10-11 Thread Mark Thomas
Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/10/11 Mark Thomas ma...@apache.org: On 10/10/2012 19:57, Mark Thomas wrote: On 10/10/2012 19:51, Steffen Heil (Mailinglisten) wrote: Hi I just took a look at this. The examples work out of the box for HTTPS with BIO but not with NIO.

WebSockets and HTTPS problems

2012-10-10 Thread Steffen Heil (Mailinglisten)
Hi We have a web application that makes more and more use of websockets. (In fact we emulate websockets with comet servlets for older browsers and want to use real websockets for current ones.) We implemented our websocket support using tomcat 7.0.30 and a servlet extending

Re: WebSockets and HTTPS problems

2012-10-10 Thread Mark Thomas
On 10/10/2012 12:55, Steffen Heil (Mailinglisten) wrote: Do you see any error in my configuration? Nothing jumps out at me. What can I do to debug this? I'd use Wireshark. I tried to enable logging in tomcat [2], but it seems that did not suffice to make tomcat more verbose... Maybe I

<    1   2   3   >