Compare commits

...

1 Commits
main ... devel

Author SHA1 Message Date
c71a8c6a73 remove some system out 2024-11-04 17:26:42 +07:00
4 changed files with 6 additions and 6 deletions

Binary file not shown.

@ -93,13 +93,13 @@ public class MessageDrivenEJBBean implements MessageDrivenBean, MessageListener
postPayload += " </soapenv:Body></soapenv:Envelope>";
System.out.println("[myMessageDrivenBean] Received message: " + msgPayload );
System.out.println("[myMessageDrivenBean] postPayload message: " + postPayload );
// System.out.println("[myMessageDrivenBean] Received message: " + msgPayload );
// System.out.println("[myMessageDrivenBean] postPayload message: " + postPayload );
sendHttpPost(postPayload);
} catch(JMSException ex) {
System.out.println("Caught JMSException: " + ex );
// System.out.println("Caught JMSException: " + ex );
}
}
@ -207,7 +207,7 @@ public class MessageDrivenEJBBean implements MessageDrivenBean, MessageListener
// output.flush();
int responseCode = conn.getResponseCode();
// System.out.println("POST Response Code :: " + responseCode);
System.out.println("[logJmsMessageDrivenBean]:POST Response Code :: " + responseCode);
if (responseCode == HttpURLConnection.HTTP_OK) { // success
try (BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {
@ -216,10 +216,10 @@ public class MessageDrivenEJBBean implements MessageDrivenBean, MessageListener
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
System.out.println("Response :: " + response.toString());
// System.out.println("Response :: " + response.toString());
}
} else {
System.out.println("POST request failed");
System.out.println("[logJmsMessageDrivenBean]:POST request failed");
}
conn.disconnect();
} catch (IOException e) {