java - Resources linking in Dropwizard / JAX-RS 1.x (JSR 311) -


There is a problem with the resources I add to the drawer: with JX-RS 2.0 we magically javax.ws. Rs.core.link category with which this creator can do almost all the work for you. Unfortunately, Dropwizard 0.7.1 is not dependent on the new 2.0 API, but in the old javax.ws.rs:jsr311-api API, which can not handle the linking. Or can it? I want to solve this problem with Dropwizard. Maybe I have two ways to do this and I do not know any of them is valid:

  • Option 1 : I saw dependency on my project JX-RS 2.0! I have found the link but the problem is that it does not work well with the old implementation of the jersey - I got the abstractmethodException from the urlblower, which was apparently changed from version 1 to 2. So the answer is to supply new implementation Can I do this? If yes, how can I do this? Do new implementations work well with the dropwizard?

  • Option 2 : I can simply add some other resources to the dropwizard linking. Is there any other linking standard / library? I can not use the jersey-declarative-linking because it does mixing the presentations with resources (in the linking representation), and I want my representation to be something about the layer of resources do not know. So what is another linking standard for the drawer, jersey and jx-rs1?

I got an answer to your question.

Option 2 was a dead end

The option was also difficult to do one, but unfortunately yesterday the dropwizard version released 0.8.0-RC1 of its framework, Which depends on Jersey 2, which is the implementation of JX-RS 2.0. So you want to keep the hetaus in the dropiezer for everyone, Version 0.8.0 is for you.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -