Skip to content

Commit

Permalink
Chiuso il BusinessProcess dopo la ricerca degli incarichi per liberar…
Browse files Browse the repository at this point in the history
…e le connessioni al DB
  • Loading branch information
mspasiano committed Jun 16, 2014
1 parent a614d3a commit da9e4bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Expand Up @@ -12,6 +12,7 @@
import it.cnr.contab.utenze00.bulk.UtenteBulk;
import it.cnr.jada.action.AbstractAction;
import it.cnr.jada.action.ActionContext;
import it.cnr.jada.action.BusinessProcessException;
import it.cnr.jada.action.Forward;
import it.cnr.jada.action.HttpActionContext;
import it.cnr.jada.util.Introspector;
Expand Down
Expand Up @@ -25,6 +25,7 @@
import it.cnr.jada.util.RemoteIterator;
import it.cnr.jada.util.action.ConsultazioniBP;
import it.cnr.jada.util.action.SimpleCRUDBP;
import it.cnr.jada.util.ejb.EJBCommonServices;
import it.cnr.jada.util.upload.UploadedFile;
import it.perla.accenture.com.anagrafeprestazioni_inserimentoincarichi.ConsulenteType.Incarico.RiferimentoNormativo;

Expand Down Expand Up @@ -917,6 +918,7 @@ public void generaXML(ActionContext context) throws BusinessProcessException {
return;
}
}
EJBCommonServices.closeRemoteIterator(newBp.detachIterator());
} catch (Exception e){
throw handleException(e);
}
Expand Down Expand Up @@ -1113,6 +1115,7 @@ public void generaXML(ActionContext context, RemoteIterator sourceIterator) thro
arraylist.add((V_incarichi_elenco_fpBulk)sourceIterator.nextElement());

generaXML(context, arraylist);
EJBCommonServices.closeRemoteIterator(sourceIterator);
} catch (Exception e){
throw handleException(e);
}
Expand Down Expand Up @@ -1381,6 +1384,7 @@ public void generaXMLPerla(ActionContext context, RemoteIterator sourceIterator)
arraylist.add((V_incarichi_elenco_fpBulk)sourceIterator.nextElement());

generaXMLPerla(context, arraylist);
EJBCommonServices.closeRemoteIterator(sourceIterator);
} catch (Exception e){
throw handleException(e);
}
Expand Down
Expand Up @@ -730,11 +730,14 @@ else if (getTipofile().equals("5"))
serializer.setOutputProperty(OutputKeys.STANDALONE,"no");
//serializer.setOutputProperty(OutputKeys.MEDIA_TYPE,"text/xml");
serializer.transform(domSource, streamResult);
closed();
} catch (ParserConfigurationException e) {
} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
} catch (ParseException e) {
} catch (BusinessProcessException e) {
}

}

public void eseguiRicerca(it.cnr.jada.action.ActionContext context)throws BusinessProcessException{
Expand Down Expand Up @@ -854,7 +857,7 @@ else if (getTipofile().equals("4"))
codiceErrore = Constants.ERRORE_INC_100;
} catch (RemoteException e) {
codiceErrore = Constants.ERRORE_INC_100;
}
}
}

@SuppressWarnings("rawtypes")
Expand Down

0 comments on commit da9e4bd

Please sign in to comment.