Tuesday, June 16, 2009

Configure a selector to dynamically invoke SCA components

Component Implementation
Websphere Integration Developer v612
Contact us...
 

Configure a selector to dynamically invoke SCA components 

A selector is a dispatch pattern you use to dynamically determine which implementation of a component to invoke at runtime. Like a rule group, a selector has date range entries, selection criteria, and a default destination. You select a destination in a selector the same as your would for a rule group. That is, when a selector is invoked, it selects a destination using the selection criteria and date range entries. A destination could be any service-oriented component.
One major difference between a selector and a rule group is that the destination of a selector can be any service component, while a destination in a rule group can be only a rule set or decision table. In other words, a selector can dynamically re-route a service call to any other component at runtime.
 
You can call a selector from any of your service-oriented components. The selector’s job is to use dynamic information to determine which component should be called to do the work. The set of destination components is also configurable, allowing you to provide additional destinations at runtime.

Creating a selector

To create and configure a selector to dynamically invoke SCA components, follow the instructions below:

  1. In the workbench, switch to the business integration perspective.
  2. If you have already created a module, select it in the business integration view.
  3. From the main menu, click File > New > Selector.
  4. In the New Selector window, specify a module, a folder and a name for the new selector, and click Next.
  5. In the select an interface window, browse to an existing interface or click New to create one. If you create a new interface here, you will have to create an operation for it before you can use it in the rule group. Create this operation using the interface editor.
This creates a selector, and launches it in a new editor.
Related concepts
 

Choosing components with the selector editor

To visually determine where to route operations within the WebSphere® Integration Developer family of tools, use the selector editor.

The selector editor presents a tabular display of potential destinations. Use this tool to graphically select them, and specify which ones to use and when.
Note: Selectors can only be deployed to the WebSphere Process Server.

Click on any of the links shown below to learn more about that topic.

Related links

  1. Dynamically invoking a component using selectors (IBM Guided tour)
 

No comments: