Skip to content

Commit 95e429b

Browse files
committed
- Updated the toJson() in the Config class to include "maxConnections"
- Updated stack trace dump in ServiceResponse git-svn-id: svn://192.168.0.80/JavaXT/javaxt-express@1349 2c7b0aa6-e0b2-3c4e-bb4a-8b65b6c465ff
1 parent dc95e75 commit 95e429b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/javaxt/express/Config.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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{

src/javaxt/express/ServiceResponse.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
public 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

0 commit comments

Comments
 (0)