Results 1 to 3 of 3

Thread: Dealing with unavailable web services

  1. #1
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default Dealing with unavailable web services

    Hi,

    I'm using JaxRpcPortProxyFactoryBean to provide access to a web service I need for my application and, when the service is up (I have no control over it), all is fine.

    My question is how to deal with the situation when the service is down at application startup. Currently, this throws a BeanCreationException when the application context is read. Is there anything in Spring to deal with this situation? Basically, not just fail, but continue to construct the rest of the beans/services. Then, when the specific service is needed, check to see if it has actually been constructed correctly, maybe try again, etc.

    thanks for any pointers,

    Jonny

  2. #2
    Join Date
    Jul 2005
    Posts
    15

    Default

    I guess you could create a separate ApplicationContext/BeanFactory for JaxRpcPortProxyFactoryBean and surround the loading of this isolated application context with try catch.

  3. #3
    Join Date
    Sep 2004
    Posts
    1,086

    Default Re: Dealing with unavailable web services

    Quote Originally Posted by jwray
    Hi,

    I'm using JaxRpcPortProxyFactoryBean to provide access to a web service I need for my application and, when the service is up (I have no control over it), all is fine.

    My question is how to deal with the situation when the service is down at application startup. Currently, this throws a BeanCreationException when the application context is read. Is there anything in Spring to deal with this situation? Basically, not just fail, but continue to construct the rest of the beans/services. Then, when the specific service is needed, check to see if it has actually been constructed correctly, maybe try again, etc.

    thanks for any pointers,

    Jonny
    I'm not sure, but I don't think it should fail at startup at all, unless you try to get the wsdl from the server.

Similar Threads

  1. ACEGI Security and Web Services
    By bbailey in forum Security
    Replies: 5
    Last Post: Dec 22nd, 2005, 03:11 PM
  2. Securing Spring-based services with Acegi
    By Andrei Lissovski in forum Security
    Replies: 3
    Last Post: Sep 23rd, 2005, 06:56 PM
  3. Exposing Services in a JMS based application
    By rsheldon in forum Architecture
    Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  4. Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  5. planning major migration to spring
    By wexwarez in forum Architecture
    Replies: 21
    Last Post: May 23rd, 2005, 01:13 AM

Posting Permissions

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