Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to make Asynchronous call to DB using Java. Please note i do not want to wait for the DB results.?

I want to refresh Materialized View in my program for which i do not want to wait for the call to get Finish.

user-image
Question ajoutée par Usman Liaqat , Principal Software Engineer , Soliton Technologies
Date de publication: 2014/04/07
ahmad mohammed
par ahmad mohammed , JAVA team lead , edu-tek

you can just use threads to call you view and refersh 

try to see executer service

Mufeed Farhan
par Mufeed Farhan , HR Applications Manager , SBM

You can create your method to select from db and make it  Asynchronous by adding "@Asynchronous" key word befor it . you can make solve your problem by creating method and select each time e.g.20 records and get the number of records first then loop till you reach the max number and appen the records in your structor (table) and when ever your refresh or use ajax to refresh the value automaticly .

 

 

More Questions Like This