• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Query regarding Tomcat 6.x AIO

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic