hello, I think it is a cache problem , because when I restart tomcat
the resulting list is correct, the problem lies only  for this method.
i use tomcat 8.0.2

2015-06-23 12:00 GMT+01:00 André Warnier <a...@ice-sa.com>:

> hello.
>
>
> Kaouthar Ghorbel wrote:
>
>> hello,
>> I have a method that returns a list of items when I change the data in
>> this
>> list in the database ,the return of the method does not take into account
>> this change.
>>   here is the configuration of  persistance.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence
>> "
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="
>> http://xmlns.jcp.org/xml/ns/persistence
>> http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd";>
>>   <persistence-unit name="persistancePU"
>> transaction-type="RESOURCE_LOCAL">
>>     <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>>     <class>com.csys.pointeuse2.model.AccessControl</class>
>>     <class>com.csys.pointeuse2.model.Accompagnantgouvernante</class>
>>     <class>com.csys.pointeuse2.model.Chambre</class>
>>     <class>com.csys.pointeuse2.model.Client</class>
>>     <class>com.csys.pointeuse2.model.EtatCha</class>
>>     <class>com.csys.pointeuse2.model.EtatChambre</class>
>>     <class>com.csys.pointeuse2.model.Etatmessage</class>
>>     <class>com.csys.pointeuse2.model.Messagechambre</class>
>>     <class>com.csys.pointeuse2.model.PrmEtage</class>
>>     <exclude-unlisted-classes>true</exclude-unlisted-classes>
>>     <shared-cache-mode>NONE</shared-cache-mode>
>>     <validation-mode>NONE</validation-mode>
>>
>>
>>     <properties>
>>       <property name="javax.persistence.jdbc.url"
>> value="jdbc:sqlserver://192.168.2.58:1415;databaseName=database"/>
>>       <property name="javax.persistence.jdbc.password" value="12355"/>
>>       <property name="javax.persistence.jdbc.driver"
>> value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
>>       <property name="javax.persistence.jdbc.user" value="ka"/>
>>     </properties>
>>   </persistence-unit>
>> </persistence>
>> thanks ...
>>
>>
> But is this related to Tomcat somehow ?
> If yes, could you explain how, and provide some versions of the software
> used ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to