Hi Brian,
> Rather than implement my own custom container configuration, I'm just
> trying to change the default setting for all entity beans from "A" to
> "C". In the conf/tomcat/standardjboss.xml file, I changed the commit
> option to "C" in both the Standard CMP Entiity Bean as well as the
> JDK1.2.2 CMP Entity Bean sections (I am using CMP beans).
Should work.
> Still, when I test by updating my database directly, and then having my
> jBoss application display an entity bean's contents, I am not finding
> the two in-sync.
this sounds VERY strange, are you sure, that you execute your methods
inside a transaction (i.e. the transaction attributes set to
Required, RequiresNew or Mandatory). If so, could you please
put debug output in the ejbLoad() and ejbStore() and some test methods
of a test bean and verify, that ejbLoad() really is called before
every business method as given in the following diagram:
All methods declared as TX 'Required'!
container/
entity entity bean
client session bean remote IF impl DB
------ ------------ ----------- ----------- ------
| rw_val() | | | |
I---------->I read_val() | | |
I I-------------->I | get state |
I I I ejbLoad() I<----------I
I I I------------->I |
I I I read_val() I |
I I I------------->I |
I I write_val() I I |
I I-------------->I I |
I I I write_val() I |
I I I------------->I |
I I I ejbStore() I |
I I I------------->I put state |
I I I I---------->I
| | | | |
| inc_val() | | |
I-------------------------->I | get state |
I I ejbLoad() I<----------I
I I------------->I |
I I inc_val() I |
I I------------->I |
I I ejbStore() I |
I I------------->I put state |
I I I---------->I
| | | |
Setting the <debug> option to true in (standard)jaws.xml will
show the get_state/put_state SQL.
Another thing to note is: without true XA compliant JDBC drivers
there will be no DB locks set when reading data from the DB, thus
another app may change the DB in the time between get_state and
put_state, resulting in synch errors. You might want to set
the <select-for-update> option in jaws.xml or standardjaws.xml
to true, see http://www.jboss.org/documentation/HTML/ch05s03.html.
regards
Georg
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user