I am Working on a Project.
In which i am getting the list from DB using named queries already available in the enitiy
whenever i update the data of a field it get changed in DB
but it is not reflected in the list i am getting from the Named Query
Is there any way to get the list refreshed everytime ?
EJB is built as a different project and i have added it as a library to the web appliication.
If i undeploy the project and re-deploy it then the list i recevies is new..
Help Needed
Thanks in Advance.
persistence.xml
<jta-data-source> goes </jta-data-source>
<exclude-unlisted-classes> false </exclude-unlisted-classes>
<shared-cache-mode> NONE </shared-cache-mode>
<properties/>
ejb code
@Override
public List<Universityview> getAllUniversitys () {
return em.createNamedQuery ("Universityview.findAll").
getResultList(); }