Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
EJB3 Caching problem (Toplink)
Joined: Feb 19, 2004
Sep 14, 2007 05:44:00
I`m having an issue with ejb3 in my web app (glassfish v2b58c). I think this is more of an architectural issue, but i`m still not sure how to resolve it.
I have a shopping cart app, that displays a menu on the left. This menu is created from querying the database for all the sections and under it categorys of products available (soft of a quick link).
-> Category 1
-> Category 2
-> Category 3
-> Category 4
If i update a Category the change shows strait away. I guess toplink cache gets updated with the update operation.
if i create a new Category it doesnt show under the sections, i`ve debug the app and what seems to be the problem is that the cached objects under the section selected doesn`t get updates.
Now i`ve added a piece of code to manually refresh the section from the DB, and this fixed the cached category`s under the section aswell.
Now i would have thought that Toplink would recognize the new object being as being a part of the section selected.
Any suggestions would be welcome.
SCJP, SCJD, SCWCD, SCBCD (JEE)
subject: EJB3 Caching problem (Toplink)
Control over terminal
Which Pattern to select ?
html files and creating websites
integration of EJB3,Hibernate in Netbeans
EJB3 vs Hibernate vs Toplink vs OpenJPA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013