Using the BPEL Designer and Service Engine

Using a Database Query to Provide an Endpoint

Expanding on the last example, you can also have a BPEL service do a dynamic addressing invocation, with the address coming from a database.

You start with a composite application that is triggered by something such as a input file. You do not want to use the address that is directly assigned to the file, so you do a database query or database select for the address.

The composite application triggers the Database Binding Component to do a simple select from a table that contains addresses. The composite application takes the results from the database query and puts it into the BPEL Mapper and maps the query result to the variable where you normally put your dynamic SOAP address. The Mapper assigns this address to the partner link.