-
1. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
jfclere Aug 2, 2013 3:45 AM (in response to pedrosantos)without a description of what your webapp is doing there isn't much we can do to help.
What is the webapp doing? Any piece of code you can share? configuration?
-
2. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
jfclere Aug 2, 2013 3:47 AM (in response to jfclere)Look to http://tomcat.apache.org/tomcat-6.0-doc/config/http.html the guess is that connector are configured differently in tomcat and jboss.
-
3. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
pedrosantos Aug 2, 2013 10:26 AM (in response to pedrosantos)Hi Jean, thanks for your reply, I was testing from the DAO and looking at how many records throw me my query, and so then in the log on JBoss there were 11,672 records, but it didn´t still show, my application is on JackBe, thanks for your help
These is a part of my code
public StringBuffer getFindDI(String state, String city, String despacho, String cartera,String cuenta,String morosidad,String zona) {
int cont = 0;
Connection con = super.getDirectConnection();
PreparedStatement ps = null;
ResultSet rs = null;
StringBuffer GE = new StringBuffer();
try{
StringBuffer query = new StringBuffer();
query.append("exec GEE_GETCLIENTESXZONA_DESPACHO ?,?,?,?,?,?,?");
System.out.println("ejec GEE_GETCLIENTESXZONA_DESPACHO ");
System.out.println("exec GEE_GETCLIENTESXZONA_DESPACHO '" + state+"','"+city+"','"+despacho+"','"+cartera+"','"+cuenta+"','"+morosidad+"','"+zona+"'");
ps = con.prepareStatement(query.toString());
ps.setString(1, state);
ps.setString(2, city);
ps.setString(3, despacho);
ps.setString(4, cartera);
ps.setString(5, cuenta);
ps.setString(6, morosidad);
ps.setString(7, zona);
rs = ps.executeQuery();
while(rs.next()){
if(cont > 0)
// x
GE.append((char)31);
GE.append("" + (char)30);
GE.append(rs.getString("ACCOUNT_ICO")+ (char)30);
GE.append(rs.getString("name_ico")+ (char)30);
GE.append(rs.getString("TOTALDEBT_DCO")+ (char)30);
GE.append(rs.getString("NOMBRE_DES")+ (char)30);
GE.append(rs.getString("bucket")+ (char)30);
GE.append(rs.getString("STATUS_ICO")+ (char)30);
GE.append(rs.getString("state_ico")+ (char)30);
GE.append(rs.getString("cartera_ico")+ (char)30);
GE.append(rs.getString("name_zona"));
cont++;
}
System.out.println("rows total"+cont);
}
catch(SQLException ex){
ex.printStackTrace();
}finally{
try{
ps.close();
rs.close();
con.close();
}catch(SQLException ex){
ex.printStackTrace();
}
}
return GE;
} -
4. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
jfclere Aug 5, 2013 7:37 AM (in response to pedrosantos)Ok to sumarize the problem you write a huge StringBuffer but the client only receives the first part, correct?
What is the size of the StringBuffer?
-
5. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
pedrosantos Aug 5, 2013 10:13 AM (in response to jfclere)Hi Jean, thanks , the size of the StringBuffer is not defined, and the client only receive one part , it seems as if the stringbuffer was cut, but I dont know why, thanks four your help.
Cheers
-
6. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
jfclere Aug 6, 2013 2:12 AM (in response to pedrosantos)So how many bytes are received? Is that random?
-
7. Re: funcionamiento extraño JBoss 5.1.0 GA / JBoss is weird
pedrosantos Aug 6, 2013 10:25 AM (in response to jfclere)Hi Jean, It´s random , the problem is in the front, I was checking the size of response , first on tomcat and it´s ok, but in JBoss response size changes , my code in javascript , is JackBe for the front, thanks again.
else if(req.getResponseHeader("CDI")== "getFindDI"){
A('longitud '+req.responseText.length);
dmcontactru.add(req.responseText);
AV('txttotalru', dmcontactru.getSize());
}