+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Ant tasks for installation of MobileFirst Operations Console, MobileFirst Server artifacts, MobileFirst Server administration, and live update services

The installmobilefirstadmin, updatemobilefirstadmin, and uninstallmobilefirstadmin Ant tasks are provided for the installation of MobileFirst Operations Console, the artifacts component, the administration service, and the live update service.


Task effects


Attributes and elements

The installmobilefirstadmin, updatemobilefirstadmin, and uninstallmobilefirstadmin Ant tasks have the following attributes:

Table 1. Attributes for the installmobilefirstadmin, updatemobilefirstadmin, and uninstallmobilefirstadmin Ant tasks
Attribute Description Required Default
contextroot The common prefix for URLs to the administration service to get information about MobileFirst runtime environments, applications, and adapters. No /mfpadmin
id To distinguish different deployments. No Empty
environmentId To distinguish different MobileFirst environments. No Empty
servicewar The WAR file for the administration service. No The mfp-admin-service.war file is in the same directory as the mfp-ant-deployer.jar file.
shortcutsDir The directory where to place shortcuts. No None
wasStartingWeight The start order for WebSphere Application Server. Lower values start first. No 1

The installmobilefirstadmin, updatemobilefirstadmin, and uninstallmobilefirstadmin Ant tasks support the following elements:

Table 2. Inner elements for the installmobilefirstadmin, updatemobilefirstadmin, and uninstallmobilefirstadmin Ant tasks
Element Description Count
<applicationserver> The application server. 1
<configuration> The live update service. 1
<console> The administration console. 0..1
<database> The databases. 1
<jmx> To enable Java Management Extensions. 1
<property> The properties. 0..
<push> The push service. 0..1
<user> The user to be mapped to a security role. 0..


To specify a MobileFirst Operations Console

The <console> element collects information to customize the installation of the MobileFirst Operations Console. This element has the following attributes:

Table 3. Attributes of the <console> element
Attribute Description Required Default
contextroot The URI of the MobileFirst Operations Console. No /mfpconsole
install To indicate whether the MobileFirst Operations Console must be installed. No Yes
warfile The console WAR file. No The mfp-admin-ui.war file is in the same directory as themfp-ant-deployer.jar file.

The <console> element supports the following element:

Table 4. Inner element for the <console> element
Element Description Count
<artifacts> The MobileFirst Server artifacts. 0..1
<property> The properties. 0..

The <artifacts> element has the following attributes:

Table 5. Attributes for the <artifacts> element
Attribute Description Required Default value
install To indicate whether the artifacts component must be installed. No true
warFile The artifacts WAR file. No The mfp-dev-artifacts.war file is in the same directory as the mfp-ant-deployer.jar file
By using this element, we can define your own JNDI properties or override the default value of the JNDI properties that are provided by the administration service and the MobileFirst Operations Console WAR files.

The <property> element specifies a deployment property to be defined in the application server. It has the following attributes:

Table 6. Attributes for the <property> element
Attribute Description Required Default value
name The name of the property. Yes None
value The value of the property. Yes None
By using this element, we can define your own JNDI properties or override the default value of the JNDI properties that are provided by the administration service and the MobileFirst Operations Console WAR files.

For more information about the JNDI properties, see List of JNDI properties for MobileFirst Server administration service.


To specify an application server

Use the <applicationserver> element to define the parameters that depend on the underlying application server. The <applicationserver> element supports the following elements.

Table 7. Inner elements of the <applicationserver> element
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.

However, for the inner element of the <was> element for Liberty collective, see the following table:

Table 8. Inner element of the <was> element for Liberty collective
Element Description Count
<collectiveController> A Liberty collective controller. 0..1

The <collectiveController> element has the following attributes:

Table 9. Attributes of the <collectiveController> element
Attribute Description Required Default value
serverName The name of the collective controller. Yes None
controllerAdminName The administrative user name that is defined in the collective controller. This is the same user 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 controller. Possible values are true or false. No true


To specify the live update service configuration

Use the <configuration> element to define the parameters that depend on the live update service. The <configuration> element has the following attributes.

Table 10. Attributes of the <configuration> element
Attribute Description Required Default value
install To indicate whether the live update service must be installed. Yes true
configAdminUser The administrator for the live update service. No. However, it is required for a server farm topology. If not defined, a user is generated.

In a server farm topology, the user name must be the same for all the members of the farm.

configAdminPassword The administrator password for live update service user. If a user is specified for configAdminUser. None.

In a server farm topology, the password must be the same for all the members of the farm.

createConfigAdminUser To indicate whether to create an admin user in the basic registry of the application server, if it is missing. No true
warFile The live update service WAR file. No The mfp-live-update.war file is in the same directory as the mfp-ant-deployer.jar file.

The <configuration> element supports the following elements:

Table 11. Inner elements of the <configuration> element
Element Description Count
<user> The user for the live update service. 0..1
<property> The properties. 0..

The <user> element collects the parameters about a user to include in a certain security role for an application.

Table 12. Attributes of the <user> element
Attribute Description Required Default value
role A valid security role for the application. Possible value: configadmin. Yes None
name The user name. Yes None
password The password if the user needs to be created. No None
After you defined the users by using the <user> element, we can map them to any of the following roles for authentication in MobileFirst Operations Console:

For more information about which authorizations are implied by the specific roles, see Configure user authentication for MobileFirst Server administration.

Tip: If the users exist in an external LDAP directory, set only the role and name attributes but do not define any passwords.

The <property> element specifies a deployment property to be defined in the application server. It has the following attributes:

Table 13. Attributes for the <property> element
Attribute Description Required Default value
name The name of the property. Yes None
value The value of the property. Yes None
By using this element, we can define your own JNDI properties or override the default value of the JNDI properties that are provided by the administration service and the MobileFirst Operations Console WAR files.

For more information about the JNDI properties, see List of JNDI properties for MobileFirst Server administration service.


To specify the push service configuration

Use the <push> element to define the parameters to configure the connection to the push service. The <push> element has the following attribute.

Table 14. Attribute of the <push> element
Attribute Description Required Default value
configure To indicate whether to configure the connection to the push service. No false

The <push> element supports the following element:

Table 15. Inner element of the <push> element
Element Description Count
<authorization> The configuration of the authorization server for the communication with the push service. Mandatory if the configure attribute is set to true. 1

The <authorization> element collects information to configure the authorization server for the authentication communication with other MobileFirst Server components. This element has the following attributes:

Table 16. Attributes of the <authorization> element
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
adminClientID The administration service confidential ID in the authorization server. Yes None
adminClientSecret The administration service confidential client password in the authorization server. Yes None
pushURL The URL of the push service. If mode is not auto. /imfpush on the local server.
pushClientID The push service confidential client ID in the authorization server. Yes None
pushClientSecret The push service confidential password in the authorization server. Yes None


To specify JMX communication between the MobileFirst Server administration service and the MobileFirst projects

Use the <jmx> element to ensure that a JMX connection can be established between the MobileFirst Server administration service and the MobileFirst runtime projects. The <jmx> element has the following attributes, which depend on the underlying application server.

Table 17. Attributes of the <jmx> element
Attribute Description Required Default
libertyAdminUser The administrator (for Liberty only). No None
libertyAdminPassword The administrator password (for Liberty only). No None
createLibertyAdmin Whether the admin user must be created in the basic registry, if it does not exist (for Liberty only). No true
tomcatRMIPort The RMI port that Apache Tomcat uses to connect to MobileFirst projects (for Tomcat only). No 8686
tomcatSetEnvConfig To prevent automatic modification of setenv.bat and setenv.sh scripts. The valid values are manual and auto. No auto

Note: The libertyAdminUser and libertyAdminPassword attributes are not mandatory, but if you define one of these attributes, you must also define the other.


To specify a connection to the administration service database

The <database> element collects the parameters that specify a data source declaration in an application server to access the administration service database.

You must declare a single database: <database kind="MobileFirstAdmin">. 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:

Table 18. Attributes of the <database> element
Attribute Description Required Default
kind The kind of database (MobileFirstAdmin). Yes None
validate To validate whether the database is accessible. No true

The <database> element supports the following elements. For more information about the configuration of these database elements for relational DBMS, see Table 18 through Table 28 in Ant tasks for installation of MobileFirst runtime environments.

Table 19. Inner elements for the <database> element
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
<driverclasspath> The parameter for JDBC driver class path (relational DBMS only). 0..1


To specify a user and a security role

The <user> element collects the parameters about a user to include in a certain security role for an application.

Table 20. Attributes of the <user> element
Attribute Description Required Default
role A valid security role for the application. Yes None
name The user name. Yes None
password The password if the user needs to be created. No None

After you defined users by using the <user> element, we can map them to any of the following roles for authentication in the MobileFirst Operations Console.

For information about which authorizations are implied by the specific roles, see the chapter about the REST API for the MobileFirst Server administration service.

Tip: If users exist in an external LDAP directory, set only the role and name attributes but do not define any passwords.

Parent topic: Installation reference