The document discusses the Mule Database connector which allows connecting to relational databases using JDBC and performing SQL operations. It describes the configuration wizard for the Database connector including the general, advanced, reconnection, and notes tabs. Key properties on each tab are outlined such as display name, connector configuration, connection timeout, pool size, reconnection strategy, and transactional action.
2. MULE DATABASE CONNECTOR
The Database connector allows you to connect with almost any Java
Database Connectivity (JDBC) relational database using a single interface
for every case. The Database connector allows you to run diverse SQL
operations on your database, including Select, Insert, Update, Delete, and
even Stored Procedures.
3. DATABASE CONNECTOR – CONFIGURATION
WIZARD(GENERAL TAB)
• Following are the properties in general tab –
• Display Name – The name of the connector to be displayed in Mule flow.
• Connector Configuration – Reference of the connector configuration contain all
information for database connection.
• Operation – Type of operation to be performed on database.
4. DATABASE CONNECTOR – CONNECTOR
CONFIGURATION WIZARD(GENERIC
DATABASE)(GENERAL TAB)
• Following are properties on general tab –
• Name – Name of the connector configuration.
• Configuration Via spring-bean – Use this radio button if to use database config
via spring bean.
• Database URL – Use this radio button to directly give database URL and driver
class name.
5. DATABASE CONNECTOR – CONNECTOR
CONFIGURATION WIZARD(GENERIC
DATABASE)(ADVANCED TAB)
• Connection Timeout – Maximum time for invalidating the
request.
• Max pool size – Maximum pool size for creating the
database connections.
• Min pool size – Minimum number of connections in
connection pool.
• Acquire Increment – Determines how many connections
at a time will try to acquire when the pool is exhausted.
• Prepared Statement Cache Size – Determines how many
statements are cached per pooled connection.
• Max Wait Millis – Maximum time for waiting if acquiring
a connection fails.
6. DATABASE CONNECTOR – CONNECTOR
CONFIGURATION WIZARD(GENERIC
DATABASE)(RECONNECTION TAB)
• Following are properties on reconnection tab –
• Do not use a Reconnection Strategy – This is the default radio button which
specifies do not try to reconnect if there is error connecting to the web
address URL.
• Standard Reconnection – Use this radio button to enable a standard
reconnection strategy.
• Frequency (ms) – The frequency time in milliseconds after which the File
connector will try to access the web address URL.
• Reconnect Attempts – This tells how many times the File connector will try
to connect to web address URL.
• Reconnector Forever – Check this box if there is need to make File
connector connect to web address URL until there is a successful
connection with it.
• Custom Reconnection – Use this radio button to create a custom Reconnection
strategy.
• Class – The java class which will come in action after a failed connection
attempt.
• Run the connection in a separated thread – Check this box if there is need
to use this custom reconnection operation in separate thread.
7. DATABASE CONNECTOR – CONFIGURATION
WIZARD(ADVANCED TAB)
• Following are the properties on Advanced tab –
• Transactional Action – The type of action transaction should take after
execution.
• Query Timeout – Indicates the minimum time before the JDBC driver tries to
cancel a running statement.
• Source – Defines from where to get the parameters.
• Target – The enricher expression used to enrich the message payload.