[
https://issues.apache.org/jira/browse/SHINDIG-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Brown closed SHINDIG-385.
-------------------------------
Resolution: Fixed
Applied a fix. Thanks for pointing this one out!
> MessageBundle-Caching doesn't work in GadgetRenderingTask
> ---------------------------------------------------------
>
> Key: SHINDIG-385
> URL: https://issues.apache.org/jira/browse/SHINDIG-385
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (Java)
> Environment: every
> Reporter: christof kaleschke
>
> As the BasicMessageBundleFactory is not configured to be a singleton in the
> DefaultGuiceModule, every GadgetRenderingTask (returned by the provider in
> the GadgetRenderingServlet) gets a new instance of an
> BasicMessageBundleFactory. That means that when the
> GadgetRenderingTask.outputHtmlGadget() method calls
> messageBundleFactory.getBundle() the MessageBundle-Cache of this
> messageBundleFactory instance is always empty and the message bundle is
> fetched via a HTTP request.
> As far as I can see the BasicMessageBundleFactory (and the BasicHttpFetcher)
> is multithreadable. So would it be a solution to configure
> BasicMessageBundleFactory as a singleton in DefaultGuiceModule?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.