remove some system out
This commit is contained in:
parent
39af154b5d
commit
c71a8c6a73
Binary file not shown.
Binary file not shown.
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user