Monday, November 16, 2015

JBOSS domain and server group test

in first machine:
domain.bat --host-config=host-master.xml -b dwei-dt -bmanagement dwei-dt
second machine:
domain.bat --host-config=host-slave.xml

Tuesday, November 10, 2015

print the query been run and parameters been passed in in MyBatis

1) create a logger with package name of the sqlmap with DEBUG level
2) link it to the handler like console or file
3) this was verified from JBOSS server side logging configuration

Monday, November 9, 2015

enable application logging in JBOSS EAP 6

1) remove any loggin configuration file in application's class path(like two in class folder of axis2)
2) config logger in admin-console

Friday, August 14, 2015

Thursday, July 30, 2015

list in perl

we can use the word list operator (qw||) to create lists, and any non-word characters or parentheses to delimit the list, there lists for instance, are identical.

qw|a b c d|
qw/a b c d/
qw[a b c d}


Wednesday, July 29, 2015

perl variable

to declare a global variable you type $var; or our $var;
and to declare a local variable you type my $var;

Thursday, July 23, 2015

go though logback root and appender structures remove an Appender manually

LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
//StatusPrinter.print(lc);
List strList = new ArrayList();
    for (ch.qos.logback.classic.Logger log : lc.getLoggerList()) {
      if(log.getLevel() != null || hasAppenders(log)) {
    System.out.println("LOG:" + log.getName());
   
    Iterator> appenders = log.iteratorForAppenders();
    while(appenders.hasNext()){
    Appender ap = appenders.next();
    System.out.println("APPENDER:" + ap.getName());
    }
   
        strList.add(log.getName());
      }
    }