File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ public JSONObject toJson(){
168168 db .set ("name" , database .getName ());
169169 db .set ("username" , database .getUserName ());
170170 db .set ("password" , database .getPassword ());
171+ db .set ("maxConnections" , database .getConnectionPoolSize ());
171172 json .set (key , db );
172173 }
173174 else {
Original file line number Diff line number Diff line change 44
55public class ServiceResponse {
66
7- //private String id;
87 private String contentType = "text/plain" ;
98 private String contentDisposition = null ;
109 private Long contentLength ;
@@ -68,7 +67,8 @@ public ServiceResponse(Exception e){
6867 public ServiceResponse (Throwable e ){
6968
7069 this (500 , (e .getMessage ()==null || e .getMessage ().trim ().length ()==0 ) ? "Unspecified Web Services Error" : e .getMessage ());
71- e .printStackTrace ();
70+ //e.printStackTrace();
71+
7272 String s = e .getClass ().getName ();
7373 s = s .substring (s .lastIndexOf ("." )+1 );
7474 String message = e .getLocalizedMessage ();
@@ -81,6 +81,7 @@ public ServiceResponse(Throwable e){
8181 error +="\n " +x ;
8282 }
8383 }
84+ System .out .println (error );
8485 response = getBytes (error );
8586 }
8687
You can’t perform that action at this time.
0 commit comments