This commit is contained in:
Lucio Lelii 2009-01-14 18:45:49 +00:00
parent f514f06059
commit 868b4d4034
1 changed files with 5 additions and 5 deletions

View File

@ -43,11 +43,11 @@ public class EliminatePoolingThread extends Thread {
while (stack.size()>0){
Couple c=stack.remove(stack.size()-1);
System.out.println("trying to delete "+c.resource.getID() );
System.out.println("timenstamp now: "+timestamp+" resource timestamp: "+c.timestamp);
if ( (timestamp>=c.timestamp)) try {
System.out.println("the resource will be deleted "+c.resource.getID());
ProfileContext.getContext().getWSHome().remove(c.resource.getID());
logger.trace("trying to delete "+c.resource.getID() );
logger.trace("timenstamp now: "+timestamp+" resource timestamp: "+c.timestamp);
if ( (timestamp>=c.timestamp))
try {
ProfileContext.getContext().getWSHome().remove(c.resource.getID());
}catch(Exception e){e.printStackTrace();tmpStack.offer(c);}
else tmpStack.offer(c);
}