0 Replies Latest reply: Sep 3, 2013 9:26 AM by 956039 RSS

    JPA on the Grid

    956039

      Hi,

       

      I am working on JPA on the Grid using toplink. I done some examples on the same by following the JPA on the Grid Configurations

       

      link.I worked examples on all the three configurations i.e., GridCache, GridRead, GridEntity.

       

      Now I am trying to expose this entity as a webservice using sessionbeans in Jdeveloper. when i am trying to test this project,everything

       

      is working fine but it is taking cacheconfig from  D:/Oracle/Middleware/Oracle_SOA1/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar!/soa-coherence-cache-config.xml instead of taking cacheconfig.xml from my project(my soa is targeted on Admin Server).

       

      I tried to override the defaultsettings of coherence by specifying properties in persistence.xml as below.

       

      <?xml version="1.0" encoding="windows-1252" ?>

       

      <persistence xmlns="http://java.sun.com/xml/ns/persistence"

       

                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       

                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

       

                   version="1.0">

       

        <persistence-unit name="Test1">

       

          <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

       

          <jta-data-source>java:/app/jdbc/jdbc/Connection1DS</jta-data-source>

       

          <class>project1.AccountDetails</class>

       

          <properties>

       

            <property name="eclipselink.target-server" value="WebLogic_10"/>

       

            <property name="javax.persistence.jtaDataSource"

       

                      value="java:/app/jdbc/jdbc/Connection1DS"/>

       

        <property name="tangosol.coherence.override"

       

                      value="file:/C:/JDeveloper/mywork/DataServicesApplication/Project1/src/tangosol-coherence-override.xml"/>

       

             <property name="tangosol.coherence.cacheconfig"

       

                      value="file:/C:/JDeveloper/mywork/DataServicesApplication/Project1/src/coherence-cache-config.xml"/>

       

            <property name="eclipselink.cache.shared.default" value="true"/>

       

           

       

          </properties>

       

        </persistence-unit>

       

      </persistence>

       

      But still it is taking the soa-coherence-cache-config.xml

       

      Any suggestions would be great.