Hi Shiva,

Castor trys to omit loading objects from database all the time you request them. Therefore it caches objects and returnes them on your request without loading them from database again. As a general rule:

- db.load() do only query database if object could not be found in cache
- query.execute() always queries database and should refresh object in cache (not sure if that helps)

There is also the option to expire objects from cache with CacheManager to force reloading. When doing so you should be aware that objects timestamp changes which may lead to ObjectModifiedExceptions on parallel long transactions.

Regards
Ralf
Castor JDO, committer


Shiva P. Kodityala schrieb:

Using Oracle database.
When i make modifications to the data directly from sqlplus (of course, commit 
is done), these changes are not getting reflected when the same data is queried 
from web application using castor jdo. When the app is restarted, then I can 
see those changes through application.

Could you give me some clue what is the error I am making in application?

Thanks

------------------------------------------------------------------------

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to