Posted: Fri Aug 21, 2009 10:24 am Post subject: Http request is failing!!!
Apprentice
Joined: 03 Aug 2009 Posts: 47
I have a situation wherre i have to route to the other webservice if the primary webservice fails i am using two http request nodes in the flow.i am also using try catch node too. one http req in the try path and the other in the catch path . so if one http req gets the failure msg then the I/P req is routed to the other webservice using catch path. below are the msg flow path for try catch:
PROBLEM: For the above flow when i set the max wait time for the 1st httpreq1 as 20 sec i donot receive the resonse at the application end which sends the request to broker. but if i set the wait time below 20 it recives the response from the webservice.Though in debugger mode i see the routing takes place in both the scenarios.
NOTE: the error i receive at the application(i am using nettool for simulation)when i set the max time as 20 sec is:java.net.socket timeout.
any guesses y its happening so becoz i want to set the wait time more than 20 sec for the http req nodes and moreover i have the set the max wait time for initial HTTP i/p node as 180 sec...
the error i receive at the application(i am using nettool for simulation)
As i said i was using the nettool application the real problem was the nettool it is by default configured to 20 secs a so if i set the max client req wait time more than 20 sec you receive the java.net.socket exception error at the nettool application.
So i used the broker tool kit testing facility and there was no issue as such.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum