Is it possible to set a webservice connection timeout on Service.create method?

Solution Unverified - Updated -

Issue

  • When executing client code to access a web service, is it possible to control the connection timeout for the follwing code:
        final Service service = Service.create(wsdlURL, serviceName);
        return service.getPort(SendAlertFromATM.class);
  • Is it possible to configure a timeout for this line:
        final Service service = Service.create(wsdlURL, serviceName);
  • Is it possible to configure timeout for this line:
       return service.getPort(SendAlertFromATM.class);

Environment

  • Red Hat JBoss Enterprise Application platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content