Two Coherence instances with same JVM

Hi all,
I have a special case need your advice.
we have an architecture platform build on top coherence to support some system data (session persistence data...etc).
and we are building applications on top the platform, the applications also need coehrence to support Application distributed data.
which is the best practice:
- Load two coherence instances with two separate configs
- share same instance with same config file
to isolate clear two parts, we prefer first solution, but we don't know which is drawback for this solution.
Best regards.
Jerome

Hi John,
I beg to differ: all you need to do is ensure that Coherence is loaded by two independent class loaders and not from a common parent class loader.
Of course, you can't reuse the same ports so you can't rely on the default Java properties for overrides, but you can use the operational configuration descriptor override feature to specify different settings for things like cluster address, and similar.
Best regards,
Robert

Similar Messages

  • Two TT instances  with same physical  files

    HI All,
    can we have two timesten instances sharing the same set of physical files like check point , log files .
    Node A
    Timesten instance1 running
    Node B
    Timesten Instance2 running
    both Timesten instances instance1,instnce2 with shared physical ( check point , log files )
    Please tell me above configuration is possible or not

    Can you please elaborate on the background to this question? Do you want to 'share' the files such that both instances can use them concurrently or is this related to some form of shared disk failover/HA mechanism?
    It is absolutely not possible to concurrently access the same set of datastore files from two different instances and in fact TimesTen goes to some lengths to prevent this. If you managed to circumvent this protection the result would be a totally corrupted database.
    It is possible to use shared disk failover with TimesTen though this is not at all an optimal way to implement HA with TimesTen. TimesTen replication is the recommended HA mechanism to use.
    Chris

  • Two instance with same port number in one machine.

    How can I config one machine(one IP) to listen to two different URLs with same port? (http://www.abc.com & http://www.xyz.com)??

    What you are looking for is a feature called virtual servers. Lots of information in Chapter 13 of the admin guide.
    The key is that there is only one server instance. (One available port pretty much implies one server instance.) But the virtual server feature allows you to specifiy different "virtual" servers based on the URL characteristics. (such as domain name)

  • Is it possible to install two SAP system with same SID but different instance numbers on one host?

    Is it possible to install two SAP system with same system ID (SID) but different instance numbers on one host?
    If yes, then how?
    If no, then why?
    Thanks in advance.
    Regards,
    Sarim

    Is it possible to install two SAP system with same system ID (SID) but different instance numbers on one host?
    Yes, it is possible. If one is CI (PAS) and the second one is an AS (AAS). In this case there will be only one database.
    If you are talking about two separate SAP systems with separate databases (Eg: A BI and an ECC) with the same SID then the problem will be with the database (Eg: Oracle)
    The database will be installed under /oracle/SID/112_64 (ORACLE_HOME) unless one database is running on 10 G and in that case the ORACLE_HOME will be /oracle/SID/102_64
    The next issue will be with the SAP file systems like /sapmnt/SID
    The most important problem will be with the switch to the sidadm and orasid users and the conflicts there. If there is a need to stop one of the SAP systems and if you do a switch to sidadm and issue a stopsap command which system will be stopped ?
    These are few of the many problems I can think of.
    So if we are talking about two separate systems with their own databases I would rule out the possibility of having two systems with the same SID.
    Regards
    RB

  • Two soa domain with same name "TestSOADomain" sharing same SOA schema ?

    I tried creating two soa domain with same name "TestSOADomain" (different path) sharing same SOA schema .However one domain came UP to Running mode and other domain going to AdminMode and "soa-infra" application of that domain is not active.
    I do want to understand can this be possible with SOA ,ie. two soa domain sharing same SOA schema ?
    If possible what are all the problems might come
    1. While executing soa composites with asyncronous behaviour ?
    2. How the polling services will work ?
    3. will the XREF_DATA table ROW_NUMBER column inserted uniquely while inserting data from two different domain into same SOA schema ?
    4. Other issues ?
    Thanks

    Each domain is expected to refer to its own unique database schema. Same SOA schema should not be shared by multiple SOA clusters/domains. It is technically possible though, I suppose, and still can run fine any one SOA environment at any given time with the other SOA environments/domains (sharing the same SOA schema) shutdown. It is not the general/recommended practice to share SOA schema across domains and there could be potential implications and unexpected behavior, particularly when the SOA environments pointing to the same schema are all running at a time.

  • Reflection - Two packages/classes with same name

    Hi There !
    I am in a situation and I need some help, if anyone can help me.
    I have two tools to work with different version of a server application. Now, the admin wants to have only one tool to work with both server app.
    The problem is that the server app has a jar file with the API to be used to access it. One jar for each version.
    Inside those jars files I have the same package and the same class ! But the implementation is diferent. So I will need to access one jar when accessing the old server app and another jar to access the new server app.
    I have no idea how to do it.
    I search arround google and I found that I can load a class at runtime and then with Reflection call its methods.
    I made a test app (simple, just 2 different jars with same package and class name just printing a Hello World and Bye World) and it worked very well.
    But when I tried to apply this to my code, I realize that one class need the reference of the other class...
    For example, I have a class named Server and other called ServerStatus.
    The Server class do the connection to the server and the ServerStatus get some server information. But the method that give me this information has a argument asking for an object of Server... like this:
    Server serv = new Server();
    serv.connect();
    ServerStatus servStat = new ServerStatus();
    servStat.getServerStatus(serv);I tried to do this with reflection but in the part that I need to invoke the method getServerStatus, I do not have the name of the class that is the argument (in this case Server).
    Something like this:
       Method  m = serverClass.getMethod("getServerStatus", new Class[] {?????.class});
             result = (Boolean)m.invoke(server, new Object[] {serverStatus});Do you have any ideiias to resolve this ?
    Or something different from reflection to access two different implementations with same package and class name ?
    If you need any other information, please ask me..
    Thank you so much !
    Regards,
    Thiago

    Thiago wrote:
    Hi.
    But now, how can I handle the object (because the newInstance() return a Object object.... not the class that I want (Server, for example)).
    When you declare a reference to be something more narrow than "Object" you're telling the compiler what methods and fields the referenced object supports. With a dynamically loaded class you can't do that at compile time, because the nature of the class isn't known until you load it at runtime.
    That's why it's very handy if you know that the class you are to load implements some interface which is known at compile time. Then you can access the object through a reference to that interface.
    Otherwise there's really no option but to handle the object through reflection. Find methods with getMethod() on the Class object and invoke them with Method.invoke().
    There are tricks to impose an interface onto a dynamically loaded class at runtime, but they are just neat ways of working through reflection.

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

  • Trigger two FPGA instances at same time

    I have some basic FPGA code that transmits data bits over a serial bus (RS485),  The code is written so that it waits in the first state of a state machine in a single cycle timed loop.  Upon a certain trigger, it starts reading a FIFO containing data and sends the data out on a Tx line.  It does this until all bits are send then it goes back to the first state to wait for the next trigger.  The trigger is needed because windows has to fill the FIFO first before the FPGA can start sending.
    I need two instances of this code running because I have two com busses (one is redundant).  So I am using the FPGA code as a subvi and I wrote a main FPGA vi to call two separate instances of the subvi in parallel.  A regular windows vi writes to the FIFOs for Tx and reads FIFOs for Rx.  No problem so far.
    The trick is that I have to start both transmissions within 200nS of each other (yes, nanoseconds).  Windows will write to both FIFOs in parallel, but the timing is 4uS apart, too long.  I tried setting up a boolean flag in the FPGA subvi, but windows can't write to the subvi control directly.  FPGA won't allow it (the Write function is greyed out).  I tried using a FIFO for a flag, but the problem is a race condition.  One of the instances will read the FIFO first and wipe it out.  The other does not get to read it.  I need one common trigger point to be used by both subvi instances.
    My final solution was to use a memory in the FPGA subvi and a numeric control in the main FPGA vi.  Windows write to the numeric control,  It can because the control is in the main FPGA vi.  Inside the main FPGA, I run a timed loop that looks for the numeric to be other than zero.  If so, it writes the value to the memory location used by the FPGA subvi.  After some time, the main writes a zero back to the memory to prevent the subvi from starting up again, and it writes a zero to the numeric to reset it.  The whole thing repeats, waiting for windows to write to the numeric again for the next transmission.
    I had to do it this way because sometimes I want to transmit on both busses, and sometimes just one or the other.  Numeric values are used to determine which to transmit on.  Now the transmissions start at almost exactly the same time, 1 or 2 nanoseconds apart.  But the trigger process seems very far fetched to me.  I was wondering if there is a better solution.  I'm pretty new to FPGA.
    - tbob
    Inventor of the WORM Global
    Solved!
    Go to Solution.

    tbob wrote:
    Basically I did the same thing using FPGA Memory.  From windows I write to a numeric control which resides inside the FPGA Main vi.  In the FGPA main, I write to the Memory.  Inside the FPGA subvi, I read the memory and decode the value to either use one or the other or both busses.  After fooling with this for some time, because the Read Memeory needs to use a shift register (probably due to it taking an entier clock cycle), I got it to work.  Both busses trigger at the same time.  I guess it really doesn't matter if I use a FIFO or if I use Memory.  The main issue is that I have to write from Windows to the FPGA Main, and then from the FPGA Main to the FPGA subvi.  Then the timing is exact as far as the subvi is concerned.
    There are a couple of advantages to using two FIFOs over your approach.  First, you don't need the shift register for the memory location.  Second, you don't have to worry about which VI is responsible for clearing the memory location, nor do you run the risk that one of your subVIs will execute twice, or not at all, if the memory isn't cleared at the right time.  Perhaps most importantly, you'll save yourself space on the FPGA because you won't need arbitration - the extra code that gets added when two parts of the FPGA try to access the same resource at the same time.  In your case, both instances of the subVI access the memory block concurrently, so the FPGA compiler adds extra logic to prevent conflicts.  If you only read the memory block in one place and only write it in one place (the read and write can be in different loops or subVIs) there's no need for arbitration.  By using two FIFOs you can keep them independent and avoid the conflict resolution code.  See the help for "arbitration" for more details.

  • Two durable subscribers with same ID in Weblogic 9.2 MP 2?

    External JMS durable topic subsribers of a distributed topic destination are connected to a Weblogic cluster with 3 Nodes. The clients are started with shell scripts on different hosts. A watchdog is checking if the clients are still alive; if not, they are restarted automatically. Randomly a node of the cluster is chosen and the client is reconnected (Note: Weblogic does not support durable topic subscribers for distributed destinations, this means you cannot connect with a cluster URL)
              However, from time to time we see two durable topic subscribers with the SAME ID connected on two different destinations: one of them is active, the other is not.
              This should not be possible. Is this a Weblogic bug or a mis-configuration of our domain.
              Thanks,
              Peter

    It turned out that our operating team stops the clients with "kill -9". I guess that this may be the reason that the durable subscribers remain registrated on the server? Of course, one should never use "kill -9", however sometimes this can not be avoided:
              - Weblogic 8.1 SP 4 could not startup if a durable "ghost" subscriber was registrated
              - Weblogic 8.1 SP 6 could handle this in a robust way!
              - Weblogic 9.2 MP1/2 seems to go to an unstable state. Once, for example, we registrated 1635 connections for one Weblogic instance with the state "CLOSE_WAIT" (Of course you may argue this may be the cause of our inconvinience. However, normally this value is less than 20)
              The fact that the durable subscribers are not correctly placed in the Weblogic console may not be correlated to the problem above, but just another bug. It is just annoying, as it is nearly impossible to unregister the durable "ghost" subscriber via the console. Sometimes even the subscriber id is not shown.
              Do my comments sound reasonable?
              Thanks, Peter

  • Different Bank charges GL account for two company codes with same COA

    Hi,
    While configuring OBXK ( Automatic GL account for bank charges)  , I see there is provision to enter only one GL account per chart of accounts.
    We have two company codes using same chart of accounts but different bank charges GL account. Please tell me how to configure this.
    Thanks,
    suresh

    Hi,
    Thanks Krishnan and Chandra.
    I agree with you it could be the same GL account for bank charges, but the business requirement is such that in one of the two company codes, bank charges are required to be tracked separately to be subsequently transferred to the other company code. This means two separate GL accounts are required for two company codes which needs to be configured in OBXK.
    Hope this clarifies my query further.
    thanks,
    suresh

  • Create two logical columns with same LTS mapping but diff filter conditions

    Hi,
    Problem:
    How to create two logical columns within same logical table mapped to same physical column but different filter conditions?
    I have a scenario where in,
    Physical layer columns
         - table1.employee
         - table1.emp_city
    I need a columns in logical layer:
    Logical layer - lt1.count_emp_delhi (counts distinct employees whose city_name = 'Delhi')
              lt1.count_emp_mumbai(counts distinct employees whose city_name = 'Mumbai')
    My approach:
    For Delhi column
    1. Create a logical column lt1.count_emp_delhi mapped to the physical column table1.employee
    2. Aggregate using countdistinct in aggregate tab.
    3. Edit the mapping condition
         3.1. Use the where clause and set table1.emp_city='Delhi'.
    For Mumbai column.
    Followed the same approach as above but in 3.1 if I change the condition to 'Mumbai', even the delhi column is populated with mumbai count which is ERRONEOUS
    Could some one please help?

    Hi,
    1. Create two alias tables for table1 in Physical Layer. Lets say TB_Mumbai and TB_Delhi
    2. Create a logical table in BMM layer (D1 Employee Cities )
    3. Drag and drop the employee & emp_city columns from both alias tables (TB_Mumbai and TB_Delhi ) into your newly created logical table.
    4. Now you can see two Logical Table Sources (TB_Mumbai and TB_Delhi )
    5. Now using Where condition, write the condition on each table
    NOTE: Don't write any condition on the Physical table Table1.
    Hope it helps you.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Requesting license for two different ssystem with same SID

    Hello,
    Is it possible to request 2 license for two systems with same SID. The systems are on different machines and their HW key are different but both have same SID. While requesting license, will it permit to create 2 different license with SAME SID.
    Regards
    Deb

    Hi Anil,
    The one for which the license is already requested is the main development portal with SID EP2. I have installed one local version of SAP EP with the same SID EP2. Now we need a license for the second system.
    If we change the HW key of the original license which is already applied in the main development portal under SMP and apply for a new license for the new local version, can it have any future implications, if any.
    What is the best way to deal with the situation. Is there a full proof way to change the SID of the EP system, which I can try in the local EP system.
    Regards
    Deb

  • Two BADI implementation with same Infoprovider in the filter

    Dear All ,
    I have implemented two BADI (for virtual keyfigures) on same Infoprovider with transaction SE19..
    When run the query, do run only the last BADI activated.
    I can do two BADI joined on same infoprovider ?
    Thanks.
    Charly
    Edited by: Charly1 on Aug 9, 2011 8:46 AM

    I am not sure if you can use multiple BADIs for one info provider; please check if you can write the entire logic in one BADI.

  • How join the two query block with same field

    sorry sir i am posting dublicate thread
    i thought you not understand my question
    sir i have two query block in report with same field
    i try the link object but that creat now block not creat link withen query block
    please give me idea
    thank

    Dear,
    Use data link object.
    Click at data link object then click on the fild in query block1 and drag it into the other query block data link will be created.
    try it

  • Different  timeout for two protected applications with same AM 7.1

    I have a AM 7.1 configuration planned.
    We need to protect two different application url's; And provide different session & idle timeout for each of these url's.
    Can we configure different timeout for two protected URL's / applications configured with same AM 7.1 ?
    /Kasi

    Hi,
    I have not actually configured this, but you can create a policy for that application with an "Active Session Time" condition.
    You also have an option there to destroy or not the session.
    But if the user is allowed to do SSO between the 2 applications then you should consider if you can destroy the session or not.
    Hope this helps.
    Andrei

Maybe you are looking for