You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/06/04 20:02:22 UTC

[jira] [Commented] (CAMEL-5198) Implement connection pooling in jt400 component

    [ https://issues.apache.org/jira/browse/CAMEL-5198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288750#comment-13288750 ] 

Claus Ibsen commented on CAMEL-5198:
------------------------------------

A producer should generally be thread safe to allow concurrency, if not you would need to mark it as so, so Camel knows this. For example the ftp producer has similar issue, as the ftp client is not thread safe.
                
> Implement connection pooling in jt400 component
> -----------------------------------------------
>
>                 Key: CAMEL-5198
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5198
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.9.2
>         Environment: i5/OS servers
>            Reporter: João Loureiro
>              Labels: camel-jt400, jt400
>             Fix For: 2.10.0
>
>         Attachments: patch_v2.txt
>
>
> Instead of eagerly obtaining a new connection to the AS/400 system, Endpoint instances request one from a connection pool. Users can specify that their own connection pool be used, or let Camel provide one (default behaviour).
> Functionally speaking, this feature does not introduce any change (it can be viewed as an optimization in advanced usage scenarios).
> Thread safety: the producers/consumers, which were inherently thread-safe, became not thread-safe in regard to their start/stop lifecycle.
> The following text can be used as the documentation for the new URI option:
> *Name*
> {{connectionPool}}
> *Default value*
> {{AS400ConnectionPool}} instance
> *Description*
> *Camel 2.10:* Reference to an {{com.ibm.as400.access.AS400ConnectionPool}} instance in the Registry. This is used for obtaining connections to the AS/400 system. The look up notation ('#' character) should be used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira