File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes automatic updation of resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "automatic updation of resultset" Watch "automatic updation of resultset" New topic

automatic updation of resultset

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
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

Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i
P Subramanian

Joined: Jul 18, 2001
Posts: 10
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.
Ashish Pitale

Joined: Apr 02, 2001
Posts: 2
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).
I agree. Here's the link:
subject: automatic updation of resultset
It's not a secret anymore!