Hi,

This might sound like an odd request but is it possible to force a read-only entity bean (or all read-only entity beans) to reload from the database.

The reason I ask this is that we use dbunit for some of our unit tests. These tests will reset the database to a known state according to a given xml dataset before running the test(s). The only problem with this is that if a read-only entity bean is changed and has already been loaded by JBoss, then the test has a stale copy of the data. Is there anyway to force JBoss to reload its entity bean cache for the purpose of running these tests?

Our alternative is to run through all of our dbunit datasets and make sure we do not have any overlap on read-only entity beans but this could become unmanageable very quickly.

Many thanks,

Tim

PS... current set-up is:
JBoss 3.0.7 (but might be moving to 3.2 in near future).
Java SDK 1.4.1_02



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to