ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل Usman Liaqat , Principal Software Engineer , Soliton Technologies
تاريخ النشر: 2014/04/07
ahmad mohammed
من قبل 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
من قبل 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 .

 

 

المزيد من الأسئلة المماثلة