Hi.
The recommendation on this forum is to not use "top posting", but to keep the flow of
conversation natural, and respond below the question to which your question refers.
See http://tomcat.apache.org/lists.html, "Important", 6)
Kaouthar Ghorbel wrote:
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 ?
> 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
Honestly, I am a bit out of my depth here.
But the above configuration which you provide (thank you) leads me to believe that the
cache in question belongs to the /application/ (*), not to Tomcat.
The fact that the cache is cleared when you restart Tomcat, is probably due to the fact
that when you restart Tomcat, you also restart the application, which probably clears the
cache /of the application/.
I don't think that Tomcat itself knows anything about this cache.
Or am I reading this wrong ?
(*) which from the names used (**), seems to be some kind of hotel rooms
management system
(**) and my knowledge of French, and my long-time-ago studies in hotel
management..
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org