Multiple caches use same distributed scheme, what about cachestore config?

Hi,
If a distributed scheme is configured with read-write-backing-map, will ALL caches be required to define the cachestore configuration if the caches are using the same distributed scheme? For example, we have two caches "ExpireSessions" and "Customer" which are using distributed-scheme. But only "ExpiredSession" cache needs to have read-write-backing-map (for transaction lite) AND the "ExpiredSession" needs to be persisted to DB. For "Customer" cache, it does NOT need to have read-write-backing-map AND it does NOT need to be persisted to DB. Currently, we have the following configuration which also has the "write-delay" and "cache-store" configurations for the "Customer" cache.
Is it possible not have cache store configuration (write-delay, cache-store) configuration for the Customer cache even though it is using the same distributed-scheme as "ExpiredSession" cache (which needs the cache store configuration?) We think it probably can remove some of the overhead and improve efficiency) for the 'Customer' cache operations.
Or is it required to have a separate distributed-scheme for "Customer" cache without eh cache store configuration? But it then will have use separate/additional thread pools for the distributed service?
Any suggestions?
Thanks in advance for your help.
<cache-name>ExpiredSessions</cache-name>
<scheme-name>default-distributed</scheme-name>
<init-params>
<init-param>
<param-name>expiry-delay</param-name>
<param-value>2s</param-value>
</init-param>
<init-param>
<param-name>write-delay</param-name>
<param-value>1s</param-value>
</init-param>
<init-param>
<param-name>cache-store</param-name>
<param-value>xxx.xxx.DBCacheStore</param-value>
</param-value>
</init-param>
</init-params>
<cache-mapping>
<cache-name>Customer</cache-name>
<scheme-name>default-distributed</scheme-name>
<init-params>
<init-param>
<param-name>cache-store</param-name>
<param-value>xxx.xxx.EmptyCacheStore</param-value>
</init-param>
<init-param>
<param-name>write-delay</param-name>
<param-value>24h</param-value>
</init-param>
</init-params>
</cache-mapping>
<!--
Default Distributed pricing-distributedcaching scheme.
-->
<distributed-scheme>
<scheme-name>default-distributed</scheme-name>
<service-name>XXXDistributedCache</service-name>
<thread-count>16</thread-count>
<backing-map-scheme>
<read-write-backing-map-scheme>
<scheme-ref>rw-bm</scheme-ref>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>

Hi,
Yes, you can use the same service for different caches with different configuration. You need to define base service configuration with the common parameters and all the caches with have their schemes (not services) refering the base service configuration along with their own configuration. For example,
          <cache-mapping>
               <cache-name>ExpiredSessions</cache-name>
               <scheme-name>default-distributed</scheme-name>
               <init-params>
                    <init-param>
                         <param-name>expiry-delay</param-name>
                         <param-value>2s</param-value>
                    </init-param>
                    <init-param>
                         <param-name>write-delay</param-name>
                         <param-value>1s</param-value>
                    </init-param>
                    <init-param>
                         <param-name>cache-store</param-name>
                         <param-value>xxx.xxx.DBCacheStore</param-value>                    
                    </init-param>
               </init-params>
          </cache-mapping>
          <cache-mapping>
               <cache-name>Customer</cache-name>
               <scheme-name>default-distributed</scheme-name>
          </cache-mapping>
          </caching-scheme-mapping>
               <!-- Default Distributed pricing-distributedcaching scheme. -->
          <caching-schemes>
               <distributed-scheme>
                    <scheme-name>default-distributed</scheme-name>
                    <service-name>XXXDistributedCache</service-name>
                    <thread-count>16</thread-count>
                    <autostart>true</autostart>
               </distributed-scheme>
               <distributed-scheme>
                    <scheme-name>default-customer</scheme-name>
                    <scheme-ref>default-distributed</scheme-ref>
                    <backing-map-scheme>
                         <local-scheme />
                    </backing-map-scheme>
               </distributed-scheme>
               <distributed-scheme>
                    <scheme-name>default-expiry</scheme-name>
                    <scheme-ref>default-distributed</scheme-ref>
                    <backing-map-scheme>
                         <read-write-backing-map-scheme>
                              <scheme-ref>rw-bm</scheme-ref>
                         </read-write-backing-map-scheme>
                    </backing-map-scheme>
               </distributed-scheme>
          </caching-schemes>
Hope this helps!
Cheers,
NJ

Similar Messages

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • Multiple users using same email account

    I'm the computer tech for a volunteer fire department. We have multiple officers using this computer and each one wants access to the same email account under their personal user accounts. Can this be done?

    You just need to "move" the profile to a common access location.
    http://kb.mozillazine.org/Moving_your_profile_folder_-_Thunderbird

  • SQL Loader : Loading multiple tables using same ctl file

    Hi ,
    We tried loading multiple tables using the same ctl file but the data was not loaded and no errors were thrown.
    The ctl file content is summarised below :
    LOAD DATA
    APPEND INTO TABLE TABLE_ONE
    when record_type ='EVENT'
    TRAILING NULLCOLS
    record_type char TERMINATED BY ',' ,
    EVENT_SOURCE_FIELD CHAR TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_DATE DATE "YYYY-MM-DD HH24:MI:SS" TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_COST INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    EVENT_ATTRIB_1 CHAR TERMINATED BY ',' ENCLOSED BY '"',
    VAT_STATUS INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    ACCOUNT_REFERENCE CONSTANT 'XXX',
    bill_date "to_date('02-'||to_char(sysdate,'mm-yyyy'),'dd-mm-yyyy')",
    data_date "trunc(sysdate)",
    load_date_time "sysdate"
    INTO TABLE TABLE_TWO
    when record_type ='BILLSUMMARYRECORD'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    NET_TOTAL INTEGER EXTERNAL TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE BILL_BKP_ADJUSTMENTS
    when record_type ='ADJUSTMENTS'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    ADJUSTMENT_NAME CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE BILL_BKP_CUSTOMERRECORD
    when record_type ='CUSTOMERRECORD'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    GENEVA_CUSTOMER_REF CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    INTO TABLE TABLE_THREE
    when record_type ='PRODUCTCHARGE'
    TRAILING NULLCOLS
    RECORD_TYPE char TERMINATED BY ',' ,
    PROD_ATTRIB_1_CHRG_DESC CHAR TERMINATED BY ',' ENCLOSED BY '"',
    LOAD_DATE_TIME "sysdate"
    Has anyone faced similar errors or are we going wrong somewhere ?
    Regards,
    Sandipan

    This is the info on the discard in the log file :
    Record 1: Discarded - failed all WHEN clauses.
    Record 638864: Discarded - failed all WHEN clauses.
    While some of the records were loaded for one table.
    Regards,
    Sandipan

  • How can I download eBooks to multiple iPads using same apple ID?

    How can I download eBooks to multiple iPads using the same apple ID?

    Those are called iBooks. On the devices go to iTunes app and then to the Purchased section in bottom row and find the media and tap install

  • 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 multiple threads use same transaction concurrently?

              Is it possible that same transaction is being used by multiple threads concurrently
              in WLS? If each thread is doing suspend and resume how does it work? Does the
              transaction implementation support it? Is there a way to do it?
              

    Why you don't tell us some more about your application?
              I'm assuming this is a relatively long running transaction if run
              serially. One common solution is to break this type of workflow into
              several separate transactions with queues between them.
              -- Rob
              Karambir Singh wrote:
              > Is there any workaround for this? I mean to something like explicitly associating
              > the txn with user created threads.
              >
              > "krishna" <[email protected]> wrote:
              >
              >>Transaction context cannot be propagated to user created Threads.
              >>-Krishna
              >>"Karambir Singh" <[email protected]> wrote in message
              >>news:[email protected]...
              >>
              >>>I'm starting a transaction in main thread and this thread spawns three
              >>
              >>threads.
              >>
              >>>I want updates done in main transaction and updates done in three child
              >>
              >>threads
              >>
              >>>to be part of the same transaction. The transaction is finally commited
              >>
              >>by
              >>main
              >>
              >>>thread.
              >>>
              >>>
              >>>
              >>>
              >>>
              >>>"Dimitri I. Rakitine" <[email protected]> wrote:
              >>>
              >>>>What are you trying to do ?
              >>>>
              >>>>Karambir Singh <[email protected]> wrote:
              >>>>
              >>>>
              >>>>>Is there any workaround to do this?
              >>>>
              >>>>>"Dimitri I. Rakitine" <[email protected]> wrote:
              >>>>>
              >>>>>>No, it is associated with a thread which started it.
              >>>>>>
              >>>>>>Karambir Singh <[email protected]> wrote:
              >>>>>>
              >>>>>>
              >>>>>>>Is it possible that same transaction is being used by multiple
              >>
              >>threads
              >>
              >>>>>>concurrently
              >>>>>>
              >>>>>>>in WLS? If each thread is doing suspend and resume how does it
              >>
              >>work?
              >>
              >>>>>>Does the
              >>>>>>
              >>>>>>>transaction implementation support it? Is there a way to do it?
              >>>>>>
              >>>>>>--
              >>>>>>Dimitri
              >>>>>>
              >>>>
              >>>>--
              >>>>Dimitri
              >>>>
              >>>
              >>
              >
              

  • Multiple Macs using same Apple ID for iTunes

    I have two macs, and I've been trying to download itunes purchased content onto one that I purchased on the other. I'm using the same Apple ID for iTunes access on both, but now it won't let me download, giving me that infuriating message about only being able to associate a device with one Apple ID over a three month period. I've neved used any other Apple ID for this, so I'm very confused about what could be happening. Only started after "upgrading" to iOS5 and iCloud.

    iTunes Match is associated with only one Apple ID and cannot be shared across Apple IDs. For your wife to make use of iTunes Match and see the music in the cloud she must login to your Apple ID on the iTunes Store and she will have to stay logged in. This may cause difficulty when updating apps purchased with her Apple ID.
    Also keep in mind that a computer can only be associated with one Apple ID for iTunes Match, automatic downloads and re-downloading of content once every 90 days: http://support.apple.com/kb/HT4627.

  • Multiple apps using same files, how to lock them?

    Hi all,
    I have a unique situation (or so I think). We are running our apps in Citrix servers, such that many users log in to a single citrix server and run our java apps. The problem is, it will be possible that more than one user might use the same app and start to work with the same file.
    I have seen the new NIO package, read that it has better file locking and stuff. I guess what I am after is a way to graphically display the user using a given file, with some other features. Basically, if user 1 runs the app, and clicks on a file, they have sole access to it. Now, if user 2 runs the same app, what I would like to see if I can do is in user 2's view of the file system, they see somethine like:
    xxxx.txt
    yyyy.xml (user1)
    zzz.bat
    So, somehow, I want to update the JList view of each users view either every so often, or when they click on a file that is being used by another, to let them know that it is locked AND the user who has locked it. This way, they can at least ask that user if they can "unlock" their use of it.
    Ideally, if there is some way for two or more copies of the same program (running on the same or different citrix servers) could communicate with one another to constantly update each other of file lock status, that would be great. However, if this is more complex than a few hundred lines, it is a rare occassion that this will happen so it is not worth the effot. Mainly, I need to minimally make sure that if a file is locked by one user, when another user tries to use it they are notified that it is locked.
    Thanks.

    How about doing file maangement through your server? Keep a database of what files are checked out by whom

  • Multiple logons using same Logon Manager Splash Screen

    I have an web application set up in Logon Manager where the user profile is set to login as a simple user with matching credentials. I also want the person to login to the same web page at the same login splash screen using different credentials as administrator. Can this be done. I am new to this so all help id welcomed.

    Many questions, many answers. :-)
    Yes, Rich, they would need to install the multiserver version
    for you to see that Enterprise Manager option in the CF Admin. But
    no, they would not need to uninstall the Server deployment (what
    you did) to add the Multiserver deployment. They can co-exist
    (though it's not something most would typically do).
    The best news for you is that, yes, they can indeed just
    setup a second site on their web server, and have that also point
    to the one CF Server deployment you have installed. That is, of
    course, assuming they run a web server that supports multiple
    sites. If it's Apache, you're good. If it's Windows, then as long
    as its Windows Server 2003 (or 2008, or Vista), you're good, too.
    (Just for completeness, for other readers, XP does not let you run
    more than one site at a time.)
    If during the installation of CF you told it to have ALL
    sites in the web server run with CF, you need do nothing more than
    create the new site. It should immediately be able to run CF pages.
    If instead you told it to only link CF to one site, then you'll
    need to run the web server configuration tool again. You can do
    that manually, even after the installation. See the CF Admin and
    Config docs for more on that, as well as on this very question. (I
    realize many like to just run stuff and hope that the interface is
    clear enough, but as this question shows, for some things anyone
    installing CF will be well-served by looking over that often-missed
    manual.)
    Hope that helps, Rich. It's not an RTFM answer. :-) Just
    saying that if you need more than what I've said, it is in the
    manual. Still, I'll be happy to answer follow ups if I can.

  • Multiple indexes using same columns on one table - is this doable?

    Hi
    I have a table like MyTab(a int, b int), and I am required to create a primary key index and a non-unique index on this table using columns (a,b) in a specific table space.
    The back end database is Oracle 10g.
    Here's what I have tried so far, needless to say, unsuccessfully.
    Alter Table MyTab
    Add Constraint c_1 primary key (a, b)
    Using Index (Create index mytab_idx on MyTab(a, b))
    Using index tablespace results_index
    So my question are:
    1. is this is possible? if so, what is the correct syntax.
    2. assuming it is possible, has anyone used this sort of construct before? it appears to be conflicting and inconsistent to me.
    Many thanks, and kind regards,
    Naran

    Naran H wrote:
    Hi
    I have a table like MyTab(a int, b int), and I am required to create a primary key index and a non-unique index on this table using columns (a,b) in a specific table space.
    The back end database is Oracle 10g.
    Here's what I have tried so far, needless to say, unsuccessfully.
    Alter Table MyTab
    Add Constraint c_1 primary key (a, b)
    Using Index (Create index mytab_idx on MyTab(a, b))
    Using index tablespace results_index
    You can't have the unique and non-unique indexes in place at the same time, but you can have the non-unique index supporting the unique (PK) constraint.
    I guess your problem is that you don't want to have an interval of time where you have dropped the existing unique index while you create the replacement.
    The only current way I can think of for getting from:
    unique index(a,b)
    to
    non-unique index(a,b) with PK constraint (a,b)
    without having a point in time where bad data can appear, and with minimal locking is:
    create unique index (b,a) online;
    drop index (a,b);
    create non-unique index(a,b) online;
    add primary key using index (a,b) enabled, novalidate
    validate primary key
    drop index (b,a)Regards
    Jonathan Lewis

  • Problems with multiple devices using same apple ID

    I have a Macbook, iPad and iPhone. After doing an IOS update now my devices keep saying I cannot use that same appleid because it's already taken. I cannot find away around this and want to know experience of others

    That warning occurs only if you try to create a new Apple ID using an email address already in use. An existing Apple ID can be used with mutiple devices. 
    What exactly did you do when you got that message?

  • Multiple Apps using same security system -  Attn: Frank

    Hi Frank:
    Based on what you suggested for a scenario with different apps/databases using one "application_users", "application_roles" tables and one "system-jazn-data.xml" file, does the following setup sound right?
    (1) APPLICATION_ROLES table
    Add an additional column "APPLICATION_REALM". This will have "app_one_realm", "app_two_realm" etc.
    (2) System_jazn_data.xml
    <application>
    <name>current-workspace-app_one</name> (***App One wrkspace****)
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>optional</control-flag>
    <options>
         <option>
         <name>data_source_name</name>
         <value>jdbc/BDTestDS_App_One</value> (***Points to connection for App One. Does this sound right?****)
    </option>
    <option>
    <option>
    <name>realm_column</name> (***is this correct?**)
    <value>application_realm</value> (**Is this correct?***)
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    <application>
    <name>current-workspace-app_two</name> (****App Two wrkspace. Make sense*** )
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>optional</control-flag>
    <options>
         <option>
         <name>data_source_name</name>
         <value>jdbc/BDTestDS_App_Two</value> (***Does this sound right? Coonection for App Two*****)
    </option>
    <option>
    <name>realm_column</name> (***is this correct?***)
    <value>application_realm</value> (***Is this correct?***)
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    (3) system-application.xml (Points to absolute path for system-jazn-data.xml)
    <jazn provider="XML" location="<absolute address>/system-jazn-data.xml" default-realm="jazn.com"/>
    (4) jazn.xml (Points to absolute path for system-jazn-data.xml)
    <jazn
    location="<Absolute address>/system-jazn-data.xml"
    default-realm="jazn.com">
    </jazn>
    (5) I am not clear about your comment "Regarding Application Context when assigning roles to a J2EE authenticase case see jaassec/index.htm doc" Are you talking about something in the web.xml for each app?
    How does (a)
    <option>
    <name>realm_column</name>
    <value>application_realm</value>
    </option>
    in "system-jazn-data.xml"
    and (b) "APPLICATION_REALM" in APPLICATION_ROLES table
    and (c)      
    <application>
    <name>current-workspace-app_one</name>
    </application>
    <application>
    <name>current-workspace-app_one</name>
    </application>
    in "system-jazn-data.xml" all tie in?
    In other words, how are the roles tied to the appropriate application context? Each app needs to know its role?
    Thanks

    Hi,
    please note that application_realm only works with the LoginModule provided with the document. It doesn't work with the OC4J oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule. Note that the how-to document I pointed you to explains the use of custom LoginModules by example of custom login modules I wrote.
    The way it works is that the application_realm if provided is used when querying the application specific roles. If a realm is not provided then all roles are queried for the user.
    Frank

  • Anbody used Hash partioning? - what about queries not using partition key

    Hi there,
    We have a table, will have over 3 billion rows when loaded and wish to implement partioning.
    Brief structure
    cal_id -- relates to date of transaction
    prod_id
    cust_id,
    sales_qty
    The id's are all surrogate id's/dimension keys
    About 80% of queries expected to use by on_sale_date of product rather than date of transaction hence considering using hash partition on product_id.
    Queries will hit > 1 partition in general and also some e.g 15% of queries wil be by date of transaction.
    Qusetions I have - how will these 15% of queries be affected. I expect will be poorer performance-wise because of partioning but becuase of size of table and 80% queries by product have to use partition.
    Also will partition-pruning work if queries use between rather than = operator
    Anbody used hash partioning - keen to hear other people's ideas/experience with hash partioning.
    Many Thanks

    Hi,
    When partition pruning is not used, then that depend on the access path.
    If it does a full table scan, then there is nearly no overhead to full scan all partitions (compared with full scanning the same non-partitioned table)
    If it is an index access and if indexes are local, then all indexes must be read. But with global index, again, there is no overhead in comparison with a non-partitioned table (except that indexes are a bit larger when global on partitioned table)
    However can be expected to partition even when reading all partitions, especially with parallel query.
    the between is not optimal with hash partitions, s it is hash partition, not range partition.
    Regards,
    Franck.

  • Multiple Nannos using same computer

    We have two Nannos using the same account and both download each other's play list. How can I either create two accounts or seperate the music so they do not download each other's play list?

    The following document outlines some possibilities:
    How to use multiple iPods with one computer

Maybe you are looking for