Deploy the Application Center on IBM PureApplication System
Configure the enterprise application, the database, the user registry, and map the security roles before you deploy the Application Center on PureApplication System.
This procedure involves working with the ApplicationCenterEAR.ear file and the create-appcenter-db2.sql file. We can find both files in the mobilefirst_server_ pattern_6.3.0.zip file.
You must have an IBM PureApplication System environment and the privilege to create Virtual Application Pattern (VAP) and to run Virtual Application instances.
By following this procedure, prepare the operational components of the Application Center for deployment of the enterprise application on PureApplication System. You connect the operational components to each other and then we can save the configuration and deploy the Application Center on PureApplication System as a web application.
- Get the enterprise archive (EAR) file, ApplicationCenterEAR.ear, for the Application Center. This file is in the mobilefirst_server_ pattern_6.3.0.zip file. As of V5.0.6, the Application Center has two web archive (WAR) files, one for the console and one for the services. An EAR file containing them is supplied to simplify deployment on PureApplication System. The context roots of the WAR files within the EAR file are:
- /appcenterconsole for the console
- /applicationcenter for the services
If we choose to build the EAR file manually, we must remember the context roots of the WAR files.
- Create the Virtual Application Pattern.
- Log in to IBM PureApplication System
- Select Workload Console > Patterns > Virtual Application Patterns.
- Select Web Application Pattern Type 2.0.
- Click +.
- Select a template to start from and then click Start Building. We can select any template that conforms with the operational model used in this documentation. You must create one web application component, one database component, and one user registry component. The example is based on selection of "Blank application".
- Add an Enterprise Application component.
- Expand Application Components.
- Drag the Enterprise Application component into the pane on the right.
- Select the component in this property pane and specify the path of the Application Center EAR file.
- Add routing policy.
- Move the mouse over the Enterprise Application component and click the plus sign (+).
- Select Routing Policy.
- In the property pane, click Routing Policy and specify Virtual Host name. Take a note of the host name because we use it later.
- Optional: Add JVM policy. If we use the supplied EAR file or have defined the context root of the services WAR file as /applicationcenter, this step is optional.
- Select JVM Policy in the same way as you selected Routing Policy.
- In the property pane, specify Generic JVM arguments: -Dibm.appcenter.services.endpoint=http://{virtual_host}/{services_context_root} where:
virtual_host is the virtual host name specified in Routing Policy.
services_context_root is the context root of the services WAR file.
- Add a database component.
- In the left pane, expand Database Components.
- Drag a database into the property pane on the right. The database used in the example is DB2 .
- In the property panel, click the Database component and specify the schema file. We can find create-appcenter-{db}.sql, used in the example, in the worklight_pattern_6.3.0.offering.zip file.
- Connect enterprise application and database.
- On the Enterprise Application component, click and drag the connection point on the right edge to the Database component. This gesture creates the connection between the web application and the database.
- Click the connector and specify the data source as jdbc/AppCenterDS.
- Add a user registry component.
- In the left pane, expand User Registry Components.
- Drag the user registry component into the property pane.
- In the property pane, select the User Registry component and specify the "Base DN" and the "LDIF file".
- Connect web application and user registry.
- Drag two connectors between the Enterprise Application component and the User Registry component.
- Specify the "Role name" appcenteradmin.
- Set "Mapping special subjects" to AllAuthenticatedUsers.
- Specify the next "Role name" appcenteruser.
- Set "Mapping special subjects" to AllAuthenticatedUsers.
- Save the configuration and deploy the Application Center on PureApplication System.
- Save the virtual application; give it a name, for example, "MobileFirst Application Center".
- Return to Virtual Application Patterns. You should see the pattern created in this procedure.
- Click Deploy to deploy the Application Center on PureApplication System.
Parent topic: Deployment of the Application Center to the cloud