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

Rupert Westenthaler updated STANBOL-352:
----------------------------------------

    Assignee: Reto Bachmann-Gmür

> make stanbol web services (root resource classes) more portable
> ---------------------------------------------------------------
>
>                 Key: STANBOL-352
>                 URL: https://issues.apache.org/jira/browse/STANBOL-352
>             Project: Stanbol
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> Despite using the jax-rs (jsr 311) standard stanbol web components aren't 
> very portable. The components depend on jersey mostly for producing html 
> representation (using freemarker) furthermore they user the ServletContext to 
> access osgi services (while this should work with other servlet based jax-rs 
> implementation the standard osgi/osgi-ds mechanism should be used). There are 
> also some apparent jersey dependencies that in fact aren't, for instance 
> org.apache.stanbol.entityhub.jersey.utils.JerseyUtils doesn't depend on 
> jersey.
> To improve portability I suggest to:
> - let all root resources be osgi-ds components and have their dependencies 
> injected
> And either:
> - extract Viewable and the respective MessageBodyWriter from Jersey to a 
> separate bundle so that they can be used on any compliant jax-rs 
> implementation
> - separate rest interfaces that do not need rendering from the ui produced 
> using freemarker. This would allow to at least run the REST-endpoint for 
> machines on other platform.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to