|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (12)
View Page History{column}
h1. Features
The POJO (Plain Old Java Object) component is a Service Engine (SE) that provides services that you can develop directly in Java code.
It can be useful to refactor your legacy code as Business logic with this component, or build simple hand made services.
Each POJO service is represented by a {{Provides}} section in a POJO Service Unit.
This component do not support the CDK {{Consumes}} mode directly. However, it can consume 'sub-services' during the providing of a service, eg an hand made service of orchestration.
This component is based on the PEtALS CDK.
It can be useful to refactor your legacy code as Business logic with this component, or build simple hand made services.
Each POJO service is represented by a {{Provides}} section in a POJO Service Unit.
This component do not support the CDK {{Consumes}} mode directly. However, it can consume 'sub-services' during the providing of a service, eg an hand made service of orchestration.
This component is based on the PEtALS CDK.
h1. Exposing a Java class as a POJO service (Provides mode)
{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 |
| 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}
{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. \\
| timeout | Timeout in milliseconds of a synchronous send. This parameter is used by the method {{sendSync}} (Exchange exchange) proposes by the CDK {{Listeners}} classes. \\
{table-plus}
{petalslink}{include:0 CDK SU Provide Configuration}{petalslink}
\\
\\
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}
{table-plus}
|| Parameter \\ || Description || Default value || Required ||
| class-name \\ | The name of the Java class to expose as a service. \\ | \- \\ | Yes \\ |
| class-name \\ | The name of the Java class to expose as a service. \\ | \- \\ | Yes \\ |
|| {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 |
| 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 |
{note}Only for Binding Components{note} | \- | No | Component |
| jbi-listener-class-name | Qualified name of the class extending *AbstractJBIListener* | \- | Yes | Component |
| jbi-listener-class-name | Qualified name of the class extending *AbstractJBIListener* | \- | Yes | Component |
| performance-notifications | Enable the performance notifications in the component. The CDK proposes to a performance notification feature to the component implementor. If you enable this feature, you must use the related \\
method accessible in the {{AbstractComponent}} class. | \- | No | Runtime |
| performance-step | When the performance notification feature is enabled, it is possible to define a step on the notifications. When there is an heavy message traffic, it is recommanded to increase this step to \\
avoid performance disturbance. | \- | No | Runtime |
{table-plus}
{petalslink}{include:0 CDK Component Configuration Table}{petalslink}
{petalslink}{include:0 CDK Component Configuration Table}{petalslink}