Now basically I have created three classes.
public void run() {
int seqId = 0;
while(true) {
List<KamMessage> list = null;
try {
list = fullPoll(seqId);
} catch (Exception e1) {
e1.printStackTrace();
}
if (!list.isEmpty()) {
...
@user1604490 I have a threadpool running in a class, now the other class has to look for new data from this pool,fetch it, process it and return back...
@didxga Hi am new here in stackoverflow... so i dont know what an acceptance rate means.... please guide... only this site saves me from programming henches....
Here the method reads the database which has an unique ID with the sequence number which keeps on increasing, since am a beginner in java,can I know how to implement this repetitive polling and check for new incoming message each time.
/**
* Method which defines polling of the database and also...