There is an optimistic locking strategy that could be what
you are intersted in. It is configured in jbosscmp-jdbc.xml
<optimistic-locking>
<timestamp-column/>
<field-name>version</field-name>
<column-name>ol_timestamp</column-name>
<jdbc-type>TIMESTAMP</jdbc-type>
<sql-type>DATETIME</sql-type>
</optimistic-locking>
<timestamp-column/>
<field-name>version</field-name>
<column-name>ol_timestamp</column-name>
<jdbc-type>TIMESTAMP</jdbc-type>
<sql-type>DATETIME</sql-type>
</optimistic-locking>
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ed
banfa
Sent: Thursday, January 15, 2004 6:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Knowing when a CMP bean is modified
Sent: Thursday, January 15, 2004 6:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Knowing when a CMP bean is modified
Hello all,I would like to know when my CMP bean has been modified so as to keep a last modifiedmarker on the bean, I would like to keep track of the exact time a record was updated.Has anybody done similar work?I would apreciate any advice/tips.Thanks in advanceEd
EDWARD BANFA
NETPLAY TECHNOLOGIES INC.
JOS, PLATEAU STATE
NIGERIA.
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes