You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/04/20 19:27:06 UTC

[jira] [Created] (CAMEL-3887) cxf camel transport converts to byte[] unnecessarily

cxf camel transport converts to byte[] unnecessarily
----------------------------------------------------

                 Key: CAMEL-3887
                 URL: https://issues.apache.org/jira/browse/CAMEL-3887
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxf
            Reporter: Daniel Kulp
         Attachments: cxf-streams.patch


The CamelConduit and CamelDestination use the CXF CachedOutputStream to buffer messages which results in large files being buffered on disk and such.  However, it immediately calls getBytes() to get the byte[] which defeats the entire purpose.

Changing to call getInputStream works fine as Camel can convert that later if needed and can help performance in some cases.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-3887) cxf camel transport converts to byte[] unnecessarily

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea resolved CAMEL-3887.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8.0

Resolved in r1095514. Thanks to Dan Kulp for the patch. Your feedback on improving camel-cxf is highly appreciated.

> cxf camel transport converts to byte[] unnecessarily
> ----------------------------------------------------
>
>                 Key: CAMEL-3887
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3887
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Daniel Kulp
>             Fix For: 2.8.0
>
>         Attachments: cxf-streams.patch
>
>
> The CamelConduit and CamelDestination use the CXF CachedOutputStream to buffer messages which results in large files being buffered on disk and such.  However, it immediately calls getBytes() to get the byte[] which defeats the entire purpose.
> Changing to call getInputStream works fine as Camel can convert that later if needed and can help performance in some cases.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-3887) cxf camel transport converts to byte[] unnecessarily

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CAMEL-3887:
-------------------------------

    Attachment: cxf-streams.patch

> cxf camel transport converts to byte[] unnecessarily
> ----------------------------------------------------
>
>                 Key: CAMEL-3887
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3887
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Daniel Kulp
>         Attachments: cxf-streams.patch
>
>
> The CamelConduit and CamelDestination use the CXF CachedOutputStream to buffer messages which results in large files being buffered on disk and such.  However, it immediately calls getBytes() to get the byte[] which defeats the entire purpose.
> Changing to call getInputStream works fine as Camel can convert that later if needed and can help performance in some cases.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira