Thanks for the comment, Nestor. Please, make the comment also in Jira
(you replied only to a Jira notification in dspace-devel). Also, any
suggestions on how to implement the general solution are welcome.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


On Thu, Apr 4, 2013 at 6:50 PM, Nestor Oviedo <[email protected]> wrote:
> Hi Ivan.
> I'm not familiar with JSPUI, but in XMLUI we added an Action to the main
> sitemap's handle-errors section wich is responsible to send the alert email.
> This kind of solution (catch all exceptions somewhere and rethrow them when
> needed) might be less invasive.
> Regards
> Nestor
>
> -----------------------------------------------------------
> SeDiCI - http://sedici.unlp.edu.ar
> PrEBi - http://prebi.unlp.edu.ar
>
>
>
> On Wed, Apr 3, 2013 at 6:42 PM, Ivan Masár (DuraSpace JIRA)
> <[email protected]> wrote:
>>
>> Ivan Masár created DS-1529:
>> ------------------------------
>>
>>              Summary: make alert.recipient generally usable
>>                  Key: DS-1529
>>                  URL: https://jira.duraspace.org/browse/DS-1529
>>              Project: DSpace
>>           Issue Type: Improvement
>>             Reporter: Ivan Masár
>>
>>
>> Description:
>>
>> alert.recipient is a configuration property, which specifies an email to
>> which the stack traces of errors get sent. It is a really handy feature to
>> receive errors from DSpace to your inbox as soon as they happen.
>>
>> Problem:
>>
>> However, it is opt-in, i.e. the sending has to be explicitly coded in
>> place where the exception is thrown/caught. An example of current usage is
>> here:
>>
>>
>> https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-api/src/main/java/org/dspace/search/DSIndexer.java#L843
>>
>> Suggested solution:
>>
>> If it were possible to send the email alert automatically for any
>> Exception, it would significantly improve the usability of this feature.
>>
>> I was thinking along the lines of modifying the behaviour of the Exception
>> class. It's probably not possible to just override it's methods in a child
>> class, because no other exceptions would inherit from the child class. Could
>> Java reflection be a way to modify Exception's behaviour?
>>
>> --
>> This message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>> ------------------------------------------------------------------------------
>> Minimize network downtime and maximize team effectiveness.
>> Reduce network management and security costs.Learn how to hire
>> the most talented Cisco Certified professionals. Visit the
>> Employer Resources Portal
>> http://www.cisco.com/web/learning/employer_resources/index.html
>> _______________________________________________
>> Dspace-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-devel
>
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Dspace-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-devel
>

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to