E che tipo di gestione dell'errore adotteresti in questo caso ?
E' una situazione in cui è il server che non può (o vuole, dipende
dalla configurazione) creare ulteriori sessioni.
|
Gianfranco
Boccalon
______________________________________
|
Spago&Spagic
Project Leader
______________________________________
Senior Consultant
Architectures & Consulting
Research & Innovation Division
|
|
Engineering
Ingegneria
Informatica S.p.A.
Corso
Stati Uniti, 23/C - 35127 Padova - Italy
Phone: +39-049.8692511 Fax:+39-049.8692566
Mobile: +39-3357813507
www.eng.it
www.spagoworld.org
|
|
|
|
Alessandro Bindelli ha scritto:
Salve,
al fine di poter gestire l'eccezione di java.lang.IllegalStateException
al raggiungimento del numero massimo di sessioni proporrei la seguente
modifica all'adapterHTTP.
In tale modalità è possibile intercettare l'eccezione
IllegalStateException tramite TRAP e gestire l'eccezione.
} // try
catch (IllegalStateException ie) {
TracerSingleton.log(Constants.NOME_MODULO,
TracerSingleton.CRITICAL,
"AdapterHTTP::service: ", ie);
throw ie;
}
catch (Exception ex) {
TracerSingleton.log(Constants.NOME_MODULO,
TracerSingleton.CRITICAL,
"AdapterHTTP::service: ", ex);
} // catch (Excpetion ex) try
finally {
RequestContainer.delRequestContainer();
ResponseContainer.delResponseContainer();
if (monitor != null) {
monitor.stop();
}
if (eventNotifier != null) {
eventNotifier.notifyEvent(
new ServiceEndEvent(null),
requestContext);
}
--
Ing. Alessandro Bindelli
Gruppo Engineering Ingegneria Informatica S.p.a.
Tel. 055-420 2644 c/o Autostrade S.p.a.
E-mail: alessandro.bindelli@xxxxxx; alessandro.bindelli@xxxxxxxxxxxxx;
--
|