concept query in category mule

appears as: queries, query, query
Mule in Action, Second Edition

This is an excerpt from Manning's book Mule in Action, Second Edition.

In this section, we’ll start off by looking at the JDBC transport. First you’ll see how to use a JDBC inbound endpoint to perform queries. Then we’ll take a look at using JDBC outbound endpoints to perform insertions. We’ll then take a look at MongoDB: a document-oriented, NoSQL database.

Table 3.7. Configuring the JDBC transport’s dataSource reference, pollingFrequency, and queryKey

Property

Type

Target

Required?

Description

dataSource-ref String Connector Yes The JNDI or bean reference of the dataSource
pollingFrequency long Connector, inbound endpoint No How often the query is executed
queryKey String Connector, inbound endpoint, outbound endpoint No Specify the query to use (see how to define queries ahead)

You’ll use the JDBC inbound endpoint to perform queries against a database. This will generate data you can pass to components and outbound endpoints. Let’s see how this works.