Thursday, February 18, 2016

How do I find out my MySQL port number?

How do I find out my MySQL port number?

mysql> SHOW VARIABLES WHERE Variable_name = 'port';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port          | 3306  |
+---------------+-------+

1 row in set (0.00 sec)

Monday, January 4, 2016

Find string with file name in Linux


Find string with file name in Linux


     find  -type f -print0 | xargs -0 grep -l "11440159"

Request and Response from Java Web Service

getStub()._getServiceClient().getServiceContext().setCachingOperationContext(true);
OperationContext OperationContext = new OperationContext();
boolean cacheLastOperationContext = true;
OperationContext.setComplete(true); // Enable the Cache value
serviceConxt.setCachingOperationContext(cacheLastOperationContext);
serviceConxt.setLastOperationContext(OperationContext);

//Invoke method to get the response


if (operationContext != null) {
System.out.println("== Request ==");
MessageContext outMessageContext = operationContext.getMessageContext("Out");
operationContext.getMessageContexts();
if (outMessageContext != null) {
System.out.println("OUT SOAP: " + outMessageContext.getEnvelope().toString());
}
System.out.println("== Response ==");

MessageContext inMessageContext = operationContext.getMessageContext("In");
if (inMessageContext != null) {
System.out.println("IN SOAP: " + inMessageContext.getEnvelope().toString());
}
}