The installmobilefirstpush, updatemobilefirstpush, and uninstallmobilefirstpush Ant tasks are provided for the installation of the push service.
The updatemobilefirstpush Ant task updates an already-configured MobileFirst Server web application on an application server. This task updates the push service WAR file. This file must have the same base name as the corresponding WAR file that was previously deployed.
The installmobilefirstpush, updatemobilefirstpush, and uninstallmobilefirstpush Ant tasks have the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
id | To distinguish different deployments. | No | Empty |
warFile | The WAR file for the push service. | No | The ../PushService/mfp-push-service.war file is relative to the MobileFirstServer directory that contains the mfp-ant-deployer.jar file. |
The id attribute distinguishes different deployments of the push service in the same WebSphere Application Server cell. Without this id attribute, two WAR files with the same context roots might conflict and these files would not be deployed.
Element | Description | Count |
---|---|---|
<applicationserver> | The application server. | 1 |
<analytics> | The Analytics. | 0..1 |
<authorization> | The authorization server for authenticating the communication with other MobileFirst Server components. | 1 |
<database> | The databases. | 1 |
<property> | The properties. | 0..∞ |
Attribute | Description | Required | Default value |
---|---|---|---|
auto | To indicate whether the authorization server URL is computed. The possible values are true or false. | Required on a WebSphere Application Server Network Deployment cluster or node. | true |
authorizationURL | The URL of the authorization server. | If mode is not auto. | The context root of the runtime on the local server. |
runtimeContextRoot | The context root of the runtime. | No | /mfp |
pushClientID | The push service confidential ID in the authorization server. | Yes | None |
pushClientSecret | The push service confidential client password in the authorization server. | Yes | None |
Attribute | Description | Required | Default value |
---|---|---|---|
name | The name of the property. | Yes | None |
value | The value of the property. | Yes | None |
For more information about the JNDI properties, see List of JNDI properties for MobileFirst Server push service.
Element | Description | Count |
---|---|---|
<websphereapplicationserver> or <was> | The parameters for WebSphere Application Server. 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. |
0..1 |
<tomcat> | The parameters for Apache Tomcat. | 0..1 |
The attributes and inner elements of these elements are described in Table 5 through Table 14 of Ant tasks for installation of MobileFirst runtime environments.
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 |
Attribute | Description | Required | Default |
---|---|---|---|
install | To indicate whether to connect the push service to MobileFirst Analytics. | No | false |
analyticsURL | The URL of MobileFirst Analytics services. | 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 |
Use the install attribute to indicate that this push service 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 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.
The <database> element collects the parameters that specify a data source declaration in an application server to access the push service database.
You must declare a single database: <database kind="Push">. You specify the <database> element similarly to the configuredatabase Ant task, except that the <database> element does not have the <dba> and <client> elements. It might have <property> elements.
The <database> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
kind | The kind of database (Push). | Yes | None |
validate | To validate whether the database is accessible. | No | true |
Element | Description | Count |
---|---|---|
<db2> | The parameter for DB2® databases. | 0..1 |
<derby> | The parameter for Apache Derby databases. | 0..1 |
<mysql> | The parameter for MySQL databases. | 0..1 |
<oracle> | The parameter for Oracle databases. | 0..1 |
<cloudant> | The parameter for Cloudant databases. | 0..1 |
<driverclasspath> | The parameter for JDBC driver class path (relational DBMS only). | 0..1 |
Attribute | Description | Required | Default |
---|---|---|---|
url | The URL of the Cloudant account. | No | https://user.cloudant.com |
user | The user name of the Cloudant account. | Yes | None |
password | The password of the Cloudant account. | No | Queried interactively |
dbName | The Cloudant database
name. Important: This database name must start with a lowercase
letter and contain only lowercase characters (a-z), Digits (0-9),
any of the characters _, $, and -.
|
No | mfp_push_db |