Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

automatic updation of resultset

Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can somebody tell me how to acheive this .
i have a result set in an applet say (select * from emp)
now i want this applet to be automatically updated when any manipulation is done on the table without requesting for the applet again from the server
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi prahu,
I don't think you can get automatically the latest data in the applet without calling the applet again.
If anyone can give a better solution they are welcome.
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that you are trying to establish database connectivity through applet. This would mean that DSN shall be created on all the user machines ( wrong approach ) or use JNDI services of the server. I do not know How you are implementing it. If the applet is not displaying lot of information then you can use socket to get the data. After every given time applet will open socket connection to the server and get the data and update the GUI . This will avoid updating the entire page. Many sites which has continuously changing data( shares ,stocks) use this method to display current data. However when applet tries to open the socket security manager will throw exception which shall be taken care of .You can try with appletviewer ( no security settings are required).
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic