JAX-RS 2.0 jersey ready for project to be put into production in April-May? - jersey

I am building a RESTful web application in which I am interested to use asynchronous functionality and filtering. The application needs to be in production around April/May. Is it a good idea to start working on the available options for JAX-RS 2.0 Jersey since I cannot utilize this functionality in JAX-RS 1.0. If not then I might have to look into other options like Play Framework (which I am currently evaluating). I have seen that Resteasy 2.3.5 also has the required functionality but I was hoping to use the proper JAX-RS 2.0 implementation.
Thank you.

if your app server is jboss 7.x I recomend you RESTEasy, Jboss people is responsible for RESTEasy and it's integrate with JBoss 7.x, the problem with RESTEasy and Jersey is security, please read about OAuth before you choose something, security is important, please implement this first, no only read, implement it

Related

Will Spring Boot support WAR deployment of Spring Webflux applications in the future?

I know that Spring Boot, in contrast to Spring Framework, does not support WAR deployment for Spring WebFlux applications. My question is simple: will it ever in the future?
My use case is this: we have a lot of customers that still live in the traditional "we deploy everything on application server X" world. So although we would like to push standalone JARs, they are not ready (yet). We heavily use Spring Boot, and would really like to continue to do so, so abandoning that is not an option.
We are building reactive applications and would like to use Spring WebFlux for that, but we still need to deploy to application servers, so that is not an option. In the meantime we avoid Spring WebFlux and simply use Controllers, which works, but is not as elegant. Hence my question.
There are no plans to support Spring WebFlux with war deployments. However, you can use reactive return types, Reactor's Mono and Flux and those from RxJava, with Spring MVC packaged and deployed as war. That will allow you to build an entire reactive pipeline as you would with WebFlux, but deployed to an application server. It doesn't give you all of the benefits of full-blown reactive (no event loop-based concurrency, for example), but it can be a good middle ground for those in your situation.

why we use jersey with spring? What are the benefits?

I want to know that why we use jersey with spring and what are the benefits of using it.
I have searched on google but not getting proper answer so i am asking this question here.Sorry because i know my question is old but i am very confused now.
Please suggest me the example of jersey with spring and hibernate.
Thanx in advance.
I use Jersey2 with Spring in one of my projects and in the other Spring MVC4. The advantage of Jersey is its simplicity. If you are creating only RESTful Web services - use Jersey, if you have to generate also some web pages for users, consider to use Spring MVC.
Additionally, I develop my applications on Google Cloud, so the warm up time is very important (if there is a traffic spike, many instances have to wake up in the background to be ready for incoming requests) - according to my tests Jersey is a bit faster than MVC.
Here you have an example of complete configuration:
Integrating Jersey 2 and Spring with Java Based Configuration

Removing JAX-RS feature from Websphere Application Server 8.5

I have created a rest api using jersey 2.10 framework. The application is deployed on Websphere application server 8.5. Since websphere comes bundled with jax-rs 1 implementation, I configured shared library to use jax-rs 2 jar files. My company policy does not allow configuration of shared libraries and I am being asked to downgrade to jax-rs 1 implementation. And that is the last thing I want to do.
Is there a way to disable or remove jax-rs 1 from websphere 8.5. JAX-RS is included under web 2.0 features in websphere and is it possible to remove/disable web2.0 feature in the server.
The only way to use Jersey 2.10 framework is via shared library as discussed JAX-RS Jersey 2.10 support in WebSphere 8. You could use WebSphere Liberty, where you can disable jax-rs 1.1 or WebSphere Liberty Beta, which supports JAX-RS 2.0. But with your company restrictions, it probably will be not possible also.
So for the future, you should know about benefits and limitations of the platform that you are planing to deploy and use its provided features instead of some third party, especially if you have some other external limitations.

Advantage of Spring Rest Web Services over Servlet

What are the advantages of using Spring Rest Web Services over Core Servlet ?
As we know Spring Rest Web Services also use Servlet internally.
REST is a special kind of web service. Whether this is the right thing for your application varies. If it is you should use a framework/library that is designed for REST to make coding simpler. You might also want to have a look at JAX-RS.
If you need a non-REST web service Servlet may be an option, but there are other options, too.
REST is not a type of Web Service - it is an Architecture and specification - JAX-RS. Spring has its own REST implementation libraries primarily based on its MVC controller. I would recommend you not to go for Spring Rest Web Services until you have any Spring specific requirement (Though I cant think of any such requirement which cant be solved by other light wait JAX-RS implementations). Jersey is the most light weight JAX-RS reference implementation by Sun/Oracle which, has support for Spring as well which, can be plugged in on requirement basis.

Soap client framework

I have web application on Spring MVC and looking for SOAP consumer - frameworks to be used with Spring MVC. The web app is only the consumer and doesn't host any web service.
Options I am looking for SOAP client are :
1. JAX-WS
2. Spring MVC & Spring-WS
3. Apache Axis or CXF
4. Spring Integration or Camel. Can these be used for consumption of
services too? Won't that be overhead?
What do you suggest? Please recommend the best option if also not in the above list.
Thanks in advance.
Look at this excellent post about this subject.
Which framework is better CXF or Spring-WS?
My advise based on the fact that you only have to develop one client, is to consider making your choice based on your context to optimize your productivity and avoid adding tones of layer and libs in your app:
Pure Java EE app or already using Spring APP
Your current Application Server : Jboss for example already provide a CXF implementation that is very suggested to use
Service providers "age": I have met some problems in calling AS400 or old IBM system webservices. Any client was not working.
Your IDE and Plugins : for example, if you have eclipse, Axis/CXF plugins are very interesting.
Concerning Camel, it is interesting if you have different source and destination like HTTP to JMS.
For Camel, read this post:
What exactly is Apache Camel?

Resources