Deploying Master Indexes (Repository)

Deploying the Master Index (Repository) Server Project

Creating a Deployment Profile for the Sun Master Index server project (which defines the master index application) consists of the following steps.


Note –

Make sure you have created and started a domain before attempting to deploy the project. In order to use the application, you also need to define the database connection and, optionally, define security for the EDM.


Creating the Master Index (Repository) Deployment Profile

The first step to deploying a project is to create and name the Deployment Profile. Perform the following steps to create a new Deployment Profile for the master index server project.

ProcedureTo Create a Master Index Application Deployment Profile

  1. In the NetBeans Projects window, right-click the master index server project folder.

  2. Click New, and then point to Deployment Profile.

    The Create Deployment Profile dialog box appears.

  3. In the Deployment Profile Name field, type a name for the Deployment Profile.

  4. In the Environment drop-down list, select the Environment you created for the Sun Master Index project.

  5. In the Connectivity Map table, deselect the Used check box for any Connectivity Maps you do not want to include in the deployment.

  6. Click OK.

    The Deployment Editor window appears.

  7. Continue to Mapping Master Index (Repository) Project and Environment Components.

Mapping Master Index (Repository) Project and Environment Components

Once you create a Deployment Profile, you can map the project components to the deployment Environment. When you map the project components to the Environment containers, you are specifying the Logical Host to handle the transactions.

You can map project components manually, or you can use the Automap feature to have the components automatically mapped for you. Use the Automap feature when a one-to-one correspondence exists between the available project components and the containers in the Environment to which you want to deploy them.

Before beginning, complete the steps under Creating the Master Index (Repository) Deployment Profile.

ProcedureTo Map Project Components Manually

  1. With the master index server project Deployment Profile open in the Deployment Editor, drag MasterIndex.Web.Application-application_name and MasterIndex.Application-application_name from the left panel onto the application server in the Deployment Editor in the right panel.


    Tip –

    The application server appears in the Logical Host box in the Deployment Editor.


  2. If you defined a JMS Topic to publish the master index messages, drag the JMS Topic from the left panel to the JMS IQ Manager in the Logical Host in the right panel.

  3. If the server project contains a database Adapter, drag the database external application from the left panel to the database external system in the right panel.

  4. Continue to Building and Deploying the Master Index (Repository) Server Project.

ProcedureTo Map Project Components Automatically

  1. With the master index server project Deployment Profile open in the Deployment Editor, click Automap.

    The Automap Results dialog box appears.

  2. Review the results of the mapping on the Automap Results dialog box.

    If the appropriate container for the component cannot be found, the component remains unmapped.

  3. If more than one container was found for a component, click Automap Option to review mapping options and do one of the following:

    • To accept the Automapping option, click OK.

    • To map the components manually, click Cancel.

  4. To map any components that could not be automatically mapped, follow the manual instructions above.

  5. Continue to Building and Deploying the Master Index (Repository) Server Project.

Building and Deploying the Master Index (Repository) Server Project

Once all project components are mapped to the Environment, build the project to create and compile all the files needed to run the project. Building the project places the application file at .netheans/caps/builds/DeploymentNameProjectName/logicalhost/ApplicationServer. Deploying the project extracts the files to the domain.


Caution – Caution –

For the deployment to be successful, make sure the application server is started and the domain is created.


ProcedureTo Build and Deploy the Server Project

  1. Complete the instructions under Mapping Master Index (Repository) Project and Environment Components.

  2. With the Deployment Editor still open, click Build to generate the project files.

  3. After the build process finishes successfully, click Deploy to deploy the project to a server.

  4. Define EDM users, as described under Defining Master Index Security (Repository) in Maintaining Sun Master Indexes (Repository).