[ 
http://jira.amdatu.org/jira/browse/AMDATU-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10627#comment-10627
 ] 

Ivo Ladage - van Doorn commented on AMDATU-200:
-----------------------------------------------

@Angelo: I noticed that you committed a patch for this issue on the trunk. The 
fix is to introduce a new base class 'ServiceDependentActivator' which ensures 
that the Activator is not started before the JaxRsSpi service is available, 
which is made available by the Wink registration service after setting the 
proper RuntimeDelegate. Now this approach usually works, since the class that 
instantiates CacheControl is a service and is thus not instantiated before the 
Activator is started. However if I would instantiate CacheControl in the 
Activator, the same error would appear. So even with this developer unfriendly 
approach, there is no 100% guarantee that this always works. Furthermore, the 
developer should not forget to us this special 'ServiceDependentActivator' as 
base class of its Activator and to define the dependency with the JaxRsSpi 
service in this custom activator.

For that reason I don't think this is the right way to go; there is still no 
guarantee that the problem doesn't appear; we leave it up to the developer to 
add specific code to workaround the issue, which in the end is not very likely 
to occur.


> Add HTTP Caching headers to REST services
> -----------------------------------------
>
>                 Key: AMDATU-200
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-200
>             Project: Amdatu
>          Issue Type: Bug
>          Components: Amdatu Web
>    Affects Versions: 0.0.6
>            Reporter: Ivo Ladage - van Doorn
>            Assignee: Ivo Ladage - van Doorn
>             Fix For: 0.1.0
>
>
> The current gadgets totally lack HTTP caching headers since JAX-RS does not 
> provide any default caching headers. This should be added to all gadgets out 
> there.
> The missing caching headers is most probably the reason why gadgets act so 
> strange in IE8.

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

        

Reply via email to