This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Time out  in >>  org.apache.axis.client.Stub ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Time out  in >>  org.apache.axis.client.Stub ???" Watch "Time out  in >>  org.apache.axis.client.Stub ???" New topic
Author

Time out in >> org.apache.axis.client.Stub ???

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Im using a WSDL2java for generating files to access a web service.
Some times i get a timeout exception.

How do i resolve this timeout.

using the org.apache.axis.client.Stub there is a setTimeout(int) property. Can setting this property resolve my problem.


Money for nothing and Java for Free
SCJP, SCWCD
stefan bungert
Greenhorn

Joined: Oct 29, 2005
Posts: 5
It depends on the reason why this Timeout occurs.

If the network traffic just needs time, you can adjust the timeout with the setTimeout() method.

If the server is unreachable you can set it to 5 minutes but you will still get a timeout

ok?

stefan
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Is it the actual WSDL2Java part which is timing out? If so, you can provide a "-T 600" to extend the default timeout, as we have had to do.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
If you still can't figureout why timeout occurs!!..better download that wsdl and feed it locally to wsdl2java.


Spritle Software Blogs
madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Originally posted by David O'Meara:
Is it the actual WSDL2Java part which is timing out? If so, you can provide a "-T 600" to extend the default timeout, as we have had to do.


Thanks..
Its not the WSDL2java thats timing out but when i access a webservice on a remote server this happens sometimes.
I wanted to know if this is happening because the server has too much traffic on it or is it some other reason.

Will the timeout property help me solve the problem.
Another thing when i invoked the geTimeout() on the application i got 0. what does that mean.

Is there any way to test the timeout property. Because the webservice is a live service i have no was to see if the setTimeout will actually resolve my problem.

thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Time out in >> org.apache.axis.client.Stub ???
 
Similar Threads
EJB Transaction Timeout
Hibernate & Connection Pooling
HowTo configure the C3P0 properties in hibernateconfig.xml
WS Security with Axis
new to hibernate, spring.. criteria queries/joins