dmihalache a écrit :
> +                try {
> +                    CoreInstance.getInstance().close(coreSession);
> +                } catch (ClientException e) {
> +                    // TODO Auto-generated catch block
> +                    e.printStackTrace();
> +                }

Please never checkin autogenerated blocks that use e.printStackTrace(); since
errors printed on stderr tend to get mixed with each others and thus really hard
to debug. At least use something like:


> +                } catch (ClientException e) {
> +                    log.error(e);
> +                }

Or even better, reraise the exception so that the calling code can decide
whether or not this exception should be catched or logged.

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to