• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting connection timeout exception

 
Vijayata Bawankar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am working on servlets in which i have written a servlet which acts as a proxy for my Flex application. In the servlet i have to make a request to get the RSS feeds from google and stock rates from yahoo. While doing so i am getting connection timeout exception.
Does anybody have any idea to have an solution to it?

Thanks in advance,
Vijayata.
 
Sashikanta Mishra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijayata,

What i am suspecting is that your response time in interaction is more than your session time out time.
And for Connection time out you can do the connection pooling from your servlet. And you can also do 1 tricky way of handling the connection by checking the connection after a specified time. If connection is loss again you can get the connection from a connection pooling source.

For servlet you can go to web.xml file and set the Session timeout as -1 so that your server session will never expire.

Thanks,
Sashikanta.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!