Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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 added by Usman Liaqat , Principal Software Engineer , Soliton Technologies
Date Posted: 2014/04/07
ahmad mohammed
by 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
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.