| Author |
GWT spring integration
|
razi alqasem
Ranch Hand
Joined: Apr 10, 2006
Posts: 31
|
|
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,
|
razi alqasem .<br />SCJP 1.5<br />SCWCD 1.4<br /> <br />j2ee developer <br />amman - jordan .
|
 |
Jossey Jacob
Greenhorn
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. Thanks. Jossey.
|
Jossey
|
 |
Cristian Popescu
Greenhorn
Joined: Mar 12, 2009
Posts: 4
|
|
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
|
-----
SCJP5, SCJD, SCWCD5
|
 |
 |
|
|
subject: GWT spring integration
|
|
|