Are you sure the record is updated.
When you use cmp stuff and don't be carefull it will create the tables for you at start up. And so all data is lost.
Is the data lost when you shutdown or startup
Thank you very much, pvamstel. Problem resolved.
Like you said when JBoss re-starts it re-create table so the data originally in the table are re-set.
I set the value of <remove-table> element of
jbosscmp-jdbc.xml to false; then, now JBoss doesn't reset the table's data anymore when it re-starts.
Thank you again:)