res-delete-xom-db

The res-delete-xom-db Ant task removes XOM, JAR, ZIP, or Java™ resources, or a library, from a Rule Execution Server database. This task does not notify any other Rule Execution Server component or execution unit (XU) instance.

res-delete-xom-db element attributes

The following table describes the res-delete-xom-db element attributes and specifies whether they are mandatory or optional.

Table 1. res-delete-xom-db element attributes
Element attribute Description Mandatory/optional
credentialsfile A file that contains the userid and password values, encrypted the first time the attribute is used. If you set this attribute, do not use the userid and password attributes.

A credentials file is a text file that sets two properties: username and password.

Optional
driver The JDBC driver class name for the database. Mandatory
failonerror If you set this attribute to false, a warning message is logged when an error occurs, but the build is not stopped.

Optional

The default value is set to true.

jarName

The server uses this name to remove the XOM, JAR, ZIP, or Java resources.

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
jarVersion The server uses this version number to remove the XOM, JAR, ZIP, or Java resources.

Mandatory

The default value is 1.0.

libName

The server uses this name to remove the library.

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
libVersion The server uses this version number to remove the library.

Mandatory

The default value is 1.0.

password The password of the user who is allowed to connect to the database. If you set this attribute, do not use the credentialsfile attribute. Optional
uri

Configuration URI.

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
url The JDBC URL for the database. Mandatory
userid The user name to connect to the database. If you set this attribute, do not use the credentialsfile attribute. The user must be assigned the resDeployer role or above. Optional

res-delete-xom-db nested elements

The classpath nested element must contain the JDBC driver classes. Whenever you must specify path-like values, you can use a nested element.

Example:

The following code sample shows how to delete Java XOM resources from a database.
<res-delete-xom-db driver="com.ibm.db2.jcc.DB2Driver" 
                   url="jdbc:db2://localhost:50000/DB2_8RES" 
                   userid="res" 
                   password="mypassword" 
                   uri="resuri://xom.jar/1.0">
  <classpath>
    <fileset dir="./driver-libs">
      <include name="*.jar"/>
    </fileset>
  </classpath>
</res-delete-xom-db>