ok,
well the code is the same as in helloworld with a connection to DB
run(){
while(go){
sSql = "select id,value from table where state=1";
rs = stmt.executequery(sSql);
while(rs.next()){
Map<String, String> data = new HashMap<String, String>();
data.put("Data", rs.getString("id"));
data.put("Code", rs.getString("value"));
listener.smartUpdate(itemHandle, data, false);
}
//this is to send garbage through data
Map<String, String> data = new HashMap<String, String>();
data.put("Data", "0");
data.put("Code", "0");
listener.smartUpdate(itemHandle, data, false);
}
}
in the first cicle, the resultset have one row with this data {1,value} this is send to the web client, the web client work with this and change the state to 0.
at some point the client web browser change the state to 1.
then the java adapter try to send this same data again {1,value}.
here's the problem, when i send a data and then try to send the same data (without sending anything in the middle) the following items never reach to the web client.
when i send garbage in middle the data, everything workd fine, but this is not the most efficient solution.
is there some configuration that allows always send the data (no matter that was previously sent the same) ?
i hope has become clear, excuse my english :Smile_Ac:
regards.