Developing Java CAPS Projects

Adding and Connecting Project Components

You can add most Project components to a Project by selecting the New > Component Type option from the Project context menu under the Projects window (a Scheduler is an exception). For those components appearing in the Connectivity Map Editor toolbar, you can simply drag the icon onto the Editor's canvas. Once you have finished editing the Connectivity Map, click the Generate Connectivity Map icon to add the components to the Project in the Repository.


Note –

Collaboration Definitions should be created before adding Collaborations, because of the complication of multiple targets.


Project Nesting

Projects can contain Subprojects, which in turn can contain other Subprojects. Primarily because of limitations in the user interface, the working limit for nesting Projects within other Projects is five levels (total), as shown in the following figure.

Figure 1 Project Nesting

Screen capture showing five nested projects.

Using the Connectivity Map Editor

When you create a new Connectivity Map in the Enterprise Explorer, the editor panel displays the Connectivity Map Editor, as shown in the following figure. To define your Project, you simply drag icons from the toolbar to the workspace, or canvas, to populate the Connectivity Map with the necessary components. You can also create objects under the Projects window using the Project context menu, and drag them onto the Connectivity Map canvas.

You subsequently link the components by dragging the cursor from the output arrowhead of one to the input arrowhead of the other. The cursor turns into a hand during this operation.

Figure 2 Connectivity Map Editor

Screen capture of the Connectivity Map Editor.

The drag-and-drop components include services, queues, topics, schedulers, and external applications. Additional components, such as Adapters and JMS Clients, are placed automatically when you link the components you have placed manually.

It is important to understand that the logical components appearing in the Connectivity Map are essentially placeholders that refer to the “actual” components that exist in the Repository and appear under the Projects window. Deleting a queue or topic in the Connectivity Map only affects the placeholder, not the object in the Repository. Deleting a queue or topic in the Repository, however, does delete its placeholder counterpart in the Connectivity Map. Renaming either the object or the placeholder automatically renames both.

When you link two components on a Connectivity Map, the NetBeans IDE places a connection icon on the link; the entity represented by the icon depends upon the type of components you are linking.