jax-rs
How do I keep Glassfish from creating a new session for each request?
Glassfish 3.1.1 Jersey 1.8 I have the following stateless session bean exposed as a JAX-RS resource.VehicleResource is contained in a WAR, with the other EJBs in an EJB-JAR.The entire app is packaged[详细]
2023-03-31 03:39 分类:问答RESTful cross authentication
I have 2 RESTful services realized in JAX-RS (Jersey): \"A\" and \"B\". They are deployed on a separate application servers. \"A\" and \"B\" are both of mine.[详细]
2023-03-30 10:47 分类:问答Why there are "too many connections" in JPA?
This is my code (it\'s JAX-RS + JPA): @Path(\"/\") public class Foo { private static final EntityManagerFactory FACTORY =[详细]
2023-03-30 04:01 分类:问答How to choose between JAX-RS and JAX-WS web services implementation?
In what contexts is it better to use one over the other and why? Thanks开发者_Python百科!JAX-WS is an API for SOAP-based WS, and using it for RESTful WebServices is not the best way to go about thing[详细]
2023-03-28 20:13 分类:问答resteasy-cdi - getting "Duplicate context initialization parameter resteasy.injector.factory" error
I\'m needing CDI functionality on a rest application in which I\'m using RESTEASY. So I followed the manual\'s instruction to setup resteasy-cdi module on my app, that runs on JBoss AS7.[详细]
2023-03-28 10:10 分类:问答Can Jersey Client automatically encode POJO entities into application/x-www-form-urlencoded, or do I need to write custom MessageBodyWriter?
I am calling a RESTful web service using Jersey\'s Client class along with Jackson to handle serialization to/from JSON. I am also using the JSONConfiguration.FEATURE_POJO_MAPPING setting to have Jack[详细]
2023-03-27 07:44 分类:问答How to forward from a JAX-RS service to JSP?
JBoss Version: 4.2.3GA. This works in apache tomcat 6.0. In JBoss, I had to add the following setting: -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=false to get the forward to work, but now when I[详细]
2023-03-27 00:20 分类:问答Can I implement Hibernate (JSR 303) method validation with apache wink (JAX/RS)
I am currently investigating using the hibernate validators support for Method validation using JSR 303 annotations. An initial attempt tried to wrap the resources with a proxy (generated using cglib)[详细]
2023-03-25 19:27 分类:问答How to set HTTP header in RESTEasy client framework?
RESTEasy (a JAX-RS implementation) has a nice client framework, eg: RegisterBuiltin.register(ResteasyProviderFactory.getInstance());[详细]
2023-03-25 04:58 分类:问答Problem with differentiation of pathparams
I have problem with Jax-rs @Path variable, I need to differentiate the following two pathparams @Path({domain}/{id})[详细]
2023-03-24 16:35 分类:问答