wood burning stoves*
The moose likes GWT and the fly likes GWT spring integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT spring integration" Watch "GWT spring integration" New topic

GWT spring integration

Rob Qas
Ranch Hand

Joined: Apr 10, 2006
Posts: 34
Dear Ranches,

am trying to integrate gwt with springframwork i search the internet and i found the following link


it work great with me until i tried to run the application in the host mode so i can debug my entire tiers (server and client side) but unfortunately the GWT shell do not give me the ability to play with web.xml so i cant configure my spring context using the DispatcherServlet..

so do anyone have any idea on how to integrate spring with GWT or how can i update the generated web.xml in the host mode so the spring context will load ??

Jossey Jacob

Joined: Jul 30, 2008
Posts: 4
Hi Razi,
I am also new to GWT.
But i think the web.xml is not generated every time we compile.
I was using GWT 1.5.

I had modified the generated web.xml and it worked.
But I am not sure, if some specific change would cause it to be re-generted.
The generated web.xml only contains a single servlet definition/mapping.
So there is no need to generate it every time. I guess.

Let me know whether you have already solved it.
And are you using the solution form that link to integrate with spring.


Cristian Popescu

Joined: Mar 12, 2009
Posts: 4

I'm new to GWT and I was trying to get a simple app that will use GWT+Spring+Maven. I was able to find a suitable example on the internet for GWT+Spring+Maven, that also work. THe issue is that when I'm trying to define new beans and inject them in the exsiting GWT ones, the DI doesn't work as expected. I am getting no errors though, just null values.

The example was taken from http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/. I had to tweak it a little bit to work properly. To that app I was trying to add a BO layer and a DAO layer.

Any suggestions how could I register&inject those beans (myObjectDAO and myObjectBO) into "quoteService"? "quoteService" bean is registered and injected properly in "quoteController". I do have the setters properly in place for the properties in the bean class, otherwise spring would complained.
Thank you.




wood burning stoves
subject: GWT spring integration
Similar Threads
google oauth from swing
Sending HTTP Request in GWT
Integrating GWT with Struts 2
Web framework
how can I integrate spring with gwt?