This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Query regarding Tomcat 6.x AIO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Query regarding Tomcat 6.x AIO" Watch "Query regarding Tomcat 6.x AIO" New topic

Query regarding Tomcat 6.x AIO

Yasser Sultan

Joined: Sep 23, 2008
Posts: 2
Hi all,
I am creating a real-time web-based chat client and for that I am using AIO feature of Tomcat 6.x. Apache AIO. I am also java XMPP libraries to connect to XMPP based web services like gtalk. When the first request is received by the servlet it gets blocked until data is received from other side. I am using the first request to send the presence message to all other clients. Now the second request carries the chat message written by the user to all other clients. The problem is when the client receives message from the other side I send the first request back with the chat message to the user. Now since there is no connection to the server the user is signed out of the chat server. Now again I have to send a request which signs in the user and then blocks until further messages are received from other clients.
This causes the user to sign in and out frequently......
Please help me out
I agree. Here's the link:
subject: Query regarding Tomcat 6.x AIO
Similar Threads
how do I know when client closes the browser ?
response without request
Very Different Problem with JScrollPane
Threads 003: Server-Side Strategies
Implementing a message broadcast server using servlets