答复: two questions about websocket in tomcat7.0.30

2012-11-26 Thread Zane_Zhang
The servlet is OK, and I have solved the problem. And I would like to know how to set the maximum idle time of connection of websocket, and why the function ( onclose() )on server side can be called in windows operating system when I unplug the network cable, but the it can not be called in

two questions about websocket in tomcat7.0.30

2012-11-22 Thread Zane_Zhang
Dears, My PC environment are windows XP professional Version 2002 Service Pack 3, JDK1.6, Tomcat7.0.30. my Java web project is an internet online chat-room based on websocket. I run the local-host service in Tomcat and then connect my chat-room in chrome, if the connection between server and

I have a question about websocket in tomcat7.0.30

2012-11-19 Thread Zane_Zhang
Dears I am trying to build a chat-room in the internet by websocket based on tomcat7.0.30. the link between server and browser is not reliable. when I try to send a message to server from browser after the websocket connection having been built, the server has no respond, but this just