Cache Implementation Query

Hi,
we have a use-case in which we need to query the Database and the generated events should be persisted in a cache(persistence coherence for the fail-over as all the servers can be restarted simultaneously) and then should put onto a channel, processed and then published to a JMS.
Can someone let me know how to use cache as event sink(from adapter) and Event Source (for Processor) in this case.
We would also require to update the cache so that the same events are not processed more than once.
Regards,
Puneet

For some PoC's what we have done is:
1. Use the Cache API to put events from the adapter
2. Define a caching policy that expires events base on some maximum buffer size
3. Define an EntryProcessor that intercepts the puts and send them on-downstream

Similar Messages

  • How to disable cache implementation in 8.1 SP6 for entity beans

    How to disable cache implementation in 8.1 SP6 for entity beans
    In our production environment, we want to disable cache implementation for entity beans. We are using weblogic 8.1 SP6.
    Weblogic cache implementation has been causing many cachefull exceptions so we want that it fetches the data from database everytime instead of cache.

    Check the "max-beans-in-cache" setting in your weblogic-ejb-jar.xml. The cache full exception, means that a new bean could not be created because of this cache being full.
    Nothing to do with fetching from the database directly.
    If you really want direct fetches then do not use beans at all. Consider using direct JDCB/SQL calls (without a entity bean) to fetch huge data.
    Let's again review your application based on the below explanation before making a decision on which configuration change to perform:
    If you truly have many ejbs simultaneously enrolled in transactions, then yes, the cache must be big enough to hold all the instances.
    Your cache must have a max size large enough to handle your peak simultaneous transaction load.
    Also, try to ask the following query to your application developer. Does every user actually have to have more than one bean in the cache ? Are many of these values read-only reference values that are not updated ?
    SOLUTION CHOICE:
    1. If you are testing with more number of users simultaneously, then you will need to increase the "max-beans-in-cache" setting in your weblogic-ejb-jar.xml to match the load.
    2. If you have few users but still seeing a lot of beans, then consult with your application developer and try to ask the above questions (Does every user have more than......) and based on that try to redesign/tune your application to make it an effective Entity bean model.
    3. If you have queries where huge result sets are returned, consider using plain/direct JDB/SQL calls.
    Arun

  • The Best Cache implementation around...

    Hi All,
    Apologies if this may not seem to be the best forum to ask my question. I was studying different cache implementations. Came across Tangosol and JBoss Cache. They seem to be ideal candidates.
    Has anyone had a chance to do a comparison between them? Or is there some other cache impl which is better than either of them?
    Thanks a lot,
    -Vineet

    That is kinda different. Cache in what sence? Every existing application that requires a cache can have its own implementation. Not every application has a unique implementation. For example, JBOSS Cache is only for websites, and while you program within your xml descriptors you tell it cache preferences... But depends what kind of cache you care about.
    Previously on my POS system, I cached the products in a way which I wanted to do it. You just need basic understanding what a cache implementation is, and you can do your own implementation for your unique problem.

  • Caching a query

    Guys,
          I understand there are two types of OLAP Cache.  Global and Local.  OLAP Cache can be reached through RSRCACHE.  There are significant differences between these 2 types.  I want to know which one is checked by default.  Global or Local?
    Thanks,
    RG.

    Hi Ram,
    SAP Excerpt :
    Note that the local cache is used, for example, in the following cases:
    ·        When the cross-transactional cache has been deactivated (see the parameter Cache Inactive).
    One more help reads
    "The local cache is used if you cannot save in the cross-transactional cache because it is not active, or if the InfoProvider cache or query cache has been deactivated."
    This would mean that the global cache is accessed first(Cross transactional and global cache is the same) and the local cache is used only if the global cahce or its cache objects are inactive.
    Link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/41/b987eb1443534ba78a793f4beed9d5/frameset.htm
    Cache inactive: If you set this parameter, the cross-transactional cache is deactivated centrally or the global cache is inactive.
    YES that would mean global cache is on... and I think the local cache will be on if you have mentioned some size for the local cache Local size in MB
    Hope it helps.
    Regards,
    Sunmit.
    Edited by: sunmit bhandari on Jan 26, 2009 11:09 PM

  • Caching at client end using Oracle Cache Implementation

    I would like to know if we could use Oracle' Cache Implementation at the client end [Application server]- if so how do I go abt it & from performance point of view is this better .... Pls get back at the earliest

    Dear All,
    I got this link while googling -
    http://www.ibm.com/developerworks/webservices/library/ws-cach1/
    ................ caching concept is clear now............ but still
    implementation part is not cleared.....
    How, What and Where i need to do changes for this............
    I am using JDK 1.5 and Axis 1.4........
    Regards,
    Santosh Sharma

  • OLAP Cache for Query Performance

    Hi Experts,
    I have below 2 Questions before we implement OLAP Cache for our Queries:
    1) We have 15 imporatant queries - which do NOT have any variable/selection screen.
    (question here is will it work for those kind of queries which dont have any selection screen/ variant ? ) --> client wants to prime the cache for few queries which dont have variable screen.
    In this case, say if data is later filtered on any CHAR , will it take the data from Cache?
    2) I have a query which initially will have few characteristics in the drill down when we first execute and users would be drilling down on many other characteristics after that. So if I want to fill OLAP cache for this query then what is the best way so that each drilldown in the query gets data from cache.
    Thank you,
    -Su

    Hi Raghavendra,
    Thanks for your response.
    For first Question, Do you mean , even if we do not have any Selection varaibale on Query--we still can fill OLAP cache for it for its all values (i.e. No selection means "*") ?
    If this is the case, then what we need to defile in General Precalculation (Variable assignment) while creating a new setting for the query.
    Thanks,
    -Su

  • Query performance : TOAD Vs SQL Plus, and caching of query output

    Hi,
    I have one query which takes more than 2 minutes in TOAD, but the same one takes less than 30 secs when executed in SQL Plus. Can some body please tell me why the performance is so different in the two. Is this a known issue? Can i get the actual time required for a query?
    Also when I execute the same query in TOAD for the second time in succession, the execution time reduces drastically from 2 mins to 10 secs. Does caching occur in TOAD? Can I disable it. I am using TOAD for Oracle, Version 9.0.0.160.
    Thanks,
    Rahul.

    user641207 wrote:
    Hi,
    I have one query which takes more than 2 minutes in TOAD, but the same one takes less than 30 secs when executed in SQL Plus. Can some body please tell me why the performance is so different in the two. Is this a known issue? Can i get the actual time required for a query?
    Also when I execute the same query in TOAD for the second time in succession, the execution time reduces drastically from 2 mins to 10 secs. Does caching occur in TOAD? Can I disable it. I am using TOAD for Oracle, Version 9.0.0.160.Rahul,
    it's unlikely but possible that the session established via TOAD has different settings than the session established via SQL*Plus.
    You can check V$SQL and V$SQL_SHARED_CURSOR to find out if the SQL you're executing has different plans, which would result in multiple rows in V$SQL for the same SQL_ID (10g) or ADDRESS, HASH_VALUE (pre-10g) with different CHILD_NUMBERs and V$SQL_SHARED_CURSOR can tell you why they can't share the plan, in case you've got multiple plans.
    In addition you can use V$SES_OPTIMIZER_ENV to find out if the optimizer related settings differ for the TOAD and SQL*Plus session.
    The caching effect is probably the caching of the database rather than anything else. I don't think that TOAD caches the result on the client side.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Servlet side Cache implementation - need cache (updateable, portable) in Servlet

    Hi Guys,
              Any ideas on implementing an updateable cache on a servlet. The problem is
              that
              it must be updateable (I must be able to tell it to update itself whenever a
              welldefined
              event occurs), and it must work in a cluster environment, and I would prefer
              it to
              be J2EE portable.
              I know I can poll from the servlet - but this isn't the most elegant
              approach.
              My servlet needs to do some really fast security/auditing, but I don't want
              it to
              always do something like an EJB lookup. I can quite easily cache what I
              need
              in the hashmap - problem is updateing it and also having it work in a
              clustered
              environ.
              Any other ideas appreciated,
              Jon
              

    ejp wrote:
    Of course it is. That's how any Map behavesWhen a key has been discarded its entry is effectively removed from the map, so this class behaves somewhat differently than other Map implementations. I meant, the mapping doesnt prevent the key from getting discarded cause it is a weakreference.
    No: it's out of your control, but it's within the garbage collector's control. That is the purpose of the class.You aint talking about the situation written in this email. So if it is out of control, your suggestion about weakhashmap isn't gonna work. Out of control in the sense, it doesnt treat a key which was recently accessed any different from anything which wasn't accessed for a long time.
    Because by choosing a key that will get garbage-collected at the time of interest to you, you ensure that the WeakHashMap will drop the corresponding value at the same time as the key is GC'd.Not realted to the problem above. Summarily WeakHashmap is no good for the above scenario.

  • JDBC or MySQL cache - update query

    The following query is ok but only works after a second refresh of the page.
    The query is manupulated by the URL:
    UPDATE activiteiten SET afgerond = 'checked' WHERE id=6
    UPDATE activiteiten SET afgerond = 'unchecked' WHERE id=6
    The query works (without errors) but somethime the query was not executed. My teacher said he thought that it was the cache. He refers to ODBC because he known the problem there.
    Maybe somebody here can help me to stop JDBC or MySQL caching, were can I configure it? Waiting for response, Adri

    do a commit after your execution of statement..

  • Purge cache by query SAPurgeCacheByQuery

    Dear All,
    I was trying to clear the cache for specific query entries using the nqcmd "SAPurgeCacheByQuery".
    This command does not clear the cache for queries.
    Below is the extract from the bat the launch the nqcmd (Clear_Cache_User.bat)
    d:\Applications\SiebelAnalytics\server\bin\nQCmd.exe -d OBIEE -u Administrator -p Siebel7 -s D:\Staging\Clear_Cache_User.txt -o D:\Staging\Clear_Cache_Out_User.txt
    Below is the query in Clear_Cache_User.txt
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0, Account."Parent account name" saw_1, Account."Account code" saw_2 FROM "1-2-1 Survey Analysis" ORDER BY saw_0, saw_1, saw_2');
    Below is the output file after the nqcmd has completed (Clear_Cache_Out_User.txt)
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
    RESULT_CODE RESULT_MESSAGE
    1 [59118] Operation SAPurgeCacheByQuery succeeded!
    Row count: 1
    I have launched the bat file and in the output file it said that , Operation SAPurgeCacheByQuery succeeded! however the cache was not cleared.
    Also note that we are using it in OBIEE version 10.1.3.4.
    Kindly help.
    Kind Regards
    Anju
    [email protected]

    Dear All,
    I was trying to clear the cache for specific query entries using the nqcmd "SAPurgeCacheByQuery".
    This command does not clear the cache for queries.
    Below is the extract from the bat the launch the nqcmd (Clear_Cache_User.bat)
    d:\Applications\SiebelAnalytics\server\bin\nQCmd.exe -d OBIEE -u Administrator -p Siebel7 -s D:\Staging\Clear_Cache_User.txt -o D:\Staging\Clear_Cache_Out_User.txt
    Below is the query in Clear_Cache_User.txt
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0, Account."Parent account name" saw_1, Account."Account code" saw_2 FROM "1-2-1 Survey Analysis" ORDER BY saw_0, saw_1, saw_2');
    Below is the output file after the nqcmd has completed (Clear_Cache_Out_User.txt)
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
    CALL SAPURGECACHEBYQUERY('SELECT Account."Account name" saw_0 FROM "1-2-1 Survey Analysis"')
    RESULT_CODE RESULT_MESSAGE
    1 [59118] Operation SAPurgeCacheByQuery succeeded!
    Row count: 1
    I have launched the bat file and in the output file it said that , Operation SAPurgeCacheByQuery succeeded! however the cache was not cleared.
    Also note that we are using it in OBIEE version 10.1.3.4.
    Kindly help.
    Kind Regards
    Anju
    [email protected]

  • Cache mode query overview.

    Hi guys,
    In the Early Watch report I have an overview on how many queries use a certain cache mode (chapter 12.1), but it doesn't show which queries they are.
    I have 4 queries with cache switched off and I'd like to know which ones they are. Any idea if there's a table/trx somewhere where I can find this information?
    Thanks.
    Eduard

    hi Eduard,
    yes, i added the info later just in case you want go by individual query, RSRT won't serve a mass checking.
    please close the thread and reward helpful answer if RSRREPDIR serve your purpose.
    hope this help.

  • Caching HQL query automatically?

    Hi,
    Is it possible with tangosol to cache the result set of the Hibernate Query Language automatically?
    For example:
    List result = Session.createQuery (“select items from ItemTable items�?).list ();
    The above query fetches me around 20 records. Is there a way to cache all those records automatically?
    If possible then what are the configuration changes I need to make in hibernate and tangosol and if you dont mind please provide me related document link.
    Regards,
    Hiisi

    Hi Hiisi,
    Please take a look at Section 19.2, “The Second Level Cache and Using Coherence and Hibernate.
    Regards,
    Dimitri

  • Cache implementation

    Hi...I have to implement a cache kinda program...it should be a something like a key-value pair. Its like im gonna specify the limit of it. so if it reaches the limit...the oldest one stored should be erased and the newest one should be placed inside the cache..plz help me...

    It's your lucky day! There is a class in the Collections Framework designed just for that:
    http://java.sun.com/javase/6/docs/api/java/util/LinkedHashMap.html
    See the protected method removeEldestEntry.

  • Best practice to implement Query By Form

    Hi,
    We have some scenario where we have more than 6 optional fields in the request and need to create a dynamic query joining diffrent tables based on the optional fields.
    Is there any Best practice in ALDSP to Achieve this ?
    Thanks

    Hi,
    I am using adhoc query now , Every time a different XQuery is genereted depending on the parametes and its woking fine. Since every time the query plan is changing will this create any performance issue ?

  • URGENT u0096 MM Purchase Order (Implementation Query)

    **URGENT HELP REQUIRED**
    Dear All,
    I need some Information/help URGENTLY for a presentation/meeting I will be attending later this week.
    If a service based company, wants to start implementing Purchase Order Processing (ME21N), however they only want to implement the actual MM Module to a (Very Minimum) what/how would they make this happen??
    Currently this company has an Invoice Management System Called “Ebydos/Readsoft and all Vendors Invoices are managed & paid via this transaction”. They do not want to scrap this system (So we will NOT be using T-Code - MIRO). In addition, this Company does NOT want to Goods Receipt so basically “No” MIGO or ML81N – We have 2 Way as opposed the the usual 3 Way matching.
    This company wants to Implement a VERY MINIMAL – MM System, where its users Can Raise Purchase Orders, without maintaining the Item lines. So basically they want Purchase orders with the Header Information Only (EKKO), and they don’t want to maintain anything in the Item information (EKPO) – I assume this is because they don’t want to maintain material etc...
    Also if this company absolutely has to use the Item Level in ME21N (Creating Purchase Orders), then they would ideally like to code the item Direct to a GL Account Code (Table – BSEG), rather than a particular item & purchase groups / material group – (Table EKPO).
    I hope the above makes sense, basically the Information I need is the following:
    (1) Is it possible to Create purchase orders WITHOUT implementing MM (EG – Can some form of Purchase Ordering System, be created/configured in FI/CO) – Which we currently have, which would give us control on what we procure??
    (2) If we must implement MM what is the Minimum Implementation/Configuration we need?
    (3) Can you Create Header Only (EKKO) Purchase Orders, without maintaining Materials or Doing Item Lines. If we MUST do Item lines, can they be coded DIRECT to a GL Code (BSEG) rather than a particular Item & Material / Purchasing Group (EKPO)??
    (4) Finally Can SAP handle the demands we require (as detailed above). Or are we talking about some form of a Be-Spoke system, linked or within SAP??
    Thanks for your help in advance. Please email or post DOCUMENTATION / LINK to support /back-up your information/theories…
    Kind Regards
    RICK

    1) Is it possible to Create purchase orders WITHOUT implementing MM (EG – Can some form of Purchase Ordering System, be created/configured in FI/CO) – Which we currently have, which would give us control on what we procure??
    What is the use of purchasing system when you don;t even have the mateiral created or any other org structure for purchaisng
    rather then use just existing system in this case
    (2) If we must implement MM what is the Minimum Implementation/Configuration we need?
    The minimum config you need is org structure of MM like purcahse org
    purchase group, plant, storage location etc. to start purchasing process
    (3) Can you Create Header Only (EKKO) Purchase Orders, without maintaining Materials or Doing Item Lines. If we MUST do Item lines, can they be coded DIRECT to a GL Code (BSEG) rather than a particular Item & Material / Purchasing Group (EKPO)??
    No it is not possible wihtou item line but in item line you can enter just text of mateirl but in this case you need cost center or any cost object
    you can create cost center and attcahe GL to that
    (4) Finally Can SAP handle the demands we require (as detailed above). Or are we talking about some form of a Be-Spoke system, linked or within SAP??
    SAP can handle but it is useless in my point of view
    that's the reason first time i didn;t reply but i see your request agian..so i replied.

Maybe you are looking for

  • SQL Developer connect to RAC12c (Basic) failed with ORA-01017 invalid username/password; logon denied

    I'm using scan in hostname to connect as Basic that failed ORA-01017.  I'm using the same credential system to logon from sqlplus and is fine. Any ideas?

  • 4.1 update Duration

    Hello everyone ! I'M having a problem with my iphone 4 i just bought it and Im trying to update it to 4.1 with itunes the update started like 5 hours ago and know it's just frozen and nothing happens does anyone know how much time will it take ? or i

  • Cannot find wifi-menu command

    I have a lenovo T430 laptop.    I made my usb stick into a bootable medium using YUMI. Then I boot into arch linux 2013.05.01 from usb.  But I simply cannot find the wifi-menu command.  So what might be the reason for this ?  Thanks a lot

  • How to change hard drive on MacBook

    How do I install a new hard drive on a MacBook  please

  • Auto Lenses Hiccup?

    I'm currently running 6.1 because I wanted to have the ability to apply lense correction in camera raw. I've gone through a number of images with both of my Nikon D3's where I click the enable lense correction button and then have to choose the drop