Results 1 to 3 of 3

Thread: How to deploy a Sprint Integration app in Tomcat?

  1. #1
    Join Date
    Jan 2009
    Posts
    3

    Default How to deploy a Sprint Integration app in Tomcat?

    I've gone through the "Spring Integration in 10 minutes" tutorial for setting up a basic Spring Integration application. I'd like to deploy this application in Tomcat and have the input channel live on the server and send the output back to a client, but I'm having a difficult time finding any examples of this.

    Could anyone provide me with either some links to a tutorial for how to do this or any other kind of guidance? All help is much appreciated!

  2. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    424

    Default

    Hi

    First - try building simple Spring MVC application (no Spring-Int!) - this will get you know how to integrate Java Web Applications (particularily web.xml file) with Spring Framework (spring context XMLs). Then try adding Spring Integration beans (channels, filters, ...) to Spring configuration.

    The simplest scenario is this:
    • configure DispatcherServlet in web.xml
    • build simple Spring MVC Controller
    • add Spring Integration beans to DispatcherServlet's XML configuration
    • inject channel to controller and use it


    This is rough tutorial on how to send messages in response of client's HTTP request.

    Then you can try using Spring-Integration web services support where you can configure everything without writing controller's code.

    So - first try some Spring MVC samples and then try Spring Integration

    good luck
    Grzegorz Grzybek

  3. #3
    Join Date
    Jan 2009
    Posts
    3

    Default Thanks!

    Thanks very much!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •