I use a managedBean that goes into the db and defines the bean properties with db data. However when I update the db the data I receive in my bean is not updated.
The q
Reason that you get old value is that your entity is stored in second level cache. And when you request it second time no database call is executed, but value from memory is returned.
You can disable cache by adding <property name="eclipselink.cache.shared.default" value="false"/>
to property
section of your persistence.xml