Results 1 to 2 of 2

Thread: Dynamically exporting services using HTTP Invoker

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    4

    Default Dynamically exporting services using HTTP Invoker

    Hello Team,
    I'm currently exposing some services using Spring's HTTP Invoker Service Exporter..
    I have a few situations where the service may not be available at start but subsequently, based on several availability criteria, the service becomes available.

    How can I export the service when the web-container has been initialized?

    Regards,
    M
    -M-

  2. #2
    Join Date
    Jan 2009
    Location
    Boston, MA
    Posts
    10

    Default

    Though a bit late reply, but I think in your service implementation class you could check if a request can be processed when a service operation is invoked. If a request can not be serviced by your bean, e.g. due to some resources not available, then respond accordingly - perhaps by throwing an exception to the client.

    As long as Spring can initialize your service bean, you should be good. Initializing a bean doesn't have to guarantee service-readiness by the bean (again, it depends on your requirements too).

    HTH,
    Balwinder

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
  •