Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timer for saved searches IQSS#6910
The timer method wraps the makeLinksForAllSavedSearches in a no-param method returning void with the @schedule annotation. The timer is sheduled to run once a week on Sunday at 12:30 AM. If we decide a different schedule is better in general, we should adjust thiis in the code before release. In special cases the schedule can be modified using and ejb-jar.xml file of the form(for ex Tuesday 2:30 PM) : <?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee" version = "3.1" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"> <enterprise-beans> <session> <ejb-name>SavedSearchServiceBean</ejb-name> <ejb-class>edu.harvard.iq.dataverse.search.savedsearch.SavedSearchServiceBean</ejb-class> <session-type>Stateless</session-type> <timer> <schedule> <minute>30</minute> <hour>14</hour> <day-of-week>Tue</day-of-week> </schedule> <timeout-method> <method-name>makeLinksForAllSavedSearchesTimer</method-name> </timeout-method> </timer> </session> </enterprise-beans> </ejb-jar>
- Loading branch information