Forum Stats

  • 3,853,841 Users
  • 2,264,285 Discussions
  • 7,905,472 Comments

Discussions

Call Cache Coherence Remote

Dario Soprano
Dario Soprano Member Posts: 23 Blue Ribbon

Hi All,

I have one cluster Soa and one cluster Cache in two different Coherence Cluster.

This is the Coherence Archive (Gar file) deployed in cluster cache:

<?xml version="1.0"?>

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

              xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config http://xmlns.oracle.com/coherence/coherence-cache-config/1.2/coherence-cache-config.xsd"

              xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config">

    <caching-scheme-mapping>

    <cache-mapping>

      <cache-name>QuoteXmlCache</cache-name>

      <scheme-name>thin-direct</scheme-name>

    </cache-mapping>

    <cache-mapping>

      <cache-name>QuoteTimeCache</cache-name>

      <scheme-name>thin-direct</scheme-name>

    </cache-mapping>

  </caching-scheme-mapping>

  <caching-schemes>

  <distributed-scheme>

      <scheme-name>thin-direct</scheme-name>

      <service-name>DefaultCacheServer</service-name>

      <backing-map-scheme>

        <local-scheme>

          <high-units>500M</high-units>

          <unit-calculator>binary</unit-calculator>

        </local-scheme>

      </backing-map-scheme>

      <autostart>true</autostart>

  </distributed-scheme>

    <proxy-scheme>

      <service-name>RemoteCache</service-name>

      <acceptor-config>

         <tcp-acceptor>

            <local-address>

               <address>localhost</address>

               <port>9099</port>

            </local-address>

         </tcp-acceptor>

      </acceptor-config>

      <proxy-config>

         <cache-service-proxy>

            <enabled>true</enabled>

            <lock-enabled>false</lock-enabled>

         </cache-service-proxy>

         <invocation-service-proxy>

            <enabled>true</enabled>

         </invocation-service-proxy>

      </proxy-config>

      <autostart>true</autostart>

   </proxy-scheme>

</caching-schemes>

</cache-config>

and this is the Confing Adapter file in Cluster Soa:

<?xml version="1.0"?>

<!DOCTYPE cache-config SYSTEM "cache-config.dtd">

<cache-config>

<caching-scheme-mapping>

<cache-mapping>

<cache-name>QuoteXmlCache</cache-name>

<scheme-name>thin-direct</scheme-name>

</cache-mapping>

<cache-mapping>

<cache-name>QuoteTimeCache</cache-name>

<scheme-name>thin-direct</scheme-name>

</cache-mapping>

<cache-mapping>

<cache-name>QuoteAmountCache</cache-name>

<scheme-name>thin-direct</scheme-name>

</cache-mapping>

</caching-scheme-mapping>

<caching-schemes>

<remote-cache-scheme>

<scheme-name>thin-direct</scheme-name>

<service-name>DefaultCacheServer</service-name>

<initiator-config>

<tcp-initiator>

<remote-addresses>

<socket-address>

<address>10.10.1.1</address>

<port>9099</port>

</socket-address>

</remote-addresses>

<connect-timeout>10s</connect-timeout>

</tcp-initiator>

<outgoing-message-handler>

<request-timeout>5s</request-timeout>

</outgoing-message-handler>

</initiator-config>

</remote-cache-scheme>

</caching-schemes>

</cache-config>

When call the operation Put from composite Bpel, the system return this error: JCA Binding execute of Reference operation 'Put' failed due to: null

Why?

Thanks in advance

Best Regards,

Dario

This discussion has been closed.