Hi all,
This is the Exact code....
My servlet : init method Except init method all other methods are empty in servlet
public void init() throws ServletException {
sd=new StoreAppData();
sd.ProcessPendingApp();
super.init();
}
JAVA File This is the method called by servlet in java file.
public void ProcessPendingApp(){
while(true)
{
try{
int appCount=0;
ArrayList appRequestList = checkPendingApplications();
appCount = appRequestList.size(); //count of applications
if (appCount>0)
{
for (int i=0; i<appCount; i++)
{
String pending_app_id = appRequestList.get(i).toString(); //each application number
saveProcessXMLFieldData(pending_app_id); //Store other two tables in this method
}//End For loop
}//End if
Thread.sleep(30000);// sleep for 3 minutes
}//End try block
catch(Exception e)
{
System.out.println("Error Message is "+e.getMessage());
}//End Catch
} //End While
}//End method
Thanks for your help.
[ September 15, 2006: Message edited by: Priya Sri ]