how to continue processing even if an error occur
hi! i have a webservice that connects to different database. I want that if one webservice has an error because database is not available, other webservice be able to continue processing. Is there a way in java to just continue processing and ignore the error that occur to some part.
thanks in advance for your help.
here is my code:
Service service=new Service();
Call call = (Call) service.createCall();
String endpoint="http://localhost:8080/axis/querydb.jws";
call.setTargetEndpointAddress(new URL(endpoint));
call.setOperationName(new QName("countResult"));
int dbcnt=0;
Integer cnt=new Integer(0);
String[] dbarray=new String[]{"silms","iradfil","iradrnd","iradtravel","iradinstitution"};
for(;dbcnt<5;dbcnt++){
cnt= (Integer) call.invoke(new Object[]{new String(key),new String(dbarray[dbcnt])});
ttlcnt=ttlcnt+cnt.intValue();
}

