I am using resteasy, netty (NettyJaxrsServer) and guice 3.0.
I need to inject dependencies in resource classes.
Anyone can help me with it?
Thanks!
--
Managing the Performance of Cloud-Based Applications
Take advantage of
Hi,
I have two REST interfaces in my web application. say RestA and RestB.
RestB needs to invoke a method from RestA within same container from one of
its method.
How do I call this? If I try to create ProxyFactory, I need to give URI.
Is there a way to just call this resource without using
John,
Now it works! :)
ResteasyDeployment deployment = new ResteasyDeployment();
deployment.getResourceFactories().add(
new GuiceResourceFactory(injector.getProvider(App.class),
App.class));
App.class is my resource.
Thank you for your help!!
--
Pedro
On Thu, Feb 6, 2014 at
Hi Leena,
You can use standard RESTEasy client API to call your RestB within RestA.
I wonder the reason why you don’t want to expose URI in your call. Do you want
to bypass all the network overhead? If so you can consider to refactor your
RestB and put the common logics into separate APIs
Hi Anthony,
Are you using Spring with WildFly? If so, I have two examples on it:
https://github.com/liweinan/resteasy-spring-eap-integration
If you are using RESTEasy Spring as standalone, then RESTEasy has provided an
example: