11.3. Deploying a Project to a Fabric Container
Overview
When you are ready to test your application in a highly distributed environment, you can deploy it into a fabric using the Deploy to... tool. The Deploy to... tool builds your application, runs the tests, packages the application as a bundle, adds the bundle to a fabric profiles, and deploys the bundle into the fabric's internal Maven repository.
To complete the process, you need to ensure that the profile containing your application is deployed to at least one of the containers in the fabric. If the profile is not deployed to a container, the application will not be started.
Procedure
To deploy a project to a fabric container:
- Open the Fuse Integration perspective.
- In Fabric Explorer, expand the Fabrics node.
- Double-click a fabric to connect to it.
- Create a new profile in which you will install your project.Follow the steps in Section 24.1, “Creating a new profile” up to Step 6.The new profile appears in the profile tree in Fabric Explorer.
- In Project Explorer, select the project you want to deploy.
- Open the project's context menu.
- Select
to see the list of available profiles. - From the list of profiles, select the profile that you created in Step 4.
- Verify that the application's bundle was added to the profile.
- In Fabric Explorer, click the profile into which the project was installed.This will populate the Properties view with the profile's details.
- In Properties view, click the Details tab.
- Check that your project's bundle appears in the Bundles or FABs field.
- If you do not already have a container deployed into the fabric for testing your application, create a new container in the fabric.Follow the procedure appropriate for the container in Chapter 23, Working with Fabric Containers.The new container appears in Fabric Explorer, under the fabric's Containers node.
- Assign the profile containing your application to a container in the fabric.Follow the procedure in Section 23.5, “Changing a Container's Profiles”.
- Verify that the application was deployed to the container.
- In Fabric Explorer, double-click the new container to start it and to populate Properties view with its properties and profile information.
- In Fabric Explorer, click the container's Bundles node to view the list of bundles installed on it.