This documentation is for WSO2 App Factory 1.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

The sample is described in the following topics:


This sample demonstrates how to create and reuse the same endpoint reference in different lifecycle stages.


Set up App Factory using the instructions given in section Getting Started.

Executing the Sample

  1. Log in to the App Factory portal, and create a new application by clicking Add New Application. Select the application's type as Web application and repository type as Git.
  2. Check out the application's  source code using the Git clone command. You can find the URL of the repository on the Repos & Builds tab of the portal.  

  3. Replace the WebContent/index.jsp file of the Git folder structure with the sample index.jsp file found in <AF_HOME>/samples/EndpointSample/WebContent directory. You can find the same file here: /WebContent/index.jsp.  

  4. Next, go to the Team tab in the portal and invite 3 members to your team as a Developer, a QA and a DevOps.

  5. Log in to the portal as a developer and click the Resource tab. Create an endpoint with the following information:

  6. Next, promote the application to Testing. You can do this by selecting Lifecycle Management tab in the App Factory portal and clicking Promote.
  7. The application is now in Testing stage. You can reuse the endpoint created earlier in Testing stage as well. To do this, click on the name of the endpoint, select the Stage as Testing and provide the new value  (e.g., as follows:
  8. Similarly, promote the application to Staging, log in as a DevOps person and change the endpoint to refer to another value (e.g., in Staging environment. 
  9. Create a branch of the application, deploy and test it using the controls in Repos & Builds tab of the portal. Note how the application displays different times for particular resource endpoints depending on the lifecycle stage of the application.

You have created an application and taken it through its lifecycle stages by reusing the same endpoint to refer to different values at different levels.

Also see Reusing a Datasource in all Lifecycle Stages on how to create and reuse a datasource resource though the application's lifecycle stages.

  • No labels