How to pass Resultset rs object as parameter to Thread
I am new to Java thread.I am not getting how to pass Resultset object which contain all records in it.
So that each thread should take each record and do the other processing.
The program is:
public class dataimport
connect();//this function will connect to database and execute query
private void connect()
/* Connect database
str="SELECT * FROM tablename";
/* here each record will pass to each thread */
Please can any one help me one this .
thank you in advance
you can find a lot of tutorials about threads on the net, here is a link about parameter passing:
|All times are GMT -5. The time now is 04:48 AM.|