[Resteasy-users] NettyJaxrsServer and Guice 3.0

2014-02-06 Thread Pedro Guilherme Rafael
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

[Resteasy-users] Ho to call a method of another REST interface from a given interface within same container?

2014-02-06 Thread Cassa L
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

Re: [Resteasy-users] NettyJaxrsServer and Guice 3.0

2014-02-06 Thread Pedro Guilherme Rafael
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

Re: [Resteasy-users] Ho to call a method of another REST interface from a given interface within same container?

2014-02-06 Thread Weinan Li
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

Re: [Resteasy-users] Scan vs Spring

2014-02-06 Thread Weinan Li
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: