WKA - use same coherence override wrong?

In general, we are told to use the same overrides (cache and cluster) for all participants in a coherence cluster.
However, with well known addresses, if we have clients with not-well-known-addresses connecting to a WKA cluster, there is the possibility that if they are on the same machine as a cluster member, a client will grab the WKA port before the cluster server starts up.
Is this a problem?
Should the client use a different override with a different port?

It is a problem, if the client is not supposed to live as long as the server JVM.
However, you can specify a unicast-listener port for the client higher than the WKA node ports, and in that case you will not have a conflict (as the client will try only higher ports than the originally specified port).
BR,
Robert

Similar Messages

  • DefaultCacheServer not loading tangosol-coherence-override.xml file in eclipse

    I am unable to start the DefaultCacheServer on eclipse. It doesnot start/join the cluster.I get the following :-
    ava version "1.6.0_45"
    Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
    2013-08-28 13:21:09.258/0.328 Oracle Coherence 3.6.1.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/C:/Cache/bin/tangosol-coherence-override.xml"
    2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/cluster-config.xml" is not specified
    2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    2013-08-28 13:21:09.273/0.343 Oracle Coherence 3.6.1.0 <D6> (thread=main, member=n/a): Loaded edition data from "jar:file:/C:/coherence/lib/coherence.jar!/coherence-grid.xml"
    Oracle Coherence Version 3.6.1.0 Build 19636
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    2013-08-28 13:21:09.507/0.577 Oracle Coherence GE 3.6.1.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/Cache/src/config/product-config-coherence-cache-config.xml"
    2013-08-28 13:21:09.507/0.577 Oracle Coherence GE 3.6.1.0 <Info> (thread=main, member=n/a):
    Services
    Started DefaultCacheServer...
    I am using coherence - 3.6. Eclipse - Juno Release. JDK - 1.6 . The classpath setting in order is Project,JRE libraries, coherence.jar. Project has folder 'config' which has the XML files.
    I am able to start the client using the same tangosol-coherence-override.xml. Below is the XML file,

    <?xml version='1.0'?>
    <coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
       xsi:schemaLocation="http://xmlns.oracle.com/coherence/
       coherence-operational-config coherence-operational-config.xsd">
       <cluster-config xml-override="/cluster-config.xml">
       <member-identity> 
       <cluster-name>ProductConfig</cluster-name>
       <role-name>PC1</role-name> 
        </member-identity>   
    <!--  Enable Single Server mode, as we have only one JVM. -->
          <unicast-listener>
           <address system-property="tangosol.coherence.localhost">127.0.0.1
          </address>
          </unicast-listener>
          <multicast-listener>
          <time-to-live system-property="tangosol.coherence.ttl">0</time-to-live>
          </multicast-listener>  
        </cluster-config>     
        <configurable-cache-factory-config> 
           <init-params> 
              <init-param> 
                 <param-type>java.lang.String</param-type>
                 <param-value system-property="tangosol.coherence.cacheconfig"> 
                   config/product-config-coherence-cache-config.xml
        </param-value> 
              </init-param> 
           </init-params> 
       </configurable-cache-factory-config>
    </coherence>
    This is the VM arguments I am passing.
    -showversion -Dtangosol.coherence.override=tangosol-coherence-override.xml

  • Customized Cache Config and Coherence Override files not Overrided.

    Hi,
    I am doing an example on coherence and was wondering if anyone can help with a couple of questions.
    1. I am trying to override the coherence-cache-config.xml and tangosol-coherence-override.xml with my custom xmls. But when I start cache server from cache-server.cmd executable provided in bin folder of Coherence, it is not able to pick up the overrided files. How can I override both these files.
    2. In most of the examples a new executable file is made for cache server start and the custom coherence-cache-config.xml is specified in this. The examples runs perfectly fine but I'm not able to see the same cache elements available when I run cache-server and cache-client present in the bin folder of Coherence. How can I integrate both of them.
    3. When we use Coherence as a web service from server, are we suppose to use run cache-server.cmd for starting the cache server or make some custom file executable file made for cache server start.
    I know some of the questions may sound silly to you but I'm not still able to figure the answer to these question.
    Any help will be appreciated.
    Cheers,
    Varun

    Hi Varun,
    Yes you can use the property -Dtangosol.coherence.cacheconfig =<file_name> for specifying the override file. No creating a jar is not a bottleneck and you can use either jar or system property in Production Environment. It completely depends on how your environment is setup and is for the flexibility pruposes? Use whichever is handy ...
    Ideally, you WS application should run in a seperate JVM than your Coherence Nodes. In this scenario, your WS application is set as storage-disabled and your Coherence nodes will be set as storage-enabled and both WS and Coherence Nodes will be part of the Coherence cluster. There will be no syncing between WS application and Coherence Nodes if you are using distributed cache; all the data requests from the WS application will be served by the Coherence Nodes. But, if you are using Near Cache then the data syncing will depend on the invalidation strategy used by you in your cache configuration. Read more about near-cache scheme here: http://wiki.tangosol.com/display/COH35UG/near-scheme.
    In WLS 10.3.4, there is a integration of Coherence and you can create Coherence Cluster from the Admin Console and define various Coherence cluster nodes and the documentation is here (http://download.oracle.com/docs/cd/E17904_01/web.1111/e16517/coh_wls.htm). But if you are using any other version of Weblogic or any other container then you cannot start from Weblogic but you need to start them seperately. Also, you need to make sure that the Coherence Nodes with storage-enabled are started before the storage-disabled nodes.
    Hope this helps!
    Cheers,
    NJ

  • I utilise Entourage for my mails. When I tip a mail adress and write a wrong one, I change. When I will send again a mail to the same adress the wrong and good one appears both.  How can I delete the wrong one

    Question is here above but more details here under
    I use Entourage as Mail sender. I don't use the adress book.
    When I tip a wrong adress  and make the correction, the old one stays in the memory of my computer ( apple I Mac ).
    When I wish to send a new message to the same adress, the wrong one appears in the same time , and some time I don't remember wich is the good one .
    To avoid that problem, how can I delete the wrong adress for future sending of mails.

    Solution, use Apple Mail
    I can highly recommend migrating to the Address Book. You won't have the typo'ed history in your email.
    Here's the KB on how to clear the list
    http://support.microsoft.com/kb/823667

  • My brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    my brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    He remember the id name and password but he can't enter we don't now if the password is wrong or the id was  lock . I have the all thing for the ipad such as his box . I now this is security thing but you could help me.

  • How to share the same coherence cache in two EPN

    hi,all:
    I need to share the same coherence cache in two EPN. to put data into this coherence cache.
    only whe EPN can been deploy ok, the other EPN deploy will get below exception.
    Caused By: java.lang.IllegalStateException: Service "synergy-scheme-service" has been started by the factory with a different configuration descriptor
    at com.tangosol.net.DefaultConfigurableCacheFactory.validateBackingMapManager(DefaultConfigurableCacheFactory.java:1246)
    who can tell me why? or who can give me a example on how to share the same coherence cache in two EPN.
    thanks a lots

    Hi,
    This is because the system detects that you are using different configuration for the cache of the same name(and the domain name). If you want, we can discuss it, my mail is [email protected]
    Thanks
    Junger

  • Can I use multiple coherence instances on one JVM?

    Or can I explicitly designate a tangosol-coherence-override.xml to coherence? If I can, how to?
    Thanks.
    Edited by: user8028833 on May 31, 2010 1:35 AM

    OK apologies as I was going to just post the bits of code but I didn't get much time last night.
    This code was originally written by a couple of us who wrote some security and single sign on code for Coherence. The project is on Google Code here: http://code.google.com/p/coherence-security/
    The source is a Maven project so it follows the Maven directory structure. If you look in the coherence-security-core test sources there is a package called com.oracle.coherence.patterns.security.test.starter which contains all the ClassLoader code and classes to start a Coherence "cluster" in a single JVM.
    The com.oracle.coherence.patterns.security.ApacheDirectoryTest test class uses this code to start a cluster to run its unit tests. To start the cluster you call CoherenceClusterStarter.getInstance() for example the com.oracle.coherence.patterns.security.ApacheDirectoryTest testSecureClientWithUnauthorisedCredentials() method.
        @Test
        public void testSecureClientWithUnauthorisedCredentials() throws Throwable {
            // Set the main class that runs to be the Secure servers
            System.setProperty("coherence.incubator.mainclass", SecureSandboxStarter.class.getName());
            // Make sure the cluster members run with the [email protected] Principal
            System.setProperty("sun.security.krb5.principal", "[email protected]");
            CoherenceClusterStarter.getInstance();
            // Run the client as the Thomas the Tank identity ([email protected]) which is
            // not authorised to connect as an Extend client in the extend-permissions.xml file
            System.setProperty("sun.security.krb5.principal", "[email protected]");
            LoginContext lc = new LoginContext("Coherence");
            lc.login();
            Subject subject = lc.getSubject();
            try {
                Subject.doAs(subject, new PrivilegedExceptionAction<Object>(){
                    public Object run() throws Exception {
                        SystemPropertyLoader.loadEnvironment("client");
                        System.setProperty("tangosol.coherence.security", "true");
                        CacheFactory.getCache("test");
                        return null;
                fail("Expected to have a PortableException wrapping a java.lang.SecurityException thrown");
            } catch (PortableException e) {
                assertEquals("Portable(java.lang.SecurityException)", e.getName());
        }In the code above the first line sets the coherence.incubator.mainclass System property to the name of the class that will be run (in this case our secured DefaultCacheServer wrapper). Then the next line starts the psuedo-Cluster which the rest of the code uses.
    Note
    The Google Code above was originally done due to a requierment to secure Coherence using Active Directory (Kerberos). The code was started on 3.4 and eventually on 3.5.3 and then used to help Oracle change the Security API for 3.6. There are a few things not quite right and a few "gotchas" that are not in the code online.
    Anyone is welcome to take it and use it but I and the others who worked on it offer no warranty or guarantee it will work for you.
    As of Coherence 3.6 there are much simpler ways to do security - although if you want to use Active Directory or Kerberos some of the code on Google will still be useful.
    Any problems or questions give me a shout either here or mail [email protected].
    Regards
    JK

  • How to send to multiple people using same port?

    I am trying to have one person send TWO audio sources to 10 others using same port- lets say 12345. I get "Can't open local data port:" error. The first audio is fine since I just use .addTarget(). Is there a way i can do the same for the 2nd audio source still using the same port? thanks!

    As far as I know, you should transmit using even-numbered ports, eg. 22222 and 22224.
    I think a port numbered 22223 and 22225 are opened respectively to handle control information.
    Could be wrong, but try it anyway!
    StHogan

  • Can we use same SOAP ACTION in different environments?

    Hi All,
    I have a doubt.
    Can we use same SOAP Action URL in different environments i.e suppose say Quality, Production and Pre production.And the Target URL is different in both environments.
    If yest what is the impact in different environment.

    Hi ,
    SOAP action is nothing but operation/method in webservice .
    Usually at end system end as a good practice/std they will maintain the same soap action name in all their environments,but it's always better to cross check url and soap action with end system folks before configuring in PI .
    We have faced an issue in production some time back ,at target system end they upgraded their server and used new wsdl which is almost similar to existing but one of the operation they duplicated by adding few addition fields but forgot to inform PI system.Though we are using new wsdl but pointed to old soap action .Interface got failed in PROD after investigation we come to know that we are using wrong soap action
    Regards
    Venkat

  • How to Use Oracle Coherence in BPEL 11g

    i have a scenario to cache the results some where, so that i can make use of the same for the same request.
    I hope this can be done using Oracle Coherence. Could you please let me know how can i use this coherence for cacheing in BPEL 11g (in my bpel process)
    thanks for the help in advance.

    Hi.
    U can use the Coherence API within a Spring bean.
    Take a look at this https://blogs.oracle.com/jaylee/entry/accessing_coherence_cluster_using_spring
    That's one way to do it.
    best

  • Using same BS name in all XI env.

    Hello All,
    I need advice to manage XI software logistics. I have 3 XI environments. I used to do export and import IR objects and configure my scenarios manually.
    Now I am thinking to take export of my configuration objects to save my time. I have to use same Business System names in all XI environments to achieve this. I am giving some generic name for BS and taking export of BS and importing on other environments. I do changes techical system accordingly.
    My 3 XI envronments connects to different SAP systems.
    Do you see anything wrong here. is there any restriction like i have to use BS name as logical system name which is unique in landscape. SAP naming convention says to use BS as logical system. Is it mandatory.
    Please suggest.
    Thanks,
    Srinivas

    Hi,
    I don't understant why you need to have the same BS in your three XI environment.
    Imagine that your 3 XI environments are: DEV, QUA, PRD,
    you can define in your SLD : BS_legacy_DEV, BS_Legacy_QUA, BS_Legacy_PRD in order to distinguish them in your Landscape.
    Always in SLD you create a Group (like a group of transport). By this way, during the transport your config (ID) will be automatically created with the good BS. You have just to finish to fill the Communication Channel, coz after transport XI delete parameter "IP adrress and folder".
    BS_Legacy_DEV --> BS_Legacy_QUA (done automatically with transport DEV -> QUA)
    BS_Legacy_QUA --> BS_Legacy_PRD (done automatically with transport QUA -> PRD)
    Regards.
    Mickael
    Exactly, in SLD, open your Business System, look at the tab "Transport" and you can associate your "Group" between Source (e.g DEV) and target (e.g QUA).
    Edited by: Mickael Huchet on Jul 1, 2008 4:21 PM

  • We can replace of some kind of databases using Oacle Coherence?

    We can replace of some kind of databases using Oacle Coherence?
    Some kind of database can be replaced by Oracle Coherence using the Serialization Paged Cache as the backing storage for the service and using the Serialization Paged Cache as the backup store on disks.
    Do you agree with me?
    Edited by: jetq on Sep 4, 2009 5:53 PM

    So far basically what I did for the connection was create a constant equal to the name of the database, in the servlet. I will post my Servlet code so far, and I suppose it would help people with either I am going about this all wrong, or on the right track.
    public class SMServ extends javax.servlet.http.HttpServlet{
          private static void initialize()throws SQLException {
          String dataSourceName = Constants.MY_DS;
          try{
          Context wocContext = new InitialContext();
          DataSource ds = (DataSource)wocContext.lookup(dataSourceName);
          Connection conn = null;
          conn = ds.getConnection();
          }catch(NamingException ne){
    public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException,IOException{
    RequestDispatcher rdSearch =
    getServletContext().getRequestDispatcher("/RTMain.jsp");
    if (rdSearch != null)
    rdSearch.forward(req,res);
    }The doGet is there, because what is supposed to happen is the Servlet is supposed to be hit first then go to the jsp. My jsp basically just has a button sitting on it, all I am trying to get out of this is, a button click on the jsp will trigger a hardcoded SQL statement to pull data. As most of you can understand, my purpose is to see this relationship working so I can understand it. I am not sure if I am completely right on my DS setup there. The Constants.MY_DS is from another class, that is basicallypublic static final String MY_DS = "name of my database"; Name of the database being the one I have an established connection to in rad.
    Edited by: tsdobbi on Nov 21, 2007 8:52 AM

  • Inability to verify new/reset BB ID on Q10 using same email address

    Hi
    Please help: SOS!
    BB Q10 user religously backing up device data on my MacBook Pro at least monthly, most recently on 1st December.
    Was prompted later same day to verify my BB ID. Input wrong Password then in process of resetting it ended up also resetting my BB ID that was first created on 8th August 2012 using same email address, as the 'Your BlackBerry ID has been created' subject email is in my same email Inbox from both dates (8th August 2012 and 1st December 2014).
    Since then I am unable to -
    > Verify my same email BlackBerry ID on my Q10 persistently receiving error message: 'You can't sign in with a different BlackBerry ID on this device. Sign in with the original BlackBerry ID used on this device:'
    > Make any more recent backup of my Q10 data due to BlackBerry ID mismatch between the device (unable to verify) and BB Link (signed on with my email BB ID) running on MacBook Pro
    > Restore the 1st December 2014 backup on my Q10
    Therefore, in a bind as I have a ton of critical contacts plus nearly 1500 precious photos on my Q10 that I canNOT afford to lose; thus reaching out to the support community for praying to God a breakthrough solution.
    Since the same email address pulls any potentially, albeit unlikely, discrepant BB IDs together that may be duplicated on record there should be hopefully a way out for me to regain data backup / restore control over my Q10 device.
    I have been a happy BB user for well over a decade but my struggle all day today to get out of the ID bind leaves me deeply disppointed in ebsence of a straightforward yet secure solution to such presumably common issue faced by many.
    Thank you in advance for your expert attention and professional support.
    Kind regards
    NaderH

    outside_the_box wrote:
    Does it show in settings/BlackBerry ID that your email address has been confirmed?
    Well, I've asked that twice already... third time won't hurt!
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Java property for tangosol-coherence-override.xml ?

    Hi,
    Is there anyway I can specify the tangosol-coherence-override.xml file through java property?
    My application can run on eval, licensed, dev, systest, devtest environment and I want tangosol cluster configured separate for each environment.
    Any other way of doing it?
    Thanks,
    -Amit

    Amit,
    Additionally, starting with Coherence 3.2, there are pre-defined mode-specific override files that you could replace in the coherence distribution. You can see the name pattern in the tangosol-coherence.xml contained in the coherence.jar:
    tangosol-coherence-override-{mode}.xml
    The {mode} literal will be replaced with either "eval", "dev" or "prod", depending on the license used and the corresponding override will be loader.
    Regards,
    Gene

  • CacheLoader.loadAll(Collection keys) used by Coherence 3.0?

    I have constructed a CacheLoader for my database but according to my traces (and the rather poor performance I get) it seems like its loadAll(Collection) method is not used by Coherence 3.0 - instead I see calls to the normal load method for each key...
    I use a distributed cache (with two "storage enabled nodes" and a number of non-storage enabled "application nodes" using near cache with the distributed cache) and perform getAll operations each consisting of 500-5000 objects to the near cache on the "application nodes".
    Could you please confirm if this is a known limitation with Coherence 3.0 or if I shuld investigate further to see what is wrong with my setup?!
    Best regards,
    Magnus

    Hi Magnus,
    Thank you for the details. I would recommend a combination of a side-cache pattern and a read-through pattern via a read-only CacheLoader. The side-cache pattern will load the cache using the putAll() method for performance, and the read-through pattern will guarantee that your application always has a consistent view of the cache, even if it's size-limited (and thus can evict items). The read-through (via <tt>CacheLoader.load()</tt>) will be used only when items are unexpectedly evicted from the cache, and thus the singleton database reads should be almost entirely avoided.
    The basic algorithm for the side-cache is as follows (executed on your client JVM):
    1) Generate a keyset for the objects you want to place in the cache (the 100-50,000 objects you mentioned).
    2) Remove any keys from that keyset that already exist in the cache.
    3) Query the database for those objects, and place them into the cache using putAll(). You may wish to send a block at a time into the cache if you can't fully instantiate the result set.
    A more advanced approach, which generates a few extra database queries, but uses few application-tier resources:
    1) Generate a keyset for the objects you want to place in the cache (the 100-50,000 objects you mentioned).
    2) Remove any keys from that keyset that already exist in the cache.
    3) Split that keyset into subsets, generating a distinct set of keys for each cache server. You can determine the owner of a key as follows:
    NamedCache cache;
    PartitionedService service = (PartitionedService)cache.getCacheService();
    Member owner = service.getKeyOwner(key);4) Create an <tt>Invocable</tt> object to run locally on each cache server. This invocable object will query the database, placing its objects into the cache using putAll(). Note that even if partitions rebalance while this is occuring, it will work fine, just slightly slower as you'll be transferring data over the network rather than locally.
    5) As you'll be sending a different invocable object to each cache server, you'll want to use the asynchronous version of the Invocation Service so that the tasks will run in parallel. The <tt>execute()</tt> method of Invocation Service has an optional parameter for an InvocationObserver. Use a single InvocationObserver for all of the calls, sending the appropriate <tt>Invocable</tt> to each cache server.
    6) When all the agents have responded, you can continue with your processing.
    In both cases, if items are evicted from the cache for any reason, it will be transparent to your application, as you will retain the CacheLoader, which will automatically reload those cache entries.
    Jon Purdy
    Tangosol, Inc.

Maybe you are looking for

  • [Solved] Haskell/Xmonad Upgrade Issues

    It seems that the testing version of haskell-x11-xft requires the non-testing version of haskell-x11. Further, installing xmonad-contrib from testing seems to want to install the non-testing version of xmonad and haskell-x11-xft. It seems to be one v

  • My "Videos" app will not open on my iPhone 4S.

    Whenever I click on the app, my screen goes white like it's about to load, but then it jumps right back to the home screen. I've looked at a few different solutions to this problem, but none of them seemed to work. I've restarted my phone and I've tu

  • Flash Player Update Service Problem

    Hallo, I use Firefox, Vers. 13.0.1. and  Adobe Flash Player Vers. 11.3.300.262 According to the new installation of Firefox 13.0.1. and the above version of AFP the problem of AFP crashing after closing Firefox was resolved. However, I now have the p

  • Blocking stolen iPhone activation

    Is there a way to prevent someone from ever activating a stolen iPhone by serial number?

  • Network Security COde location

    Hi I have been using my printer since i purchaed in January 2015 It uses Web Base print (WDS) and all of a sudden on my connections it is asking for the network security key. My printer status is offline I use a Vodafone Pocket WIFI to run my interne