Reference information for the installmobilefirstruntime, updatemobilefirstruntime, and uninstallmobilefirstruntime Ant tasks.
The updatemobilefirstruntime Ant task updates a MobileFirst runtime that is already configured on an application server. This task updates the runtime WAR file. The file must have the same base name as the runtime WAR file that was previously deployed. Other than that, the task does not change the application server configuration, that is, the web application configuration, data sources, and JNDI environment entries.
The installmobilefirstruntime, updatemobilefirstruntime, and uninstallmobilefirstruntime Ant tasks have the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
contextroot | The common prefix in URLs to the application (context root). | No | /mfp |
id | To distinguish different deployments. | No | Empty |
environmentId | To distinguish different MobileFirst environments. | No | Empty |
warFile | The WAR file for MobileFirst runtime. | No | The mfp-server.war file is in the same directory as the mfp-ant-deployer.jar file. |
wasStartingWeight | The start order for WebSphere Application Server. Lower values start first. | No | 2 |
The contextroot and id attributes distinguish different MobileFirst projects.
In WebSphere Application Server Liberty profiles and in Tomcat environments, the contextroot parameter is sufficient for this purpose. In WebSphere Application Server full profile environments, the id attribute is used instead.
Use the warFile attribute to specify a different directory for the MobileFirst runtime WAR file. You can specify the name of this WAR file with an absolute path or a relative path.
The installmobilefirstruntime, updatemobilefirstruntime, and uninstallmobilefirstruntime tasks support the following elements:
Element | Description | Count |
---|---|---|
<property> | The properties. | 0.. |
<applicationserver> | The application server. | 1 |
<database> | The databases. | 1 |
<analytics> | The Analytics. | 0..1 |
Attribute | Description | Required | Default value |
---|---|---|---|
name | The name of the property. | Yes | None |
value | The value for the property. | Yes | None |
The <applicationserver> element describes the application server to which the MobileFirst application is deployed. It is a container for one of the following elements:
Element | Description | Count |
---|---|---|
<websphereapplicationserver> or <was> | The parameters for WebSphere Application Server. | 0..1 |
<tomcat> | The parameters for Apache Tomcat. | 0..1 |
The <websphereapplicationserver> element (or <was> in its short form) denotes a WebSphere Application Server instance. WebSphere Application Server full profile (Base, and Network Deployment) are supported, so is WebSphere Application Server Liberty Core and WebSphere Application Server Liberty Network Deployment. The <websphereapplicationserver> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
installdir | WebSphere Application Server installation directory. | Yes | None |
profile | WebSphere Application Server profile, or Liberty. | Yes | None |
user | WebSphere Application Server administrator name. | Yes, except for Liberty | None |
password | WebSphere Application Server administrator password. | No | Queried interactively |
libertyEncoding | The algorithm to encode data source passwords
for WebSphere Application Server Liberty.
The possible values are none, xor,
and aes. Whether the xor or aes encoding is used, the clear password is passed as argument to the securityUtility program, which is called through an external process. You can see the password with a ps command, or in the /proc file system on UNIX operating systems. |
No | xor |
jeeVersion | For Liberty profile. To specify whether to install the features of the JEE6 web profile or the JEE7 web profile. Possible values are 6, 7, or auto. | No | auto |
configureFarm | For WebSphere Application Server Liberty, and WebSphere Application Server full profile (not for WebSphere Application Server Network Deployment edition and Liberty collective). To specify whether the server is a server farm member. Possible values are true or false. | No | false |
farmServerId | A string that uniquely identify a server in
a server farm. The MobileFirst Server administration services and all the MobileFirst runtimes that communicate with it must share the same value. |
Yes | None |
It supports the following element for single-server deployment:
Element | Description | Count |
---|---|---|
<server> | A single server. | 0..1 |
The <server> element, which is used in this context, has the following attribute:
Attribute | Description | Required | Default |
---|---|---|---|
name | The server name. | Yes | None |
Element | Description | Count |
---|---|---|
<collectiveMember> | A Liberty collective member. | 0..1 |
Attribute | Description | Required | Default value |
---|---|---|---|
serverName | The name of the collective member. | Yes | None |
clusterName | The cluster name that the collective member belongs to. | Yes | None |
serverId | A string that uniquely identifies the collective member. | Yes | None |
controllerHost | The name of the collective controller. | Yes | None |
controllerHttpsPort | The HTTPS port of the collective controller. | Yes | None |
controllerAdminName | The administrative user name that is defined in the collective controller. This is the same user that is used to join new members to the collective. | Yes | None |
controllerAdminPassword | The administrative user password. | Yes | None |
createControllerAdmin | To indicate whether the administrative user must be created in the basic registry of the collective member. Possible values are true or false. | No | true |
Element | Description | Count |
---|---|---|
<cell> | The entire cell. | 0..1 |
<cluster> | All the servers of a cluster. | 0..1 |
<node> | All the servers in a node, clusters excluded. | 0..1 |
<server> | A single server. | 0..1 |
The <cell> element has no attributes.
The <cluster> element has the following attribute:
Attribute | Description | Required | Default |
---|---|---|---|
name | The cluster name. | Yes | None |
The <node> element has the following attribute:
Attribute | Description | Required | Default |
---|---|---|---|
name | The node name. | Yes | None |
The <server> element, which is used in a Network Deployment context, has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
nodeName | The node name. | Yes | None |
serverName | The server name. | Yes | None |
The <tomcat> element denotes an Apache Tomcat server. It has the following attribute:
Attribute | Description | Required | Default |
---|---|---|---|
installdir | The installation directory of Apache Tomcat. For a Tomcat installation that is split between a CATALINA_HOME directory and a CATALINA_BASE directory, specify the value of the CATALINA_BASE environment variable. | Yes | None |
configureFarm | To specify whether the server is a server farm member. Possible values are true or false. | No | false |
farmServerId | A string that uniquely identify a server in
a server farm. The MobileFirst Server administration services and all the MobileFirst runtimes that communicate with it must share the same value. |
Yes | None |
The <database> element specifies what information is necessary to access a particular database. The <database> element is specified like the configuredatabase Ant task, except that it does not have the <dba> and <client> elements. However, it might have <property> elements. The <database> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
kind | The kind of database (MobileFirstRuntime). | Yes | None |
validate | To validate whether the database is accessible or not. The possible values are true or false. | No | true |
The <database> element supports the following elements:
Element | Description | Count |
---|---|---|
<derby> | The parameters for Derby. | 0..1 |
<db2> | The parameters for DB2®. | 0..1 |
<mysql> | The parameters for MySQL. | 0..1 |
<oracle> | The parameters for Oracle. | 0..1 |
<driverclasspath> | The JDBC driver class path. | 0..1 |
Attribute | Description | Required | Default |
---|---|---|---|
install | To indicate whether to connect the MobileFirst runtime to MobileFirst Analytics. | No | false |
analyticsURL | The URL of MobileFirst Analytics services. | Yes | None |
consoleURL | The URL ofMobileFirst Analytics Console. | Yes | None |
username | The user name. | Yes | None |
password | The password. | Yes | None |
validate | To validate whether MobileFirst Analytics Console is accessible or not. | No | true |
tenant | The tenant for indexing data that is collected from a MobileFirst runtime. | No | Internal identifier |
Use the install attribute to indicate that this MobileFirst runtime must be connected and send events to MobileFirst Analytics. Valid values are true or false.
Use the analyticsURL attribute to specify the URL that is exposed by MobileFirst Analytics, which receives incoming analytics data.
For example: http://<hostname>:<port>/analytics-service/rest
Use the consoleURL attribute to the URL that is exposed by MobileFirst Analytics, which links to the MobileFirst Analytics console.
For example: http://<hostname>:<port>/analytics/console
Use the username attribute to specify the user name that is used if the data entry point for the MobileFirst Analytics is protected with basic authentication.
Use the password attribute to specify the password that is used if the data entry point for the MobileFirst Analytics is protected with basic authentication.
Use the validate attribute to validate whether the MobileFirst Analytics Console is accessible or not, and to check the user name authentication with a password. The possible values are true, or false.
For more information about this attribute, see Configuration properties.
The <derby> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
database | The database name. | No | MFPDATA, MFPADM, MFPCFG, MFPPUSH, or APPCNTR, depending on kind. |
datadir | The directory that contains the databases. | Yes | None |
schema | The schema name. | No | MFPDATA, MFPCFG, MFPADMINISTRATOR, MFPPUSH, or APPCENTER, depending on kind. |
The <derby> element supports the following element:
Element | Description | Count |
---|---|---|
<property> | The data source property or JDBC connection property. | 0.. |
For more information about the available properties, see the documentation for Class EmbeddedDataSource40. See also the documentation for Class EmbeddedConnectionPoolDataSource40.
For more information about the available properties for a Liberty server, see the documentation for properties.derby.embedded at Liberty profile: Configuration elements in the server.xml file.
When the mfp-ant-deployer.jar file is used within the installation directory of IBM MobileFirst™ Platform Foundation, a <driverclasspath> element is not necessary.
The <db2> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
database | The database name. | No | MFPDATA, MFPADM, MFPCFG, MFPPUSH, or APPCNTR, depending on kind. |
server | The host name of the database server. | Yes | None |
port | The port on the database server. | No | 50000 |
user | The user name for accessing databases. This user does not need extended privileges on the databases. If you implement restrictions on the database, you can set a user with the restricted privileges that are listed in Database users and privileges. | Yes | None |
password | The password for accessing databases. | No | Queried interactively |
schema | The schema name. | No | Depends on the user |
For more information about DB2 user accounts, see DB2 security model overview.
The <db2> element supports the following element:
Element | Description | Count |
---|---|---|
<property> | The data source property or JDBC connection property. | 0.. |
For more information about the available properties, see Properties for the IBM® Data Server Driver for JDBC and SQLJ.
For more information about the available properties for a Liberty server, see the properties.db2.jcc section at Liberty profile: Configuration elements in the server.xml file.
The <driverclasspath> element must contain JAR files for the DB2 JDBC driver and the associated license. You can download DB2 JDBC drivers from DB2 JDBC Driver Versions.
The <mysql> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
database | The database name. | No | MFPDATA, MFPADM, MFPCFG, MFPPUSH, or APPCNTR, depending on kind. |
server | The host name of the database server. | Yes | None |
port | The port on the database server. | No | 3306 |
user | The user name for accessing databases. This user does not need extended privileges on the databases. If you implement restrictions on the database, you can set a user with the restricted privileges that are listed in Database users and privileges. | Yes | None |
password | The password for accessing databases. | No | Queried interactively |
Instead of database, server, and port, you can also specify a URL. In this case, use the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
url | The URL for connection to the database. | Yes | None |
user | The user name for accessing databases. This user does not need extended privileges on the databases. If you implement restrictions on the database, you can set a user with the restricted privileges that are listed in Database users and privileges. | Yes | None |
password | The password for accessing databases. | No | Queried interactively |
For more information about MySQL user accounts, see MySQL User Account Management.
The <mysql> element supports the following element:
Element | Description | Count |
---|---|---|
<property> | The data source property or JDBC connection property. | 0.. |
For more information about the available properties, see the documentation at Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J.
For more information about the available properties for a Liberty server, see the properties section at Liberty profile: Configuration elements in the server.xml file.
The <driverclasspath> element must contain a MySQL Connector/J JAR file. You can download it from Download Connector/J.
The <oracle> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
database | The database name, or Oracle service name. Note: You
must always use a service name to connect to a PDB database.
|
No | ORCL |
server | The host name of the database server. | Yes | None |
port | The port on the database server. | No | 1521 |
user | The user name for accessing databases. This
user does not need extended privileges on the databases. If you implement
restrictions on the database, you can set a user with the restricted
privileges that are listed in Database users and privileges. See the note under this table. |
Yes | None |
password | The password for accessing databases. | No | Queried interactively |
Instead of database, server, and port, you can also specify a URL. In this case, use the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
url | The URL for connection to the database. | Yes | None |
user | The user name for accessing databases. This
user does not need extended privileges on the databases. If you implement
restrictions on the database, you can set a user with the restricted
privileges that are listed in Database users and privileges. See the note under this table. |
Yes | None |
password | The password for accessing databases. | No | Queried interactively |
For more information about Oracle user accounts, see Overview of Authentication Methods.
For more information about Oracle database connection URLs, see the Database URLs and Database Specifiers section at Data Sources and URLs.
It supports the following element:
Element | Description | Count |
---|---|---|
<property> | The data source property or JDBC connection property. | 0.. |
For more information about the available properties, see the Data Sources and URLs section at Data Sources and URLs.
For more information about the available properties for a Liberty server, see the properties.oracle section at Liberty profile: Configuration elements in the server.xml file.
The <driverclasspath> element must contain an Oracle JDBC driver JAR file. You can download Oracle JDBC drivers from JDBC, SQLJ, Oracle JPublisher and Universal Connection Pool (UCP).
The <property> element, which can be used inside <derby>, <db2>, <mysql>, or <oracle> elements, has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
name | The name of the property. | Yes | None |
type | Java™ type of the property values, usually java.lang.String/Integer/Boolean. | No | java.lang.String |
value | The value for the property. | Yes | None |