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:
- In the workbench, switch to the business integration perspective.
- If you have already created a module, select it in the business integration view.
- From the main menu, click .
- In the New Selector window, specify a module, a folder and a name for the new selector, and click Next.
- 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.
- Selector editor
The selector editor is a graphical editor that you use to visually choose and schedule the processing of components within WebSphere Integration Developer. - Specifying a target component for your selector
The target component is the destination where the selector will direct the implementation. - Choosing dates and times
The selector can be used to schedule the routing of an operation to a specific component for a specific date and time. - Customizing algorithms for date and time selection
When you want to specialize the date and time selection criteria, you can create your own custom algorithm. - Standards for date and time selection in a selector
There are a number of ways you can configure your selector. Here are some suggestions that are based on the number and nature of the available destinations.
Parent topic: Choosing components with the selector editor
Related concepts
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.
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.
- Component selection
The selector editor is used to route an operation from a client component to one of several possible target components. - Planning for the future with the selector editor
When you are designing your business solution, it is sometimes a good idea to include a selector even though it is not immediately going to be used. - Choosing components without using a selector
When used with time-based routing, the selector is, in essence, a scheduling tool. You use it to route an operation to a component for a specific period of time. To achieve the same results on a daily, or a periodic basis, you can use a combination of a business process and a rule set as described here. - Creating a selector
This topic provides instructions on how to create a selector. - Refactoring a selector
When you refactor parts of your selector, dependencies on those parts are automatically and universally updated throughout the product as a whole. - Generating documentation for your selector
If you need a high level synopsis of your selector, including how it interacts with other resources within the same project, you can create a customized report using the documentation generator. - Using a selector to delegate
The selector can also be used as a tool for general delegation as described in this topic. - Replacing an existing component with a selector
If you are making changes to an existing business integration solution, you may find it useful to replace an existing component with a selector. - Managing multi-operational interfaces
Sometimes a selector's component destination may not need to implement all of the operations in an interface, so here is a possible solution.
Related links
- Dynamically invoking a component using selectors (IBM Guided tour)
No comments:
Post a Comment