
Working with targets
Targets provide additional flexibility by allowing you to modify processing by changing the target configured for a reference.
A component can call a component in another module to minimize the time and cost of building an application. Targets provide additional flexibility: to allow your installed applications to benefit from advances in processing or other changes, you can use the administrative console to change the endpoint of a cross-module invocation, without rewriting or redeploying the application.
To take advantage of the flexibility provided, you must understand how the system names the targets. The link from the calling module must connect to the correct target.
Target names
Target
names are derived from how the calling component invokes the target.
The names have the following format:
- Invocation type
- Name format
- Synchronous
- A name that follows the Java™ Naming
and Directory Interface (JNDI) format, for example:
folder/export/fullpath_to_target/target_component_name - Asynchronous
- A name with the format
folder/calling_component_name/ full_path_to_target_component/target_component_name - Multiple destinations
- This name is the same as an asynchronous invocation but the target sends a message to multiple destination components.