Setting up dynamic metadata deployment

Before using dynamic deployment, you must enable the feature and add a data source connection for the data source containing the deployment metadata.
To enable dynamic deployment:
  1. In the Deployment layer, double-click the environment or server file for the application you are using. The file opens in the editor window.
  2. In the Overview tab, select the Dynamic check box to enable dynamic metadata deployment. Enabling Dynamic adds the mixin models necessary for dynamic deployment. The Deployment data source is added to the list of available data source connections.
  3. Verify that the Deployment User and Password fields match the login for the user who will deploy metadata.
  4. In the environment or connections file, select the Data Source Connections tab.
  5. Click the Select button . Add the data source connection for the Deployment data source.
  6. Configure the Deployment data source. See Configuring data source connections for more information.
    Note: If you want to store uploaded models in the same database as the DefaultRelationalDatabase data source, copy the settings over to the Deployment data source.
  7. Use the Data Load Tool to create tables to store deployment metadata:
    1. In the toolbar, click the arrow beside the Run Tool button and select Data Load Tool. The Data Load Tool dialog opens.
    2. In the Model section, select Current.
    3. In the Server and Connections section, specify the server and connections file for the model to use.
    4. In the Options section, in the Command field, select recreateschema. In the Data Source field, select Deployment.
    5. Click Run to create the system schema.
Dynamic deployment is now enabled.
Before the Deployment Tool commands can be used, the deployment user must be granted the deployment:DeployMetadata privilege. For more information about assigning privileges, see the NexJ CRM Administrator Guide .