Results 1 to 3 of 3

Thread: 2 web applications interacting

  1. #1
    Join Date
    Jun 2012
    Posts
    19

    Default 2 web applications interacting

    I have 2 web applications developed using Spring V3 deployed on 1 tomcat server - how do I send data from one web application to the other one to process?

  2. #2
    Join Date
    Jun 2012
    Location
    India
    Posts
    3

    Default

    hi rrr, depends on the type of data you want to send. if you want to send string, append it with your url as name-value pair.

    in your second app, inside controller(after you have handled the request from app1) you can simply call request.getParameter("key");
    Hope it works. Please let me know. cheers.

  3. #3
    Join Date
    Jun 2012
    Posts
    19

    Default

    Quote Originally Posted by qazjvm View Post
    hi rrr, depends on the type of data you want to send. if you want to send string, append it with your url as name-value pair.

    in your second app, inside controller(after you have handled the request from app1) you can simply call request.getParameter("key");
    Hope it works. Please let me know. cheers.

    Thanks for your reply - I took the approach of making a rest call - I want to use the RestTemplate but am unable to get it working - would u have any good example to help guide me with this - I want to send a String to the other web app but got errors with conversions not supported - what are the steps I have to take to instantiate the restTemplate in the applicationContext.xml file?

    Thanks

Posting Permissions

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