Announcement Announcement Module
No announcement yet.
HTTP Invoker server in standalone app Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Invoker server in standalone app

    I have a Spring stand-alone app that listens to an asynchronous messaging system and builds up a memory cache of information. I would like to allow client applications to query this memory cache using the HTTP Invoker request/response messaging supported by Spring. I have got the HTTP Invoker working in the stand-alone app by embedding the Jetty HttpServer and configuring up the dispatcher servlet (just like you would in a stand alone servlet container). The problem I now have is that the I want the dispatcher servlet to share the same ApplicationContext as the rest of the stand-alone app, so that I can have a singleton memory cache instance. Is there any way I can pass my existing ApplicationContext from the stand-alone into the dispatcher servlet?

    Has anyone else tried to embed a Spring HTTP Invoker server into an existing stand-alone app?