如何正确配置缓存eclipselink?

时间:2018-10-22 08:34:01

标签: java

如何正确配置缓存eclipselink? 我不知道缓存是否正常工作。...我看不到任何缓存工作。.我以前没有使用过eclipselink缓存(((

<properties>
            <property name="javax.persistence.nonJtaDataSource" value="java:/comp/env/jdbc/myDS"/>
            <property name="eclipselink.weaving" value="false"/>
            <property name="eclipselink.logging.level" value="INFO"/>
            <property name="eclipselink.logging.level.sql" value="FINE"/>
            <property name="eclipselink.logging.parameters" value="true"/>
            <property name="eclipselink.query-results-cache" value="false"/>

            <property name="eclipselink.cache.shared.MyEntity" value="true"/>
            <property name="eclipselink.cache.type.MyEntity" value="SOFT"/>
            <property name="eclipselink.cache.size.MyEntity" value="64000"/>


            <!--<property name="eclipselink.batch" value="true"/>-->
            <property name="eclipselink.jdbc.batch-writing" value="JDBC"/> <property name="eclipselink.jdbc.batch-writing.size" value="15"/>
        </properties>

0 个答案:

没有答案