+ Start a Discussion
vnbhargavivnbhargavi 

Sending an outbound message

hi all,

 

 

In my scenario...am sending an Htttp Request and i need to get the Response...........

 

 

1)if i dont get the response in first 60 sec i need to send the request again....and wait for 60 sec..

 

2) i dnt get the Response within 60 sec ,now i need to wait for 30 min and the send the request .. i dont get the response in the next 120 sec.....

 

3) this time wait for 3hrs.......................and then next time for 12hrs and then 24hrs...................

 

 

how can i do ths......................

 

 

how set the time out exponentially am not geting...can any one help me in this...........................................

IspitaIspita

Hi,

Have you set this up at all... Or are in the planning stage only ??

 

I think if you have not set it up at all:-

You need to try the route of a :-

  • custom object which stores the information of the previous request and hence does it agin by making the exponentials changes.
  • Asynchronous Batch Apex should help.

 

Hope this answers your query....

vnbhargavivnbhargavi

i have set up the outbound message and everything but am stuck at this....can you elaborate a bit of this......?????

IspitaIspita

which part is not clear??

vnbhargavivnbhargavi

if we have to use batch apex..then we have to schedule it..........i dont want the whole database to be scheduled.......

 

how can i set the delay that the only concern.....