This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I want to get realtime updated data from database using socket listener object so user on front end doesn't have to click on refresh button to display updated data. Can I get real data using JSP(which will call socket listener object which call data access object)? Thanks, angela
Originally posted by Angela D'souza: Can I get real data using JSP(which will call socket listener object which call data access object)?
Listening a socket for a long time in the middle of a HTTP request is generally a bad idea... If the client doesn't timeout the connection, your appserver will. I'd suggest using some kind of polling scheme. The first that comes to mind is the HTML refresh header already suggested.