jpa - Eclipselink caching problem (one database for two systems) -


I have two online-systems running both of them using eclipsealic.

The first system is an administration system, where value of other applications is managed. The second system is an online shop where customers can buy articles. Both run on the server and use the same Oracle database.

To provide quick access, value items are cached by Eclipsellic.

If I want to flush the cache to the shop system to get a price in the administration system, to get the value of the new system. What is the best way to solve this problem?

I have a similar problem but it is with user credentials

< Strong> 1) Configure caching in store-side

You can configure eclipse link caching for the duration of the expiry. You can configure it so that the timetololyval or value expires on. For example, you can configure the expiry of prices after 1, 5 or 10 minutes. Not immediately, but very quick and very easy to implement. View catch cat annotations in EclipseLink

2) Contact the admin app to the shop app

This web-service may be worth making It remains on the side which will cancel the cash when it is called. Slightly fragile but depending on your setup, it may be necessary.

3) Use cache sync

EclipseLink has functionality for caching sync. I have never used it but it seems that this may be the best policy for you. You can see the EclipseLink document for more information.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -