Can I switch to another Coherence Grid in Java Extend?

The scenario is I have two data grids, the name of the cache are same, but data in the cache is different. I programmed a Java Client (Extend) to the data grid, the Java client is using a configuration file configured to connect with one of the data grids, the connection is configured in remote-cache-scheme section. Every time When I want to connect my Java Client to another data grid, I have to stop the JVM of the client and modify the configuration file.
My question is can I switch to another data grid from my Java client without shutting down the Java Client's JVM and modify the configuration file? I noticed that in the caching-scheme-mapping section of client configuration, we can use the name to decide which grid to call, but in my case, the caches in both data grids has same name.

I use this sample code to connect to two or more proxy extend with the same cache name.
import com.tangosol.net.CacheFactory;
import com.tangosol.net.CacheFactoryBuilder;
import com.tangosol.net.ConfigurableCacheFactory;
import com.tangosol.net.NamedCache;
public class TestMultipleProxyAccess {
public static void main(String[] args) {
ClassLoader cl = TestMultipleProxyAccess.class.getClassLoader();
String cacheConfigA = "client-cache-config-a.xml";
String cacheConfigB = "client-cache-config-b.xml";
CacheFactoryBuilder builder = CacheFactory.getCacheFactoryBuilder();
ConfigurableCacheFactory ccfA = builder.getConfigurableCacheFactory(cacheConfigA, cl);
NamedCache ncA = ccfA.ensureCache("myCache", cl);
ConfigurableCacheFactory ccfB = builder.getConfigurableCacheFactory(cacheConfigB, cl);
NamedCache ncB = ccfB.ensureCache("myCache", cl);
}

Similar Messages

  • There used to be a "spaces" selection in sys prefs in 10.5; how can I switch to another desktop space if I don't have a trackpad?

    There used to be a "spaces" selection in sys prefs in 10.5; how can I switch to another desktop space if I don't have a trackpad?

    You can either click on Mission Control in your dock/Applications folder & select a space or your can use 'CTRL+ left or right arrow to navigate through spaces'

  • HT204266 How can i switch to another country AppStore ?

    I dont know what to do if a sign comes up which says : Your account is not valied for use in the ... store. You must switch to ... store before purchasing.

    You can only do purchases in the country you live (home address and credit cards)
    Settings > iTunes & App Stores > Apple ID: > View My Apple ID > sign in and change country / region.

  • Without dispose current window can't switch to another window

    hi
    in my main frame i had used some menu in every menu .it opens the new frame .but i want that without close this current frame it will not switch to the other frames.
    mradul

    And make it modal (just to be super-clear).

  • If you install the program in Spanish, Can you switch to another language the part indicating the chapter's number?

    The company Aula24Horas has told to write a book in English.
    The part indicating the chapter's number is in Spanish.
    I would like to change it into English.

    Try changing the primary language on your computer to English.

  • Java extend client outside coherence grid or Java client inside grid ?

    Hello,
    I'm quite new with Coherence and I'm wondering the best option to connect a JAVA client that will communicate with coherence cluster during few seconds.
    Around 30 clients may connect at the same time.
    Cluster stores around 4Gb of data.
    I consider 2 options:
    1) make the JAVA client as a member of the grid. Some partitions will be transfered to it.
    2) have a proxy node in the grid and make JAVA client as an extend client.
    What'd be the pros and cons of these 2 options ?, shoud I consider other options ?
    Thank you for your advices, David

    If your Java client is only going to live for a few seconds then make it an Extend client not a cluster member. Short lived processes should not be cluster members as the continualy join/leave cycle will destablise the rest of the cluster.
    If your client was going to be long lived then you could make it a storage disabled cluster member.
    JK

  • Tabstrip control can not switch (Do not respond when focus on field of subscreen)

    Hi Colleagues,
         I have met with a very strange question, which worries me a lot these days. Would you please help me with it?
         The problem is like this:
         1. In normal case, I can switch to another tab when I click it. Please see picture in the attachment (Tabstrip1.png)
         2. But when I click on field on the subscreen of one tab, set focus on one field, in the picture of attachment switch2.png, I can not switch to another tab, it just does not respond. I really do not know why this happens.
         Could any colleague give an answer or hint about it? Thanks a lot!!
         You can access the program by TCODE: EPIC_RPR on EBJ client 003 or QI3 system client700 .
    BR,
    Chris

    yea thats what i thought, thats the most sensible answer that they expect you to
    know it.
    but... have you taken any of the them? would love to hear from someone thats taken a few, i wasn't even sure if i'd put this post in the right forum to be honest.
    just seems odd why they say 95% of the material is in the prep stuff seems too easy.
    i'd have thought that since the cs4 exam had that many more questions that the cs5 exam would have even more prep material but obviously not so.

  • How can I switch my apple I'd email address on my ipad to my gmail account that was associated to another device I own?

    How can I switch my apple I'd email address on my ipad to my gmail account that was associated to another device I own?
    I lost the other device so I don't even have it, and I want to terminate the email account I am currently using.

    settings --> Store --> Apple ID.

  • HT201320 How can I switch from one email user to another?

    How can I switch from one email account to another?

    You have to select between the two accounts in the mail app.
    Say for instance that you are reading an email in your XYZ email account. Tap the button in the upper left corner of the mail app to back out all the way to where you can see all of the email accounts.... Tap InBox, then tap XYZ email Account and that will take you back to the main MailBoxes window.
    Is that what you want to know? There is no way to simply "toggle" between the two accounts.

  • I've been using my mom's iTunes account for years but now I want to switch to another account. How can I do this without losing all of my pictures, music, and apps?

    I've been using my mom's iTunes account for years but now I want to switch to another account. How can I do this without losing all of my pictures, music, and apps?

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • HT201209 How can i Switch iTunes Stores so i can redeem cards in another currency.

    How can i Switch iTunes Stores so i can redeem cards in another currency.
    Tranks for the help

    You cannot use other countries itunes stores.
    Sorry

  • Can we call ALV Grid in another ALV Grid

    Hi,
      I have a requirement where I have an ALV List Displayed and for this we have an User Command and the User Defined Button Placed on the ALV List displaya another ALV Grid. Now the user want an User Command to be activated on the Second ALV Report to call a Third ALV Report.
       Could someone tell me whether this is feasible if so how can it be achieved.
    Thanks & Regards,
    YJR.

    Hi YJR,
      As far as feasibility of the requirement is concerned it is very subjective to your business process.
      But yes, it is possible.
      Just give a different callback user command in the call to ALV and write another form.
      That should solve your problem.
    Regards,
    Ravi

  • JTabbedPane, how can a tab switch to another tab?

    I have a JTabbedPane with a few tabs. Each tab consists of a class extending JPanel. If a certain action is performed on on of the tabs, the view should switch to another tab. How can this be done? I know about the method setSelectedComponent in the JTabbedPane class. But since the tab doesn't know about this, how can I use it?

    Actually, the solution was dead simple. All I had to do was give the constructor of the class/tab a reference to the JTabbedPanel instance so it can call setSelectedIndex on it.
    It works now, thanks anyway.

  • Can I switch out my current phone with another color?

    Can I switch out my current phone with another color? I have black and I would prefer the silver. My parents got it for as a surprise so I didn't speak up and tell them I didn't like the color. So I have been using it for about a month. Can I just take the chip out and put it into another phone of a different color or no?

    You can purchase an iPhone in any model, color, and capacity currently available.
    You can purchase a case to put the device in and simply forget about the color of the device.

  • How do I hear Garageband in multitask? I am playing guitar in GB using Apogee Jam. Would like to read lyrics in Safari while hearing guitar in background. But I can only hear GB when it is the active program. Sound stops if I switch to another app.

    How do I hear Garageband in multitask? I am playing guitar in GB using Apogee Jam. Would like to read lyrics in Safari while hearing guitar in background. But I can only hear GB when it is the active program. Sound stops if I switch to another app.

    http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/libata/ch07.html#excatATAbusErr wrote:
    ATA bus error means that data corruption occurred during transmission over ATA bus (SATA or PATA). This type of errors can be indicated by
    ICRC or ABRT error as described in the section called “ATA/ATAPI device error (non-NCQ / non-CHECK CONDITION)”.
    Controller-specific error completion with error information indicating transmission error.
    On some controllers, command timeout. In this case, there may be a mechanism to determine that the timeout is due to transmission error.
    Unknown/random errors, timeouts and all sorts of weirdities.
    As described above, transmission errors can cause wide variety of symptoms ranging from device ICRC error to random device lockup, and, for many cases, there is no way to tell if an error condition is due to transmission error or not; therefore, it's necessary to employ some kind of heuristic when dealing with errors and timeouts. For example, encountering repetitive ABRT errors for known supported command is likely to indicate ATA bus error.
    Once it's determined that ATA bus errors have possibly occurred, lowering ATA bus transmission speed is one of actions which may alleviate the problem.
    I'd also add; make sure you have good backups when ATA errors are frequent

Maybe you are looking for

  • How to upload a multistructured file in BDC program using gui_upload?

    I want to upload a multistructured file in BDC program...in which some structures are repeating for multiple records..how to do this.. BP_GEN_DATA     FR0100270154                         FR12345678902 BP_PAYMENT     FR     0123456789     01234567890

  • Business Partner ID same as SAP User ID

    Hi All, We have one SAP Service Desk Implementation going on. There is an intresting requirement as follows: 1) BP ID generated should be same as their respective SAP User ID, irrespective of the BP Role. 2) First Run for Mass Generation has to be do

  • Time-out Connection Problem MBP.

    I just received a MacBook Pro. I went to try to connect to my wifi but it wont connect, it keeps saying Connection Timeout. All my other devices are working fine, so i dont know what the problem is. Could anyone help me on how to fix this.

  • Firmware Updates

    Hello All. i noticed there are a lot of questions on Firmware Updating. Well, some of you in range of a Carphone Warehouse might finds it's worth checking their website to see if their store is listed as an express repair point. I'm due to zip down t

  • [Comm] LinuxCertified announces support for Oracle Linux on its laptops

    Hello, LinuxCertified is pleased to announce that its Linux laptops are now available with Oracle Enterprise Linux 4 Update 4 pre-installed. For more details, please visit: http://www.linuxcertified.com/ Thanks LinuxCertified Team -