Announcement Announcement Module
Collapse
No announcement yet.
Dynamically exporting services using HTTP Invoker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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

    Comment

    Working...
    X