GUICE-GWT-RESTfulWeb Services

133 views
Skip to first unread message

Santosh

unread,
May 4, 2012, 2:14:44 AM5/4/12
to google-guice
We are using gwt platform as the UI framework with GIN. Service layer
is built using guice where all gwt service calls are handled through
RPC call using guice filter(Action Handler classes).

Every request from GWT goes via guice dispatch servlet module which
takes the action based on the requested service to appropriate action
handlers.
Can you please suggest me on best and fastest way to convert each of
these service action handlers to restful web services. Idea is to
remove the RPC mechanism and bring restful web service calls between
gwt platform and guice with json data format communication.
As of now all requests are coming to guice filter which internally
takes it to action handler(service implementation class) using guice
handler module.
Please provide your suggestions at the earliest. Let me know if any
additional inputs are needed.

Thanks in advance
Santosh

Chris

unread,
May 4, 2012, 12:06:02 PM5/4/12
to google-guice
Why don't you try JAX-RS with Guice? I had a similar requirement to
augment a GWT / Guice application with REST services and ended up
going with Jersey - which worked out really well for our purposes. In
our case injecting application service objects into REST classes was
very straight forward. Jersey will also marshal your DTOs to JSON.

SandMan

unread,
May 4, 2012, 5:10:57 PM5/4/12
to google...@googlegroups.com
We recently did this as well. I ended up picking JBoss Resteasy for our implementation but either of these frameworks (Jersey/RESTEasy) should do the trick. If you are using GWT-P, you just need to extend your 'action handlers' to become REST Service components. Let me know if you run into issues. I can provide samples.

Santosh

unread,
May 8, 2012, 3:29:31 AM5/8/12
to google-guice
Now we have decided to use Jersey for building restful webservices. As
jersey builds WS by annotating the POJO's, I am confused on how our
gwt-p action handlers gets converted to a restful WS which the gwt-p
client can invoke it. Technology of using guice, gwt and RestfulWS
was for the first time and hence more confusion on the needed
changes.
Can you please provide me a sample on the necessary changes?

Santosh Kumar

unread,
May 14, 2012, 12:53:45 AM5/14/12
to sandeep...@gmail.com, google-guice
Hi,

I am in urgent need of the below topic solution. As said earlier, I am new to GWT and Restful WS. 
Could not find how we can convert these guice Action Handler classes to Restful WS. 
Please provide me with a sample on how we can proceed with changes. 

Appreciate your positive reply.

Thanks
Santosh


--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.


Reply all
Reply to author
Forward
0 new messages