Create an IBM MobileFirst Platform Application Pattern
We create an IBM MobileFirst Platform Application Pattern by creating and configuring a MobileFirst Server, a runtime database, an administration database, and an optional reports database, and by uploading applications and adapters.
This procedure involves uploading certain artifacts to IBM PureApplication System such as the MobileFirst Server. Before you begin, ensure that the artifacts are available for upload.
Actions associated with the reports database are optional. The reports database is required only for viewing reports.
- Create a MobileFirst Server.
- If necessary, use the MPF Application Pattern Extension or the command line interface to package up the MobileFirst Server into an EAR file. See:
- Deploy a MobileFirst project to IBM PureApplication System, IBM SmartCloud Orchestrator, or IBM PureApplication Service on SoftLayer
- Build a MobileFirst virtual application
- In IBM PureApplication System, click Patterns > Virtual Applications in the dashboard to open the Virtual Application Patterns page.
- Select IBM MobileFirst Platform Application Pattern Type 6.3, and then click the plus sign (+).
- In the pop-up window, select Blank application, and click Start Building.
- In the Virtual Application Builder, click the Diagram tab.
- From the Assets list, expand Application Components, and then drag and drop an Enterprise Application WebSphere Application Server component onto the canvas.
- Supply the following information in the fields provided:
Property Description Name Name for the MobileFirst Server. EAR file MobileFirst EAR file containing the MobileFirst Server package to be uploaded.
- Create runtime and administration databases, and an optional reports database.
- From the Assets list, expand Database Components, and then drag and drop a Database DB2 component onto the canvas.
- Supply the following information in the fields provided to define the runtime database:
Property Description Name Name for the runtime database component; for example, WL Runtime DB. Database name Name for the runtime database; for example, WLRTIME. Source From the Source list, select Apply a database workload standard, and then click the database workload standard created for the runtime database (see Install custom runtime database workload standards).
- Optional: Repeat step 2a to create a reports database.
- Optional: Supply the following information in the fields provided to define the reports database:
Property Description Name Name for the reports database component; for example, WL Reports DB. Database name Name for the reports database; for example, WLRPT. Source From the Source list, select Apply a database workload standard, and then click the database workload standard created for the reports database (see Install custom runtime database workload standards).
- Repeat step 2a to create an administration database.
- Supply the following information in the fields provided to define the administration database:
Property Description Name Name for the administration database component; for example, WL Admin DB. Database name Name for the runtime database; for example, WLADMIN. Source From the Source list, select Apply a database workload standard, and then click the database workload standard created for the administration database (see Install custom runtime database workload standards).
- Configure connectivity for the runtime and reports databases.
- Drag a connection from the MobileFirst Server component to the runtime database component.
- In the Resource References of Data Source field, select jdbc/WorklightDS for the runtime database.
- Optional: Drag a connection from the MobileFirst Server component to the reports database component.
A warning message is displayed in the MobileFirst Server component, indicating "Connection to 'xxx database' is required for res-ref-name 'jdbc/WorklightReportsDS' in module 'xxx.war'". This warning message can be disregarded.
- Optional: In the Resource References of Data Source field, select jdbc/WorklightReportsDS for the reports database.
- Drag a connection from the MobileFirst Server component to the administration database component.
- In the Resource References of Data Source field, select jdbc/WorklightAdminDS for the administration database.
- Configure the MobileFirst Server.
- From the Assets list, expand MobileFirst Components, and then drag and drop a MobileFirst Configuration component onto the canvas.
- Create a link from the MobileFirst Server component to the MobileFirst configuration component.
- Supply the following information in the fields provided:
Property Description Name Name for the MobileFirst configuration component. Worklight Deployment Username User name for MobileFirst application and adapter deployment (the user must have authorization for the deployment). Worklight Deployment Password Password for MobileFirst application and adapter deployment.
- Create MobileFirst applications and adapters.
- From the Assets list, expand MobileFirst Components, and then drag and drop a MobileFirst adapter component and a MobileFirst application component onto the canvas.
- For the MobileFirst application component, supply the following information in the fields provided:
Property Description Name Name for the MobileFirst application. MobileFirst Application Files MobileFirst application files to upload. Supported formats are *.wlapp and *.zip.
- For the MobileFirst adapter component, supply the following information in the fields provided:
Property Description Name Name for the MobileFirst adapter. MobileFirst Adapter Files MobileFirst adapter files to upload. Supported formats are *.wlapp and *.zip.
- Create links from the MobileFirst application component to the MobileFirst Server component, and from the MobileFirst adapter component to the MobileFirst Server component.
- Integrate with Tivoli Directory Server or Microsoft Active Directory. See Integrate with Tivoli Directory Server.
Parent topic: Work with the MPF Application Pattern Type