Resource management in new Tomcat JDBC connection pool.

2013-04-10 Thread Igor Urisman
Hello, The new Tomcat 7 JDBC poolhttp://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.htmlis quite new and not much has been written on it yet. Has anyone looked it how well it manages underlying resources, both in java domain and in the database? More specifically, what happens when I call

Re: Resource management in new Tomcat JDBC connection pool.

2013-04-10 Thread Igor Urisman
version and its workaround. This seems to affect MySQL primarily. Regards, Bertrand On 10/04/2013 4:05 PM, Igor Urisman wrote: Hello, The new Tomcat 7 JDBC poolhttp://people.apache.org/**~fhanik/jdbc-pool/jdbc-pool.**htmlhttp://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html is quite

Tomcat Websocket Implementation

2013-08-02 Thread Igor Urisman
Dear all, I'm looking into a solution that will make extensive use of websockets. Details are unimportant, but here's the question that I'd like to have some insight into. The current implementation (official

Re: Tomcat Websocket Implementation

2013-08-02 Thread Igor Urisman
Super helpful -- thanks, Nick. I'll switch to T8 right away. It's alpha status is not a problem in my case. -Igor. On Fri, Aug 2, 2013 at 10:45 AM, Nick Williams nicho...@nicholaswilliams.net wrote: On Aug 2, 2013, at 12:42 PM, Nick Williams wrote: On Aug 2, 2013, at 12:05 PM, Igor

8.0.0 Problems With javax.websocket.*

2013-08-05 Thread Igor Urisman
Dear all, I am running into snags with the new JEE7 compliant implementation of Websockets in 8.0.0-RC1. What's the right way to pass on the test cases? -Igor.

Re: 8.0.0 Problems With javax.websocket.*

2013-08-06 Thread Igor Urisman
will be deployed as ROOT.war, and run on the / context path. Thanks in advance! -Igor. On Mon, Aug 5, 2013 at 10:52 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Tue, Aug 6, 2013 at 1:03 AM, Igor Urisman igor.uris...@gmail.com wrote: Dear all, I am running into snags with the new JEE7

A Couple of 8.0.0 WebSocket Questions

2013-08-09 Thread Igor Urisman
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? If so, will it close existing sessions? 2. Is there a way to

8.0.0-RC1: WebSocket Exception

2013-08-30 Thread Igor Urisman
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 called on a closed session at

Re: 8.0.0-RC1: WebSocket Exception

2013-08-30 Thread Igor Urisman
, perhaps you ought to throw an exception in my thread when I call close() inside onOpen()? Thanks! -Igor. On Fri, Aug 30, 2013 at 6:12 PM, Niki Dokovski nick...@gmail.com wrote: On Sat, Aug 31, 2013 at 12:33 AM, Igor Urisman igor.uris...@gmail.com wrote: Dear all, Getting the following

Re: 8.0.0-RC1: WebSocket Exception

2013-09-01 Thread Igor Urisman
Right on. Thank you both, Mark and Niki. -Igor. On Sun, Sep 1, 2013 at 3:00 AM, Mark Thomas ma...@apache.org wrote: On 31/08/2013 02:40, Igor Urisman wrote: That's correct. I call close() inside onOpen(). You correctly call onClose() on the endpoint as well, so my code is happy

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

2013-09-13 Thread Igor Urisman
Dear all, It appears that if I obtain the ServletContext object via Spring's WebApplicationInitializer mechanismhttp://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/web/WebApplicationInitializer.html, it is not yet seeded with the WebSocket ServerContainer object.

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

2013-09-13 Thread Igor Urisman
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 done. -Igor. On Fri, Sep 13, 2013 at 10:38 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256

WebSocket message size limits

2013-09-17 Thread Igor Urisman
Dear All, I am looking for help in understanding why the size of the inbound WebSocket message is limited to 125 bytes. I realize that this may not even be the right place for my question, but am still hoping for a clue. From looking at the RFC 6455, Sec. 5.2 Base Framing Protocol, I am making

Re: WebSocket message size limits

2013-09-22 Thread Igor Urisman
, -Igor. On Wed, Sep 18, 2013 at 1:12 AM, Mark Thomas ma...@apache.org wrote: On 18/09/2013 06:19, Igor Urisman wrote: Dear All, I am looking for help in understanding why the size of the inbound WebSocket message is limited to 125 bytes. It isn't, at least not by Tomcat. I realize

Re: WebSocket message size limits

2013-09-23 Thread Igor Urisman
. If there is a way to change the default min size of a whole message, that would certainly be the way to go,---another right for you. There's only one problem: I don't know how. Do you? -Igor. On Mon, Sep 23, 2013 at 3:39 AM, Mark Thomas ma...@apache.org wrote: On 22/09/2013 21:49, Igor Urisman

Re: WebSocket message size limits

2013-09-23 Thread Igor Urisman
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? -Igor. On Mon, Sep 23, 2013 at 9:07 AM, Mark Thomas ma...@apache.org wrote: On 23/09/2013 08:44, Igor Urisman wrote: Thanks

Re: WebSocket message size limits

2013-09-25 Thread Igor Urisman
nick...@gmail.com wrote: On Tue, Sep 24, 2013 at 8:15 AM, Igor Urisman igor.uris...@gmail.com 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

Re: Servlet init method called multiple times

2013-10-23 Thread Igor Urisman
Print the call stack from a subsequent init()? On Wed, Oct 23, 2013 at 8:33 AM, Richard Pierce rpie...@empoweredbenefits.com wrote: Hey Chris. I wish it was, that would be an easy fix. It's not- grepped the whole codebase for it, and visually inspected these servlets. -Richard On

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

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;

Minor grammar glitch in a Websocket exception message.

2013-12-11 Thread Igor Urisman
As seen in 8.0.0 RC5: java.lang.IllegalStateException: javax.websocket.DeploymentException: Multiple Endpoints may not be deployed to using the same path [/conntestCloseEndpoint] IMHO, the message can't make up its mind between to the same path and using the same path. -Igor.

Re: Minor grammar glitch in a Websocket exception message.

2013-12-13 Thread Igor Urisman
Precisamente. On Fri, Dec 13, 2013 at 3:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/12/13, 4:43 PM, Mark Thomas wrote: On 12/12/2013 06:35, Igor Urisman wrote: As seen in 8.0.0 RC5

Java to JavaScript RMI framework available.

2013-12-30 Thread Igor Urisman
Folks, I needed to write this for something I am working on and thought there might be a wider audience for it. Tomcat 8 supports standard compliant Websockets, which provide convenient asynchronous full-duplex server to client data transport. The framework I am offering builds on top of that a

Re: Java to JavaScript RMI framework available.

2014-01-02 Thread Igor Urisman
. Not on the immediate roadmap, though. -Igor. On 31 December 2013 01:55, Igor Urisman igor.uris...@gmail.com wrote: Folks, I needed to write this for something I am working on and thought there might be a wider audience for it. Tomcat 8 supports standard compliant Websockets, which provide

Re: HttpSessionBindingListener details

2015-02-05 Thread Igor Urisman
Right, makes sense. Thank you. On Thu, Feb 5, 2015 at 10:21 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2015-02-05 21:07 GMT+03:00 Igor Urisman igor.uris...@gmail.com: Hello, folks. I can't seem to find a good solution for the following problem. I have an object that is added

HttpSessionBindingListener details

2015-02-05 Thread Igor Urisman
Hello, folks. I can't seem to find a good solution for the following problem. I have an object that is added to the HTTP session via the setAttribute() method. The object implements the HttpSessionBindingListener interface and its valueUnbound() method is dutifully called by the contained at the