CacheLoader/Store invocation question

I believe the documentation is not very detailed when it comes to exactly how cache loader / store is invoked. I would like to see documentation explaining for instance:
1. Does the default backing-maps or some other component in the infrastructure keep track of concurrent calls to the cache store / loader for the same key or is it the job of the cache loader / store to detect and optimize this if so desired (in order to avoid that the same missing object is loaded from database multiple times in cases where each node has several service threads and/or database connections)?
2. Does the default backing-maps or some other component in the infrastructure keep track of updates that occur while a cache loader / store is requesting an object in order to prevent possible race-conditions (for instance if multiple service threads and connections are used or if updates are done using "write beside" (directly done to both cache and database using XA) and read using "read through")?
3. Can a cache store find out if object are locked or not using some node-local API? Using the normal Coherence API would result in dead-lock I assume...
I would appreciate if somebody could give a little info about these things!
/Magnus

Hi Magnus,
MagnusE wrote:
To me it seems like a specially designed CacheLoader (that in order to collect the needed information also implements the CacheStore interface but don't perform any updates to the underlying database) COULD do the trick to let me combine "read through" (that lazilly load objects from a database) and "write beside" (using XA on the cache and the database).
The special CacheLoader would keep track of any pending load (or loadAll) requests as well as the keys involved. By implementing also the CacheStore interface it would receive information about any updates performed
and if they involve any keys in the process of getting retrieved from the database it would keep the new value until the database request has terminated and in this case replace the retrieved value with the updated one (since the value from the database MAY in this case be stale since it may be based on the data before the XA transaction got committed).
I do not exactly follow this. Could you write a full transaction lifecycle example?
I am, since this may have an impact on if this is 100% race-free, trying to find out the details about what value an Oracle database return when if one tries to query an updated value when "prepare" but not "commit" (in the XA-protocol) has been called. AFAIK, you get the old value with Oracle database if you read a row for which an update is pending but not committed (doesn't matter if it is prepared). If you want to update a row for which an update is pending, then the transaction of the update invoked later blocks.
Ideal in this case would be that it block such a requests until either commit or rollback has been called but I am not sure this is the case? AFAIK, it is not.
The race condition would as I see it occur only under a very unlikely case - namely if an updated value has been evicted and is geting loaded in again by the case loader during the period between prepare and commit/rollback...
Do you see any problems with the proposed solution? It seems attractive compared to the entry processor based proposal since it would work together with transactional map (that will call normal get/getAll in order to read data) and be much simpler for the programmer that (once the special CacheLoader is developed and in place) can follow the standard Coherence model for accessing data (get, getAll)...
Please, an example (even in mail... to my new email address, not the old EPAM one). :-)
Best regards,
Robert

Similar Messages

  • Forgot answers to apple store security questions?

    Need help how to find way to my answers to apple store security questions?

    Ask the person who answered them for that account,

  • Trust Key Store - Interesting question ....

    Hi,
    Currently, using one way SSL, we get a 200 millisecond overhead from the client perspective. I have a gut feel that the trust key store check adds a lot of overhead (since it does an I/O check)
    if my gut is right ...
    IS there anyway to cache the trust keys store (I am using a stand alone java client running it on Junit)
    Thanks

    what this means to an end user ?I have no idea, but what it means to me is that JBoss don't understand the difference between them any more than you did when you asked the question.
    A keystore is a high-security item that needs to be kept under lock and key as it contains credentials sufficient to identify that peer legally, and I mean in a courtroom in a dispute over millions of dollars. A truststore on the other hand is a collection of public certificates whose security requirement is to prevent people adding untrustworthy certificates to it. A completely different matter. In any large organization, the personnel with the authority over the keystore would never be the same as the personnel with authority over the truststore. Putting both in the same file compromises the security of both. It makes no sense whatsoever.

  • App Store Security Questions Wrong Language

    Hi I am experiencing a problem on the app store. I try to buy something off of the app store and it asks me to answer two security questions. The problem is the security questions are in spanish. I dont know what they are saying! How do I change the language? And also know I tried to answer them and my account was restricted for a while -_-

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (101518)

  • App Store security questions keep timing out?

    I am trying to download some new apps, and since I updated to IOS6 it keeps asking me to answer security questions and add an email, and every time I do, it says it has timed out no matter what I try?
    Any tricks or suggestions?

    Try going on to iTunes on your laptop/PC or whatever it is on find the app you want to download. Download it. Then go on to your iPad find it on the App Store and download it on there. It seemed to work for me as i to have been having problems with timing out. Seems to bypass the extra security and timing out issue :)

  • Heading to the stores - quick questions

    Due to some issues discussed here and some help I received I decided to run out to shop for a few accessories so...
    1. Is there wireless earplugs that are good?
    <<<<<<Warning possible stupid questions>>>>
    2. Can I get a card that will allow me to use internet without having to be near wireless wifi (my home or hotspots)kind of like the sprint aircard I use for my laptop?
    3. Can I upgrade the battery?
    4. I need a dock/charger/player. Clock radio,boombox,types, so are the brands "I..." ("Ihome", "IP23", "Ih27", etc??) Apple Brands - or are they knock offs?
    5. And what about Logitech, Altec, JBL, and Bose. I know they are not Apple Brands but there are for sale in the "store" here on this website. So how can I be sure to get a good one that is better made for Itouch and not have the problems I have been having? (see my other posts)
    Thank you to all of you for your help!

    1. You can buy bluetooth headphones but they need a little adapter that plugs in the bottom of your iPod.
    2. No sry. but you could create an network on your laptop to share the connection.
    3. I believe you can send it back to apple for replacement for a fee.
    4. Are you talking about headphones? Most brands are pretty good. Try them out and see if you can actually hear the difference. Also encoding your music at a higher bitrate or lossless will also aid better sound.

  • Toy Store related question

    I was reviewing some of the code for the toy store project and wondering why in ShoppingCart fillInCartItemDetailsUsingViewObject method the following code was use to get the view object:
    ViewObject lookup = getDBTransaction().getRootApplicationModule() .findViewObject("ShoppingCartItemLookup");
    Based on the javadoc I believe one could use the following:
    ViewObject lookup = getApplicationModule() .findViewObject("ShoppingCartItemLookup");
    Why would you choose to use one approach over the other?
    I apologize if this is a stupid question, but it appears these would do the same thing.
    Thank you.

    From the white paper:
    "View Row message bundle (ViewNameRowImplMsgBundle.java) appears automatically when you define any built-in prompts, tooltips, format masks, etc., for your view object."
    In the Toy Store Demo, you can see that there were hints created on "Userid" and "Status". You can validate it by clicking on the "Accounts" view in the navigator, double clicking on one of the 2 attributes in the Structure pane, clicking on "Control Hints", and noticing that "Display Hint" has a value of "Hide".
    HTH.
    Thanks, George

  • Store pickup question

    I placed an order for an onkyo receiver online. When I placed the order BB was out of stock of that item & I chose to have it shipped to the store for pickup. Today I went in to pick up some other items I ordered & they now have the onkyo receiver in stock. Is there a way that I can get one of the receiver's that are now in stock instead of waiting on the one to be shipped to the store? I went on line to check the status & it says the item is being prepared. It's said this for the last three days. If anyone has a answer to my question I would appreciate the help.

    Hello Krmusps357,
    I know how excited I was to be getting a new receiver for my home theater system and how anxious I was over it's arrival. I know that backorder situations are less than ideal and to have your local store's inventory replenished before your order arrives is certainly at least a little aggravating. 
    Using the information you provided when you signed up for Best Buy Unboxed, I was able to review your order. I'm pleased to say that your receiver is at your local store and awaiting you to pick it up! I hope you enjoy and get many years of happy use from it!
    I'm very grateful that you wrote to us with your concern.
    Regards,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Cannot download apps from apps store - security questions

    I updated my ipad to IOS6 on sunday and since then, I cannot download anything form apps store.
    I lets me update software already installed but does not install new apps.
    Every time I try, it asks me to fill in three security questions with their answers, which I do, but I receive the message session ended and to try again later, and doesn't download anything. I don't know how many times I've tried but without success.
    Please help me solve this inconveniance.
    Mónica

    Update: in trying to get past the security questions again during another attempt to download a new app a message appeared that the "back up" e-mail address was in use already. Strange, since I hadn't gotten anywhere so far, but sure. Entered a completely different e-mail address and voilá: the app downloaded.
    Accessed my Apple ID (https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/178/wo/7ZmOPsE0KGRtkD DSmlYfhw/4.0.83.145.1.0.8) and found out the following:
    - there is the primary e-mail address, also being your Apple ID
    - there is another e-mail address, in my case the one provided as an alternate e-mail address during answering the
      security questions while trying to download an app, which apparently and without any explanation is turned into an
      alternate Apple ID.
    - Because of this you need to supply yet another e-mail address (while answering the security questions in the app store
      when trying to download an app) as a recovery e-mail address in case you forget your answers to the security
      questions, since you apparently cannot use the ones that are used as your primary and the out of the blue created
      secondary one
    - subsequently accessing your Apple ID through the webpage you'll find all this back, including the questions and
      answers and an e-mail is sent to the provided recovery e-mail address for verification.
    Shoot me, but all this got me out of trouble (for now) to the detriment of my beauty sleep.
    Hope it works for all of you with this problem as well!

  • Help! $25 at risk! iTunes store security questions

    I forgot the security questions to my apple id and so when I try to buy somthing on the store it says review your account, then I don't know the security questions. So I went on the apple id thing online and clicked manage apple id, then I signed in, then I clicked password & security thing and it said to enter the answers to the questions before I could acsess the section. Now I'm stuck, and I'm really mad about getting that itunes card

    If you didn't get the reset link on that screen then you don't have a rescue email address (which is not the same thing as an alternate email address) set up on your account, and you won't be able to add one until you can answer 2 of your questions - you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • App store app question

    I see an ebay mobile app,
    Is this safe to use putting your ebay name and password into?
    Im sure apple checks the apps for "hacks" before they release them into the app store?
    I don't want to deal with anyone stealing my ebay name and password.
    Thanks.

    Assume you mean this app
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=282614216&mt=8 (iTunes Link)
    The second line says eBay Inc. The second line is who makes it. As for help desk...have to remember they are just some joe shmo sitting with a database of questions and answers in front of them and they know nothing.

  • Buying MacBook in a Toronto Apple Store - some questions

    Firstly, sorry for putting this post in this forum: my questions are not strictly specific to the MacBook but I didn't see a suitable forum and this is the product I am looking to buy next.
    I will be going to Toronto for 10 days in May: can any Canadians out there (or people familiar with Toronto) tell me whether there is much difference between the (3?) stores in the city? I will be staying in near the Bloor/Yonge Street interchange.
    I am looking to buy a MacBook whilst in Canada but would want to max out the memory (and possibly & bigger HD if I don't get the black model) and wondered whether it's possible to do this instore (as per online) and what the time-turnaround would be?
    My other question I suppose would be directed at non-Canadians or those with experience of buying in North America and returning to UK. Buying in Canada appeals to me as it is cheaper but getting walloped for VAT & import duty re-entering UK does not! Any info/tips here greatly appreciated.
    Thanks.

    Hi macDogg, thanks for your reply.
    I just spoke to someone from the Yorkdale store who told me they they only do RAM upgrades instore and that if I wanted a larger hard drive they wouldn't be able to sell me one. This is ok since I would probably end up going for the top-end black model and so RAM would be the only thing I would end up changing.
    The guy also answered another question I had about Applecare which is great so it looks like I'll be good to go when I hit Toronto in May.
    Thanks for the info about Taxes - I should be able to claim those back as a non-Canadian resident (hopefully). I had thought of mailing myself the packaging (yes I do want it so I must be a bit sad!) so hopefully that will work out ok too.
    BTW when was the current range of MacBooks launched? I'm thinking there could be some new models (or slight revs) by May and hopefully I'll get Leopard too!
    Many thanks again.

  • Apple store security questions problem

    Hello ,
    there is a new security system for the itunes store as most of you know already , it's coming up with 3 questions , it's all ok till here but when i type my answers and try to proceed there is a message as you can see below, anyone have any idea about it ?
    "Your year of birth must be between 1880 and 2010"
    where i must typle my bday ????
    thanks,
    regards,
    Keo

    Hello again, i get some help from customer support , problem fixed.
    http://appleid.apple.com login here and enter your birthday , and after that you can definite your questionds and done.

  • Store Content Question: When will Harry Potter and the Deathly Hallows

    Be Available For Purchase?
    I've written several emails asking when iTunes will have the new Harry Potter available for purchase and haven't gotten a straight answer from anyone. I get what seems like form letters with BS answers each time. Does anyone know where I can ask this question and get a straight answer?

    Sorry, but no one, either here or at Apple can or will answer that. None of us, being just your fellow users, know, and most likely no one even at the iTunes Store knows for sure, and if they do, they won't be able to tell you. The iTunes Store can't offer the book until the publisher (or whoever holds the rights to the audiobook version) releases it to them, and Apple won't or can't announce that in advance.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Discussions page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums, in the User Tips Library and in the Apple Knowledge Base before you post a question.
    Regards.
    Message was edited by: Dave Sawyer
    Message was edited by: Dave Sawyer

  • Apple Store Workshop question

    I'm interested in working at the Apple Store as a Creative.
    Are the workshop instructors given Apple Training Series books to teach from or are they making their own curriculum?
    I'm doing some preparation and have a gotten a couple certifications, hopefully this should increase the odds of getting hired.
    Anyone know what else they look for in new employees?
    Marvin Rocks -

    Maybe i'm over thinking this Apple job idea.

Maybe you are looking for