Re: Websocket on tomcat 7.0.50 not working

2014-02-18 Thread Niki Dokovski
On Tue, Feb 18, 2014 at 3:10 PM, J Java wrote: > just an update : > > this is what i get in tomcat access logs : > > 127.0.0.1 - - [18/Feb/2014:16:42:45 +0530] "GET > /jkweb/websocket/fileuploadtracker HTTP/1.1" 404 1017 > > is this correct ?? > Can you check the context root of the deployed app

Re: Apache Tomcat Summit at ApacheCon NA 2014

2014-01-24 Thread Niki Dokovski
On Fri, Jan 24, 2014 at 9:36 AM, Mark Thomas wrote: > On 24/01/2014 06:06, Niki Dokovski wrote: > > On Thu, Jan 23, 2014 at 3:29 PM, Mark Thomas wrote: > > > >> ApacheCon NA will be in Denver 7th to 11th April. > >> > >> The schedule for ApacheC

Re: Apache Tomcat Summit at ApacheCon NA 2014

2014-01-23 Thread Niki Dokovski
On Thu, Jan 23, 2014 at 3:29 PM, Mark Thomas wrote: > ApacheCon NA will be in Denver 7th to 11th April. > > The schedule for ApacheCon NA 2014 has been firmed up. There is an > opportunity for a project summit on either the Thursday or the Friday. > Since the BarCamp has been scheduled for the Th

Re: Accessing ServletContext from WebSocket endpoint

2013-12-06 Thread Niki Dokovski
On Sat, Dec 7, 2013 at 5:48 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Johan, > > On 12/6/13, 3:53 AM, Johan Compagner wrote: > > I ask the same question yes, but i still don't see a way to really > > do that nicely through an EndpointConfig > > EndpointConfig.getUserProperti

Re: is the spec of onMessage really that "whole" message means it must fit in the input buffer?

2013-11-21 Thread Niki Dokovski
Hi Mark, On Thu, Nov 21, 2013 at 2:23 PM, Mark Thomas wrote: > On 21/11/2013 11:57, Johan Compagner wrote: > > > But the thing is, it is purely tomcat making frames/fragmentation. > > The browser (chrome in my part) sends over just 1 frame (14K or what ever > > size i have now already test that

Re: is the spec of onMessage really that "whole" message means it must fit in the input buffer?

2013-11-21 Thread Niki Dokovski
On Thu, Nov 21, 2013 at 1:11 PM, Johan Compagner wrote: > > > > Hi, > > > > > https://javaee-spec.java.net/nonav/javadocs/javax/websocket/OnMessage.html > > > > if i read that, then if i have > > > > onmessage(String) > > > > that i get the whole message as once. > > > > Where is it really specifi

Re: Can Tomcat 7 jsr-356 plumbing be configured to automatically send websocket ping/pong on a specified interval?

2013-11-03 Thread Niki Dokovski
On Mon, Nov 4, 2013 at 5:52 AM, Bob DeRemer wrote: > > > > -Original Message- > > From: Bob DeRemer [mailto:bob.dere...@thingworx.com] > > Sent: Sunday, November 03, 2013 8:31 PM > > To: Tomcat Users List > > Subject: Can Tomcat 7 jsr-356 plumbing be configured to automatically > send > >

Re: attempting to achieve 100K concurrent websocket connections on Tomcat 7.0.48 NIO

2013-11-02 Thread Niki Dokovski
On Sat, Nov 2, 2013 at 3:24 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Bob, > > On 11/1/13, 7:57 PM, Bob DeRemer wrote: > > > > > >> -Original Message- From: Christopher Schultz > >> [mailto:ch...@christopherschult

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Niki Dokovski
On Sun, Oct 27, 2013 at 4:46 PM, Neil Martin 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 the servlet context

Re: Tomcat 8 Websockets configuration

2013-10-26 Thread Niki Dokovski
On сб, окт. 26, 2013 at 18:35, Neil Martin mailto:nsm...@gmail.com";>> wrote: 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 configur

Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-21 Thread Niki Dokovski
On Tue, Oct 22, 2013 at 3:29 AM, David Bullock < david.bull...@machaira.com.au> wrote: > Hi Bob, > > > I tried searching the javadocs of RemoteEndpoint.Async and associated > interfaces, but could not find anything describing the threadsafe nature > (existing or not). It appears that the spec let

Re: Tomcat 8 WebSocket Encoders / Decoders Questions

2013-10-17 Thread Niki Dokovski
On Thu, Oct 17, 2013 at 12:46 AM, Niki Dokovski wrote: > > > > On Wed, Oct 16, 2013 at 6:36 PM, Daniel Mikusa wrote: > >> I have a simple WebSocket endpoint defined, it is just echoing the data >> sent by the client. Here's the code. >>

Re: Tomcat 8 WebSocket Encoders / Decoders Questions

2013-10-16 Thread Niki Dokovski
On Wed, Oct 16, 2013 at 6:36 PM, Daniel Mikusa wrote: > I have a simple WebSocket endpoint defined, it is just echoing the data > sent by the client. Here's the code. > > @ServerEndpoint(value="/websocket", > decoders={ListStringDecoder.class}, > encoders={ListStringEncode

Re: WebSocket message size limits

2013-09-23 Thread Niki Dokovski
On Tue, Sep 24, 2013 at 8:15 AM, Igor Urisman wrote: > Thanks again, Mark, for the quick turnaround. > Which of the 5 parameters on this page would be responsible for changing > the 125-byte max whole text message size? > Mark did a great job describing the properties and if it's still unclear lo

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-16 Thread Niki Dokovski
On Mon, Sep 16, 2013 at 6:57 PM, Mark Thomas wrote: > On 16/09/2013 15:21, Christopher Schultz wrote: > > Mark, > > > > On 9/16/13 5:09 AM, Mark Thomas wrote: > >> The only requirement on ordering is at the end of section 8.2 > >> which requires that application SCIs are discovered before > >> co

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-16 Thread Niki Dokovski
On Monday, September 16, 2013, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Mark, > > On 9/16/13 5:09 AM, Mark Thomas wrote: > > The only requirement on ordering is at the end of section 8.2 > > which requires that application SCIs are discovered before > > co

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-16 Thread Niki Dokovski
On Mon, Sep 16, 2013 at 12:09 PM, Mark Thomas wrote: > On 16/09/2013 10:00, Niki Dokovski wrote: > > On Fri, Sep 13, 2013 at 9:27 PM, Niki Dokovski > wrote: > > > >> > >> > >> > >> On Fri, Sep 13, 2013 at 8:55 PM, Nick Williams < >

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-16 Thread Niki Dokovski
On Fri, Sep 13, 2013 at 9:27 PM, Niki Dokovski wrote: > > > > On Fri, Sep 13, 2013 at 8:55 PM, Nick Williams < > nicho...@nicholaswilliams.net> wrote: > >> >> On Sep 13, 2013, at 12:42 PM, Igor Urisman wrote: >> >> > I couldn't agree

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-13 Thread Niki Dokovski
On Fri, Sep 13, 2013 at 8:55 PM, Nick Williams < nicho...@nicholaswilliams.net> wrote: > > On Sep 13, 2013, at 12:42 PM, Igor Urisman wrote: > > > I couldn't agree more. WebSocket is provided by the container. But the > > time any app code gets to run, Spring of Fall, container ought to be > don

Re: 8.0.0 RC1: WebSocket ServerContainer servlet context attribute gets set too late.

2013-09-13 Thread Niki Dokovski
On Fri, Sep 13, 2013 at 7:56 AM, Igor Urisman wrote: > Dear all, > > It appears that if I obtain the ServletContext object via Spring's > WebApplicationInitializer > mechanism< > http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/web/WebApplicationInitializer.html > >

Re: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-09 Thread Niki Dokovski
On Mon, Sep 9, 2013 at 5:26 PM, Bob DeRemer wrote: > Thanks for the direction on using the respective Client/Server > EndpointConfig.Configurator plumbing to do a pre-connection AUTH. > Unfortunately, I’m stuck on the server side when trying to actually modify > the HTTP response result code from

Re: Does JSR-356 provide a way for a client to pass security info on connect?

2013-09-05 Thread Niki Dokovski
On Thu, Sep 5, 2013 at 8:48 AM, Niki Dokovski wrote: > > > > On Thu, Sep 5, 2013 at 12:44 AM, Bob DeRemer wrote: > >> >> >> > -Original Message- >> > From: André Warnier [mailto:a...@ice-sa.com] >> > Sent: Wednesday, September 04, 20

Re: Does JSR-356 provide a way for a client to pass security info on connect?

2013-09-04 Thread Niki Dokovski
On Thu, Sep 5, 2013 at 12:44 AM, Bob DeRemer wrote: > > > > -Original Message- > > From: André Warnier [mailto:a...@ice-sa.com] > > Sent: Wednesday, September 04, 2013 3:59 PM > > To: Tomcat Users List > > Subject: Re: Does JSR-356 provide a way for a client to pass security > info on > >

Re: 8.0.0-RC1: WebSocket Exception

2013-08-30 Thread Niki Dokovski
On Sat, Aug 31, 2013 at 12:33 AM, Igor Urisman wrote: > Dear all, > > Getting the following exception with none of my code on the stack: > > SEVERE: Error reading request, ignored > java.lang.IllegalStateException: The WebSocket session has been closed and > no method (apart from close()) may be c

Re: Encoding post data on Tomcat 7 using 2.0.3 corrupted

2013-08-26 Thread Niki Dokovski
On Tue, Aug 27, 2013 at 6:22 AM, Alexander Hartner wrote: > The problem was resolved by including both filters > (org.jboss.weld.servlet.ConversationFilter and > org.apache.catalina.filters.SetCharacterEncodingFilter). > Should this be reported to jboss weld? It could be documented or even code i

Re: Tomcat 8 Websocket API - Cookies & Headers

2013-08-23 Thread Niki Dokovski
eans you are already in the websocket world. I don;t see an easy way for doing this. Can you describe the use case in greater details. What problem do you solve by having access to the handshale request headers (incl cookies) in that phase? > > Thanks, > Todd > > > On Thu, Aug 22,

Re: Tomcat 8 Websocket API - Cookies & Headers

2013-08-22 Thread Niki Dokovski
On Fri, Aug 23, 2013 at 2:58 AM, toddfas wrote: > I'm trying to figure out how to get access to the cookies and headers > passed up in the Websocket handshake request on Tomcat 8. > > In Tomcat 7 the whole HttpServletRequest was passed into the > WebSocketServlet. createWebSocketInbound method so

Re: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Niki Dokovski
On Thu, Aug 22, 2013 at 10:07 PM, Niki Dokovski wrote: > > > > On Thu, Aug 22, 2013 at 7:39 PM, Bob DeRemer wrote: > >> I’m trying to use the Tomcat8 jsr client functionality in a standalone >> java client. I’m trying to use the minimal number of jars, so I gabbe

Re: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Niki Dokovski
On Thu, Aug 22, 2013 at 7:39 PM, Bob DeRemer wrote: > I’m trying to use the Tomcat8 jsr client functionality in a standalone > java client. I’m trying to use the minimal number of jars, so I gabbed > websocket-api.jar ONLY. When I call > ContainerProvider.getWebSocketContainer(), it returns nul

Re: A Couple of 8.0.0 WebSocket Questions

2013-08-10 Thread Niki Dokovski
On Sat, Aug 10, 2013 at 6:57 AM, Igor Urisman wrote: > Dear all, > > 1. I see how to close a session from either end of the connection. That, > of course, leaves the underlying endpoint intact. Is there a way to > un-deploy an entire server endpoint so that no new connections can be made > to it?

Re: Is the current Tomcat 7 servlet websocket implementation being deprecated?

2013-08-06 Thread Niki Dokovski
On Tue, Aug 6, 2013 at 3:22 PM, Bob DeRemer wrote: > > > > -Original Message- > > From: Mark Thomas [mailto:ma...@apache.org] > > Sent: Tuesday, August 06, 2013 3:59 AM > > To: Tomcat Users List > > Subject: Re: Is the current Tomcat 7 servlet websocket implementation > being > > deprecate

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

2013-08-06 Thread Niki Dokovski
On Tue, Aug 6, 2013 at 3:20 PM, 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 websocket

Re: OSGi in Tomcat

2013-07-24 Thread Niki Dokovski
On Wed, Jul 24, 2013 at 9:07 PM, Leonardo Torres wrote: > Thank´s for reply. > > With Gemini, can I use the tomcat websocket implementation? > You can use proprietary org.apache.catalina.websocket implementation. That however is not compatible with JSR 356 APIs. > > On Wed, Jul 24, 2013 at 8:09

Websocket blogs

2013-07-23 Thread Niki Dokovski
Hi, I'm going to post the experience I gained while working on websocket and jsr 356 implementation in Tomcat 8. First page is here http://nickytd.wordpress.com/developers-perspective-on-java-api-for-websocket-jsr-356-part-i/ Comments and feedback are welcome. cheers niki

Re: Disable the session in tomcat

2013-07-17 Thread Niki Dokovski
On Thu, Jul 18, 2013 at 12:22 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Daniel, > > On 7/17/13 5:04 PM, Daniel NAZARKIEWICZ wrote: > > Yes, i want to prevent session from being created because the > > sessions are not nee

Re: WebSocket API JSR 356 in Tomcat 7

2013-05-27 Thread Niki Dokovski
On Mon, May 27, 2013 at 4:31 PM, Konstantin Kolinko wrote: > 2013/5/27 Niki Dokovski : > > Hello, > > are there any concrete plans of getting JSR 356 implementation available > in > > Tomcat 8 dev version in the productive Tomcat 7? > > > > A

WebSocket API JSR 356 in Tomcat 7

2013-05-27 Thread Niki Dokovski
Hello, are there any concrete plans of getting JSR 356 implementation available in Tomcat 8 dev version in the productive Tomcat 7? cheers Niki