Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3501588
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:52:41+00:00 2026-05-18T12:52:41+00:00

I have an application(written in CSharp) which currently connects to just one coherence cluster.

  • 0

I have an application(written in CSharp) which currently connects to just one coherence cluster. This cluster is fed in data and when the application see’s this in the cluster’s cache it uses this to gain more information on what it was passed and then pass it back to the cluster which then stores this data in its second cache.

What i now want to do is have the application connect to a second coherence cluster and when it sees certain data in this cluster’s cache it should once again get this data and find more information on it and then pass it back to this cluster which again stores this data in its secondary cache.

The problem i have is how do i configure my application to connect to two caches?

I’ve done some reading around this issue with conflicting answers. One suggestion is to change the classloader which is used at run-time, but i’m not sure how to do this, or if this is even the correct/best thing to do??

Any help or guidance on this issue would be much appreciated.

EDIT: After more digging i’ve found this explaination, does anyone have any ideas on whether or not this is the correct thing to do?

http://forums.oracle.com/forums/thread.jspa?threadID=1518273

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:52:42+00:00Added an answer on May 18, 2026 at 12:52 pm

    After looking into this in more detail it would appear that the solution suggested in the above link is what is needed. You need to connect to each cluster as an extend client(as you can only be a member of one cluster without having to do some clever/messy stuff changing the class loader) and then add some extra config to specify another cluster and cache configuration. An example would be as follows:

    <?xml version='1.0'?>
    <cache-config>
      <caching-scheme-mapping>
        <cache-mapping>
          <cache-name>Cache_for_C1</cache-name>
          <scheme-name>extend-cache-C1</scheme-name>
        </cache-mapping>
        <cache-mapping>
          <cache-name>Cache_for_C2</cache-name>
          <scheme-name>extend-cache-C2</scheme-name>
        </cache-mapping>
      </caching-scheme-mapping>
      <caching-schemes>
        <remote-cache-scheme>
          <scheme-name>extend-cache-C1</scheme-name>
          <initiator-config>
            <tcp-initiator>
              <remote-addresses>
                <socket-address>
                  <address>C1host</address>
                  <port>30200</port>
                </socket-address>
              </remote-addresses>
            </tcp-initiator>
          </initiator-config>
        </remote-cache-scheme>
        <remote-cache-scheme>
          <scheme-name>extend-cache-C2</scheme-name>
          <initiator-config>
            <tcp-initiator>
              <remote-addresses>
                <socket-address>
                  <address>C2host</address>
                  <port>30200</port>
                </socket-address>
              </remote-addresses>
            </tcp-initiator>
          </initiator-config>
        </remote-cache-scheme>
      </caching-schemes>
    </cache-config>
    

    Hopefully this will help someone else like it helped me 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application written in Delphi 7 which does not require an admin
Background: I have an application written in native C++ which uses the wxWidgets toolkit's
Ok, I have an application written in C#. We have data in an SQL
I have an application written in java, and I want to add a flash
I have an application written in C#.Net (Framework 2.0 if it matters). It calls
I have an application written in VB.NET that interacts with Excel via interop. I
We have an application written in C#, using .NET Framework 3.0 or 3.5 or
Question I have an application written in Java. It is designed to run on
Background I have an application written in native C++ over the course of several
We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.