Announcement Announcement Module
Collapse
No announcement yet.
Best approach for handling Client -> HTTP request -> Async XML Message Based Service Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best approach for handling Client -> HTTP request -> Async XML Message Based Service

    Hi,
    I'm relatively new to using the Spring Framework. I'm familiar with DI, AOP and using Spring MVC to build my server but I have the following scenario and wondered if there is anything in Spring that can help. The scenario is (pretty common I'm sure):
    1. Operator clicks button in GUI;
    2. Client application requests new XML data from MyServer via HTTP;
    3. MyServer receives request;
    4. MyServer constructs custom XML message to request data;
    5. MyServer writes XML to file;
    6. ExternalSystem reads XML file and places into message queue;
    7. ExternalSystem processes request and creates XML response message;
    8. ExternalSystem writes response XML to file;
    9. MyServer reads response XML and extracts data;
    10. MyServer returns HTTP response containing data;
    11. Client displays data to Operator;

    I'm using Spring MVC to implement MyServer etc but I'm not sure on the best approach for handling the asynchronous behaviour of the ExternalSystem within the scope of the client HTTP request. Blocking the thread within MyServer until the ExternalSystem has completed the request just seems wrong. Please note the client isn't a web browser and the Operator can't do much while waiting for the data.

    Any ideas / suggestions welcome.
Working...
X