You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/01/07 14:53:16 UTC

[jira] Created: (CAMEL-2343) camel-cache - Should check whether existing body is Serializable and store it as is

camel-cache - Should check whether existing body is Serializable and store it as is
-----------------------------------------------------------------------------------

                 Key: CAMEL-2343
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2343
             Project: Apache Camel
          Issue Type: Improvement
    Affects Versions: 2.1.0
            Reporter: Claus Ibsen
            Assignee: Ashwin Karpe
             Fix For: Future


The camel-cache forces the body to be stored in the cache as a byte[].

It should honor existing bodies which is already Serializable and thus already ready to be cached out of the box.

And it should use the Camel type converters to detect this. Also for converting to byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2343) camel-cache - Should check whether existing body is Serializable and store it as is

Posted by "Ashwin Karpe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56816#action_56816 ] 

Ashwin Karpe commented on CAMEL-2343:
-------------------------------------

Sure Claus,

I will work on this right away

Cheers,

Ashwin...

> camel-cache - Should check whether existing body is Serializable and store it as is
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-2343
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2343
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Ashwin Karpe
>             Fix For: Future
>
>
> The camel-cache forces the body to be stored in the cache as a byte[].
> It should honor existing bodies which is already Serializable and thus already ready to be cached out of the box.
> And it should use the Camel type converters to detect this. Also for converting to byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2343) camel-cache - Should check whether existing body is Serializable and store it as is

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

Claus Ibsen resolved CAMEL-2343.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   2.2.0

Thanks Ashwin for the patch.

I polished the logger a bit as well.

trunk: 898273.

> camel-cache - Should check whether existing body is Serializable and store it as is
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-2343
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2343
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Ashwin Karpe
>             Fix For: 2.2.0
>
>         Attachments: camel-cache-20100111.patch, camel-cache20100111.zip
>
>
> The camel-cache forces the body to be stored in the cache as a byte[].
> It should honor existing bodies which is already Serializable and thus already ready to be cached out of the box.
> And it should use the Camel type converters to detect this. Also for converting to byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2343) camel-cache - Should check whether existing body is Serializable and store it as is

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56812#action_56812 ] 

Claus Ibsen commented on CAMEL-2343:
------------------------------------

See nabble
http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

> camel-cache - Should check whether existing body is Serializable and store it as is
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-2343
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2343
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Ashwin Karpe
>             Fix For: Future
>
>
> The camel-cache forces the body to be stored in the cache as a byte[].
> It should honor existing bodies which is already Serializable and thus already ready to be cached out of the box.
> And it should use the Camel type converters to detect this. Also for converting to byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2343) camel-cache - Should check whether existing body is Serializable and store it as is

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

Ashwin Karpe updated CAMEL-2343:
--------------------------------

    Attachment: camel-cache20100111.zip
                camel-cache-20100111.patch

Hi Claus,

Please find attached a patch and zip file that adds support for directly storing and retrieving serialized objects while continuing to use byte[] to support non-serializable data.

I have also added tests to the CacheProducer and CacheConsumer to prove that the functionality works without side-effects to the earlier functionality.

Cheers,

Ashwin...

> camel-cache - Should check whether existing body is Serializable and store it as is
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-2343
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2343
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Ashwin Karpe
>             Fix For: Future
>
>         Attachments: camel-cache-20100111.patch, camel-cache20100111.zip
>
>
> The camel-cache forces the body to be stored in the cache as a byte[].
> It should honor existing bodies which is already Serializable and thus already ready to be cached out of the box.
> And it should use the Camel type converters to detect this. Also for converting to byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.