Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sample ejb-jar.xml file had a bad version number that would preve… #7181

Merged
merged 4 commits into from Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/sphinx-guides/source/_static/admin/ejb-jar.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee"
version = "3.2"
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>
Expand Down
25 changes: 24 additions & 1 deletion doc/sphinx-guides/source/admin/timers.rst
Expand Up @@ -59,14 +59,37 @@ 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 <schedule> section ejb-jar file in the WEB-INF directory to suit your preferred schedule
* Edit the parameters in the <schedule> section of the ejb-jar file in the WEB-INF directory to suit your preferred schedule

* The provided parameters in the sample file are <minute>, <hour>, and <dayOfWeek>; additional parameters are available

* For a complete reference for calendar expressions that can be used to schedule Timer services see: https://docs.oracle.com/javaee/7/tutorial/ejb-basicexamples004.htm

* 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 <schedule> 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
Expand Down