Enviroment: Jboss seam 2.0.2 GA
When I'm doing query's with a conversation scoped entitymanager, if other application changes the database, my entityManager doesn't notices this changes until I create a new conversation. I thought that doing a flush I could get the changes, but it doesn't work. Is there any instruction for doing this syncronizing??
This is my persistence unit:
Code:
<persistence-unit name="SistemaMonitorizacion">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/SistemaMonitorizacionDatasource</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="jboss.entity.manager.factory.jndi.name" value="java:/SistemaMonitorizacionEntityManagerFactory"/>
</properties>
</persistence-unit>
Thanks!!