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
Another quick note... as I think of different options to use.
Might it be possible to disable the read-only caching ability of JBoss entirely upon start-up? This would allow us to run the unit tests, where performance is not an important factor.
One reason that this issue has cropped up is that we're making some of our previously read-write entity beans read-only, which is why it is difficult to start re-writing all of our unit tests (and data).
Tim
------------------------------------------------------- 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
