diff --git a/doc/sphinx-guides/source/_static/admin/ejb-jar.xml b/doc/sphinx-guides/source/_static/admin/ejb-jar.xml index 5ea6330753a..b25cefb6340 100644 --- a/doc/sphinx-guides/source/_static/admin/ejb-jar.xml +++ b/doc/sphinx-guides/source/_static/admin/ejb-jar.xml @@ -1,6 +1,6 @@ diff --git a/doc/sphinx-guides/source/admin/timers.rst b/doc/sphinx-guides/source/admin/timers.rst index 3495c49c98e..0408c74ccd0 100644 --- a/doc/sphinx-guides/source/admin/timers.rst +++ b/doc/sphinx-guides/source/admin/timers.rst @@ -59,7 +59,7 @@ This job is automatically scheduled to run once a week at 12:30AM local time on * Create or edit dataverse/src/main/webapp/WEB-INF/ejb-jar.xml, following the :download:`sample file <../_static/admin/ejb-jar.xml>` provided. -* Edit the parameters in the section ejb-jar file in the WEB-INF directory to suit your preferred schedule +* Edit the parameters in the section of the ejb-jar file in the WEB-INF directory to suit your preferred schedule * The provided parameters in the sample file are , , and ; additional parameters are available @@ -67,6 +67,29 @@ This job is automatically scheduled to run once a week at 12:30AM local time on * Build and deploy the application +* Alternatively, you can insert an ejb-jar.xml file into a provided dataverse war file without building the application. + + * Check if there is already an ejb-jar.xml file in the war file + + * jar tvf $DATAVERSE-WAR-FILENAME | grep ejb-jar.xml + + * if the response includes " WEB-INF/ejb-jar.xml", you will need to extract the ejb-jar.xml file for editing + + * jar xvf $DATAVERSE-WAR-FILENAME WEB-INF/ejb-jar.xml + + * edit the extracted WEB-INF/ejb-jar.xml, following the :download:`sample file <../_static/admin/ejb-jar.xml>` provided. + + * if the response is empty, create a WEB-INF directory and create en ejb-jar.xml file in it, following the :download:`sample file <../_static/admin/ejb-jar.xml>` provided. + + * edit the parameters in the section of the WEB-INF/ejb-jar.xml to suit your preferred schedule + + * Insert the edited WEB-INF/ejb-jar.xml into the dataverse war file + + * jar uvf $DATAVERSE-WAR-FILENAME WEB-INF/ejb-jar.xml + + * Deploy the war file + + See also :ref:`saved-search` in the API Guide. Known Issues