|
|
@ -23,8 +23,12 @@ import java.util.*;
|
|
|
|
public abstract class BaseMpowerDaoSupport {
|
|
|
|
public abstract class BaseMpowerDaoSupport {
|
|
|
|
@Value("${mpower.dbName}")
|
|
|
|
@Value("${mpower.dbName}")
|
|
|
|
private String dbName;
|
|
|
|
private String dbName;
|
|
|
|
private String hostip = "127.0.0.1";
|
|
|
|
|
|
|
|
private int port = 9999;
|
|
|
|
@Value("${mpower.hostIp}")
|
|
|
|
|
|
|
|
private String hostIp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${mpower.port}")
|
|
|
|
|
|
|
|
private int port;
|
|
|
|
|
|
|
|
|
|
|
|
public void setDbName(String dbName){
|
|
|
|
public void setDbName(String dbName){
|
|
|
|
this.dbName = dbName;
|
|
|
|
this.dbName = dbName;
|
|
|
@ -343,7 +347,7 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Client getConnection(){
|
|
|
|
private Client getConnection(){
|
|
|
|
Client mpowerClient = new Client(hostip, port);
|
|
|
|
Client mpowerClient = new Client(hostIp, port);
|
|
|
|
mpowerClient.setCryptEnable(false);
|
|
|
|
mpowerClient.setCryptEnable(false);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
mpowerClient.getConnection("MPowerXmlToQuery.xmlQuery1");
|
|
|
|
mpowerClient.getConnection("MPowerXmlToQuery.xmlQuery1");
|
|
|
|