Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting timeout

 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can i set the timeout for each operation when i am using Apache Axis as Stub Generator from WSDL?

Thanks,
Amit
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<org.apache.axis.client.Call object>.setTimeout(<time in milliseconds>
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i do it without touching the Axis generated code???Axis gives me 2 interface and 2 coincrete implementation class. I want to set timeout without toching these 4 files.

Setting the timeout using call object will require modifications in Axis generated Concrete Stub class.
 
Himanshu Jhamb
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there a way to set a Timeout for a JAX-RPC call. I am not using AXIS, so the axis api does me no good.

I am using the javax.xml.rpc.* classes and do the following steps for calling my web service:

1) Get a ServiceFactory Instance
2) Create the Service Instance using the factory & wsdl etc
3) Create a Call Obj from the service Instance using the operation name
4) Call invoke() on the call object

So, where can I specify my timeout if I want to timeout, after say, 30 seconds. This is a synchronous web service call.

Thanks!
 
Himanshu Jhamb
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions, folks?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic