Petals-BC-SQL 1.1.1

compared with
Version 8 by Roland Naudin
on Oct 11, 2010 14:59.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (23)

View Page History
{note}The SQL component executes SQL instructions, limited to the Data Manipulation Language, using JDBC.
It acts only as a service provider.{note}

{section}
{column}

h1. Features
{petalslink:author=llacote|type= FIXME SECTION A RELIRE ET COMPLETER}{petalslink}
The SQL component is a Binding Component (BC) which supports SQL instructions in Data Manipulation Language, database connectivity through the Java Data Base Connectivity API (JDBC).

This component provides a set of X operations:

These operations are described in an embedded WSDL.
The component supports SQL instructions, restraint to Data Manipulation Language.
The SQL instructions can be invoked by using the proposed operations
{info}All attachment are processed by using XOP rules.(XML-binary Optimized Packaging : [http://www.w3.org/TR/xop10/] ){info}

{column}
{column:width=25%}

h3. Execute Operation

When the {{execute}} operation is set on the incoming message exchange, the component performs the SQL instructions contained in the IN message. If the execution returns information (an SQL SELECT for example), the OUT message contains the SQL ResultSet.
{info}If you want to see extra information on the response, you can set the show-metadata attribute to true. The response will contains row index, column name and type.{info}

{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}

|| {color:#333333}Parameter{color} || {color:#333333}Description{color}\\ || {color:#333333}Default{color}\\ || {color:#333333}Required{color}\\ ||
| provides | Describe the JBI service that will be exposed into the JBI bus. Interface (QName), Service (QName) and Endpoint (String) attributes are required. | \- | Yes |
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}

{table-plus}



|| {color:#333333}Parameter{color} || {color:#333333}Description{color}\\ || {color:#333333}Default{color}\\ || {color:#333333}Required{color}\\ ||
| timeout | Timeout in milliseconds of a synchronous send. This parameter is used by the method {{sendSync}} (Exchange exchange) proposes by the CDK {{Listeners}} classes. \\



|| Parameter \\ || Description || Default value || Required ||
| url \\ | The JDBC URL of the targeted database \\ | \- \\ | Yes \\ |
| driver | The JDBC Driver className. The JDBC library has to be loaded with a SharedLibrary. It is automatically resolved for: mysql,oracle,hsql,sqlserver,derby,postgresql,db2,sybase (according to the jdbc url). | \- \\ | No \\ |
| user \\ | The database user \\ | \- \\ | Yes \\ |
| password \\ | The database password. \\ | \- \\ | Yes \\ |
| maxActive \\ | The maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit. | 8 \\ | No |
| maxIdle \\ | The maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit. | 8 \\ | No |
| minIdle \\ | The minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none. | 0 \\ | No |
| maxWait \\ | The maximum amount of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, \-1 to wait indefinitely. | \-1 \\ | No |
| timeBetweenEvictionRunsMillis \\ | The number of milliseconds to sleep between runs of the idle object evictor thread. When non-positive, no idle object evictor thread will be run. | \-1 \\ | No |
| metadata \\ | If true, When the 'select' operation is used, the response contains metadata on result elements(Row type,index...). | false \\ | No \\ |
{table-plus}

{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;",style="text-align:center;"}


|| {color:#333333}Parameter{color} || {color:#333333}Description{color} || {color:#333333}Default{color} || {color:#333333}Required{color} || {color:#333333}Required{color} ||
| acceptor-pool-size | The size of the thread pool used to accept Message Exchanges from the NMR. Once a message is accepted, its processing is delegated to the processor pool thread. | 3 | Yes | Runtime |