I send Callout request to ActiveMq messages queue service to get messages form there and handle it in Salesforce. In the Queue there are 3000 messages. When I send the request from salesforce sometime I get message with status code 200 and sometime I get a blank body with status code 204. This is very weird.
When I use Rest client like postman to send the Get Request I get always a message.
The Code For make a Request From Salesforce is:
HTTPRequest jmsRequest = new HTTPRequest(); jmsRequest.setMethod('GET'); jmsRequest.setEndpoint('callout:ActiveMqJms'); jmsRequest.setTimeout(120000); jmsRequest.setHeader('Accept', 'application/xml'); Http http = new Http(); HttpResponse response = http.send(jmsRequest);
Is there someonr here can help me. I will appreciate that