Sunday, 15 April 2012

java - How do I asynchronously get data from the database for a SwingWorker's publish method? -



java - How do I asynchronously get data from the database for a SwingWorker's publish method? -

i have remote ejb3 method returns list<t> db using jta (hibernate). basicly it's simple hql looks this: select t t t ....

this query takes long time in cases wanted utilize swingworker asynchronously load chunks of info jtable using publish , process methods. but, work need info in chunks server. right? can artificially split query number of "smaller" queries setting arbitrary range them: select t t t ... , t.id < :rangesrart , t.id > :rangeend

but hoping there improve way of doing that. looked @ @asynchronous doesn't seem i'm looking for. there way ejbs or else?

you need neither publish nor process. list in implementation of doinbackground(). before start of execute() show undetermined progress bar in dialog. should override done() show results , hide progress dialog.

java swing hibernate asynchronous ejb

No comments:

Post a Comment