[CONTROLLER-280] JAX-RS applications should use whiteboard pattern instead of WAB Created: 07/Apr/14 Updated: 25/Jul/23 Resolved: 22/Apr/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | config |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Tomas Olvecky | Assignee: | Tomas Olvecky |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| Comments |
| Comment by Giovanni Meo [ 07/Apr/14 ] |
|
Tomas, The WAB specification uses the whiteboard pattern internally. In fact all the WAB modules register a service of type javax.servlet. So what is exactly this enhancement for? Thanks, |
| Comment by Tomas Olvecky [ 07/Apr/14 ] |
|
WAB imposes additional requirements on underlying infrastructure, namely a fully compliant servlet container. For things like restconf we want to experiment with switching to netty for performance reasons. This should be significantly easier if we don't implement whole servlet specification. |
| Comment by Tomas Olvecky [ 07/Apr/14 ] |
|
I failed to explain that I want to register javax.ws.rs.core.Application service in restconf's Activator |
| Comment by Giovanni Meo [ 07/Apr/14 ] |
|
(In reply to Tomas Olvecky from comment #3) Thanks, i was commenting exactly asking this one. That sounds reasonable, but be aware that if you do this way and define JAXB annotation on inherited classes the JAXB context calculated by JAXRS may not consider all the subclasses, for that one we made a specific enhancement in the controller implemented by the bundlescanner and bundlescanner.implementation. Just FYI. Not sure what is your use case but be aware of it. (In reply to Tomas Olvecky from comment #2) This is not true, you can register and unregister WAB dynamically you can try it with existing northbounds modules. > 1.specify context under which web app will be available (and we have a use This can be relocated depending on the servlet container used. > 2.provide a custom error handling if request comes before dependent services As long as it's restconf i'm fine. Thanks, > Tomas |
| Comment by Tomas Olvecky [ 22/Apr/14 ] |
|
Thanks for response, (In reply to Giovanni Meo from comment #4) Not really, it is bound with bundle lifecycle, which services are not. > I have decided to wontwix it now, it is mainly a research that would allow optimizing away servlet container and using netty for JAX-RS directly. This turns out to be more complicated as I imagined and is not a priority for now. |