Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8835485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:16:19+00:00 2026-06-14T09:16:19+00:00

Our team at work chose to develop web services using all the tools that

  • 0

Our team at work chose to develop web services using all the tools that NetBeans 7.1.2 provides.

Unfortunately, our web services are too unstable and a lot of times offline. It’s something we can’t solve now. Our decision was to implement a timeout in our clients. But we didn’t find any option or documentation about it.

Is there a way to make clients throw an exception when the service takes, for example, 5 seconds to return an answer? So we can’t catch this exception and treat the view’s flow.

I’m asking because there are ways to implement it with threads and time counters but it’s obvious that other programmers had gotten already the same issue.

By the way, we’re using JAX-WS.

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:16:20+00:00Added an answer on June 14, 2026 at 9:16 am

    Use java.util.concurrent package classes. For example, you can execute Future instance with timeout: future.get(5, TimeUnit.SECONDS), and if it excepts with TimeoutException, you can react as you want:

    Future<String> future = executor.submit(new Callable<String>() {
        public String call() {
            return webService.executeServiceMethod();
        }
    });
    try {
        String result = future.get(5, TimeUnit.SECONDS);
        processResult(result);
    } catch (TimeoutException ex) {
        displayMessageToUserOrExecuteAgain();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team got into work in the morning and we found that all of
Our development team uses Eclipse + Aptana to do their web development work. Currently,
Our team is currently developing a web application, in that we have a class
Moving forward with re-designing a web service architecture using WCF, our team has been
We have up to several team members that does not work 100% on our
Our team has just started developing for the Sitecore CMS. We find that after
Our team is growing, but we're also growing specialized. We've already been using ticketing/bug
Our team uses Eclipse to develop a software product, and recently we switched to
I am setting up our (relatively small) programming team to work with source control.
Our team at work has written a wrapper application/interface to install a series of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.