Hello All,
I'm trying to fetch some String data from data base table and pushing it in a JMS queue (Activemq). But in case of this push operation gets failed, Instead of processing next String data from the Resultset, I have wait (hance using wait() method from object class) and check for why the JMS push operation got failed. To incorporate this, I'm resending the same string again to JMS queue for which the push operation got failed - Using a TimerTask from util package. Below is Pseudo code I'm trying to explain here:
With this code, the wait code highlighted above is not making the main thread to wait for Timer thread to complete it's resenting task.
Somebody please help me out from to incorporate this situation.
I'm trying to fetch some String data from data base table and pushing it in a JMS queue (Activemq). But in case of this push operation gets failed, Instead of processing next String data from the Resultset, I have wait (hance using wait() method from object class) and check for why the JMS push operation got failed. To incorporate this, I'm resending the same string again to JMS queue for which the push operation got failed - Using a TimerTask from util package. Below is Pseudo code I'm trying to explain here:
With this code, the wait code highlighted above is not making the main thread to wait for Timer thread to complete it's resenting task.
Somebody please help me out from to incorporate this situation.