Petals-BC-SQL 1.2.X

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

Changes (18)

View Page History


h2. Service Unit Configuration

{center}{*}Configuration of a Service Unit to provide a service (JBI)*{center}

{table-plus}


|| Parameter || Description || Default || Required ||
| provides | Describe the JBI service that will be exposed into the JBI bus. Interface (QName), Service (QName) and Endpoint (String) attributes are required. | {center}\-{center} | {center}Yes{center} |
{include:0 CDK SU Provide Configuration}
\\
\\
{center}
{center*}Configuration of a Service Unit to provide a service (CDK)*{center}} (SQL)*{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. \\
Set it to 0 for an infinite timeout. | 0 | No |
| retrypolicy | This section defines a policy when attempting external transfer of message, before accepting the service as failed.
{note}Only for Binding Components.{note} | \- | No |
| retrypolicy - attempts | The number of transfer attempts. | \- | bound to {{retrypolicy}} |
| retrypolicy - delay | The delay in milliseconds between transfer attempts. | \- | bound to {{retrypolicy}} |
| exchange-properties | This sections defines the list of properties to set to the JBI exchange when processing a service. | \- | No |
| message-properties | This sections defines the list of properties to set to the JBI message when processing a service. | | No |
| validate-wsdl | Activate the validation of the WSDL when deploying a service unit. | true | No |
| WSDL | Path to the WSDL document describing services and operations exposed by the provided JBI endpoints defined in the SU. \\
The value of this parameter is : \\
* an URL
* a file relative to the root of the SU package \\
If not specified, a basic WSDL description is automaticaly provided by the CDK. | | No |
| forward-attachments \\ | Defines if attachment will be forwarded. \\ | false \\ | No \\ |
| forward-message-properties \\ | Defines if the message properties will be forwarded. | false \\ | No \\ |
| forward-security-subject \\ | Defines if the security subject will be forwarded. | false \\ | No \\ |
| exchange-property - org.ow2.petals.router.provider.noack | Check Petals documentation for further details. This property activates the bypass of acknowledgement messages destinated to this SU. Can be used for MEPs {{RobustInOnly}}, {{InOut}} and {{InOptionalOut}}. | \- | bound to {{retrypolicy}} |
| org.ow2.petals.transport.compress | {warning}To be used only in distributed setup of Petals ESB. Check Petals ESB documentation for further details.{warning} This property activates the compression of the message payload when set to {{true}}. | true | No |
{table-plus}












{petalslink}{include:0 CDK SU Provide Configuration}{petalslink}
\\
{center}{*}Configuration of a Service Unit to provide a service (SQL)*{center}

{table-plus}
|| 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 |
| url | The JDBC URL of the target database | {center}-{center} | {center}Yes{center} |
| driver | The JDBC Driver class name. The JDBC library must be accessible via a JBI Shared Library.\\
If not set, the driver is automatically resolved for: mysql,oracle,hsql,sqlserver,derby,postgresql,db2,sybase. | {center}automatic{center} | {center}No{center} |
| user | The database user. | {center}-{center} | {center}Yes{center} |
| password | The database password. | {center}-{center} | {center}Yes{center} |
| maxActive | The maximum number of active connections that can be allocated from the database connection pool at the same time.\\
Negative for no limit. | {center}8{center} | {center}No{center} |
| maxIdle | The maximum number of connections that can remain idle in the database connection pool, without extra ones being released.\\
Negative for no limit. | {center}8{center} | {center}No{center} |
| minIdle | The minimum number of connections that can remain idle in the the database connection pool, without extra ones being created.\\
Zero to create none. | {center}0{center} | {center}No{center} |
| maxWait | The maximum amount of milliseconds that the pool will wait for a connection to be returned before throwing an exception (when there are no available connections).\\
-1 to wait indefinitely. | {center}-1{center} | {center}No{center} |
| 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. | {center}-1{center} | {center}No{center} |
| metadata \\ | If true, When the 'select' operation is used, the response contains metadata on result elements(Row type,index...). | false \\ {center}false{center} | No \\ {center}No{center} |
{table-plus}






















h3. Service Unit descriptor










h3. Service Unit content




h1. Component Configuration
{note}Caution: the component requires at least a JDBC Shared Library. Please install first a valid Shared Library containing your database JDBC driver. Then you can configure your component by using PEtALS maven plugin with the goal jbi:configure or the PEtALS Ant task petals-configure-component.{note}



The following attributes can be set during the installation phase to configure the component, using the params element of the jbi-install-component ANT task:

{table-plus}

{table-plus}






|| {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 |

{table-plus}

{table-plus}
{petalslink}{include:0 CDK Component Configuration Table}{petalslink}