| Line 27... |
Line 27... |
| 27 |
|
27 |
|
| 28 |
import org.apache.log4j.Logger;
|
28 |
import org.apache.log4j.Logger;
|
| 29 |
import org.apache.thrift.TException;
|
29 |
import org.apache.thrift.TException;
|
| 30 |
|
30 |
|
| 31 |
public class Utils {
|
31 |
public class Utils {
|
| 32 |
private static Logger log = Logger.getLogger(Utils.class);
|
32 |
private static Logger log = Logger.getLogger(Class.class);
|
| 33 |
|
33 |
|
| 34 |
public static final String EXPORT_ENTITIES_PATH = getExportPath();
|
34 |
public static final String EXPORT_ENTITIES_PATH = getExportPath();
|
| 35 |
|
35 |
|
| 36 |
private static String getExportPath(){
|
36 |
private static String getExportPath(){
|
| 37 |
String exportPath=null;
|
37 |
String exportPath=null;
|
| Line 40... |
Line 40... |
| 40 |
exportPath = client.get("export_entities_path");
|
40 |
exportPath = client.get("export_entities_path");
|
| 41 |
}catch(ConfigException ce){
|
41 |
}catch(ConfigException ce){
|
| 42 |
ce.printStackTrace();
|
42 |
ce.printStackTrace();
|
| 43 |
//exportPath = "/var/lib/tomcat6/webapps/export/html/entities/";
|
43 |
//exportPath = "/var/lib/tomcat6/webapps/export/html/entities/";
|
| 44 |
}
|
44 |
}
|
| 45 |
System.out.println("######################################################################");
|
45 |
log.error("######################################################################");
|
| 46 |
System.out.println("######################################################################");
|
46 |
log.error("######################################################################");
|
| 47 |
System.out.println("Export path is : " + exportPath);
|
47 |
log.error("Export path is : " + exportPath);
|
| 48 |
System.out.println("######################################################################");
|
48 |
log.error("######################################################################");
|
| 49 |
System.out.println("######################################################################");
|
49 |
log.error("######################################################################");
|
| 50 |
return exportPath;
|
50 |
return exportPath;
|
| 51 |
}
|
51 |
}
|
| 52 |
|
52 |
|
| 53 |
public static double getItemPrice(long itemId){
|
53 |
public static double getItemPrice(long itemId){
|
| 54 |
CatalogServiceClient catalogServiceClient = null;
|
54 |
CatalogServiceClient catalogServiceClient = null;
|