hi all,
i'm using jboss 3.2.3 and hibernate 2.1.2.
the application i'm developing has 40+ hibernate objects of which 75% of them are mostly config and rarely change.
i'm using jboss tree cache and have a question regarding the different cache strategies i can use.
my hibernate objects can be divided between runtime and config. the runtime objects (25%) are using the 'transactional' cache usage strategy and i would like to use the 'read-only' strategy for the config objects.
however, as mentioned above that while the config objects change rarely they can be changed via a management ui. from the limited tests i've done with the read-only cache this doesn't seem possible as the cache will prevent updates to these config objects.
i would prefer to use the 'read-only' strategy due to the performance edge over the 'transacitonal' strategy but as far as i can tell this means i would have to shut down my application to change the 'config' objects if i proceed with the 'read-only' strategy, (or have i completely missed something here??)
obviously, this is not the most desirable solution. i realise i'm probably asking for the impossible but just wanted to know if any of ye know a more elegant soluion to this problem.
thanks in advance,
colum.
|