• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GWT spring integration

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Ranches,

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

http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/

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 ??

thanks,
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks.
Jossey.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

service-context.xml

spring-servlet.xml


web.xml
 
reply
    Bookmark Topic Watch Topic
  • New Topic