Changing targets

Changing the target of a reference provides applications with the flexibility of taking advantage of advances in components as they happen without recompiling and reinstalling the application.

Before you begin

Before changing the target for a reference you must:

Why and when to perform this task

Change the target of an import from a module when another service with the same interface as the original target provides new or improved functionality that your module can use.

Steps for this task

  1. Stop the module that contains the reference that you are changing.
    1. Using the administrative console, display the Service Component Architecture (SCA) modules.

      Navigate to this panel using Applications > SCA Modules

    2. Select your module and press Stop. The display updates to show the application as stopped.
  2. Change the target destination of the reference.

    How you make the change depends on how the module invokes the target.

    Type of invocation How to change
    Single target service
    1. Using the administrative console, display the SCA Modules. Navigate to the panel using Applications > SCA Modules.
    2. From the displayed list, select the module that contains the import that references the target to change.
    3. Expand the list of imports by clicking the plus sign (+) next to Imports.
    4. Select the import to change from the list.
    5. In the Target area, select the Module from the list.
    6. After the Export list refreshes, select the export for the new target.
    7. Save the change by clicking OK.
    Multiple target services
    1. Display the buses on the system on which the module resides. Navigate to the panel using Service Integration > Buses.
    2. Select the SCA.System.cellname.Bus
    3. Display the destination targets for the bus by clicking Destinations.
    4. Select the destination that represents the import that connects the calling module to the targets. This identifier will contain the word import.
    5. Display the list of properties by clicking Context properties.
    6. Select the property to change by clicking on the targets property in the list.
    7. Change the Context value field to the new destination targets.
    8. Return to the Context properties panel by clicking OK.
    9. Save the change by clicking OK.
  3. Save your changes. Click Save when prompted.

What to do next

Start the module and make sure the module receives the expected results.
Related tasks
Deleting J2C activation specifications
Deleting SIBus destinations

Last updated: Wed 06 Dec 2006 07:08:08

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)