Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SpringMVC and SmartGWT

    Ok, I realize this may not be the best place for this question, so I apologize in advance.

    In the past, I have been able to create combined SpringMVC, and SmartGWT with RESTful web-services with JSON. This one Eclipse project and application worked well when it was all combied into one project.

    Now, I have a back-end that does all the DAO this works well, and is thoroughly unit tested. This contains the Services as well as he DAO's.

    There is another project that just does RESTful web-services. This is the first time I have separated these out. So, this project is a jar file, and has all the controllers in it.

    When I created my SmartGWT/maven app, the UI works great until I created a datasource that calls these web-services. I keep getting a 404 error when I try to call the web-services URL.

    I think there is 1 of two ways to solve this:

    A) I include the applicationContext.xml and the springmvc-servlet.xml into the SmartGWT application. I would then updat the applicationContext.xml to include all the Spring beans, etc.
    In this case, the pom.xml would need to include all the Spring jars. Hence, this SmartGWT application would be using RESTful web-services and controllers.

    B) I take the RESTful web-services client, and instead of turning it into a JAR, turn this project into a WAR. Then I could deploy and run this app by itself on tomcat, or some other server, then the SmartGWT client can run on a different server altogether.

    Which way is the best way, any pro's or con's to either besides what I have thought of?

    Thanks!
Working...
X