[ 
https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erik BI updated SHINDIG-1814:
-----------------------------

    Attachment: UriToString.patch
    
> Unserializable cache keys
> -------------------------
>
>                 Key: SHINDIG-1814
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1814
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Java
>    Affects Versions: 2.5.0-beta2
>            Reporter: Erik BI
>              Labels: patch
>             Fix For: 2.5.0
>
>         Attachments: UriToString.patch, UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri 
> object as key, but for some cache implementation, for example, DynaCache, it 
> requires the key to be serializable, which Uri is not. 
> There are two solution for this, one, make Uri serializable; 2. using a 
> 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri 
> parsers so you would need to be VERY careful to get this right.  It would be 
> trivial to use a string key instead.

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


Reply via email to