How to use caching in flex

Hi
i'm new to flex.I want to use caching in the flex application but i couldnt find any details regrading that.In my application will be getting values from a xml feed but on holidays there wont be any change in the values so instead of ping the server i would rather cache it and then display the values.Can u help me on this??
Thanks,
Magesh

Hi Magesh,
You can use shared objects (flash cookies) to save persistent data on a user's computer. This local storage is not garanted! The user can disable it and can also limit the amount of data that can be stored.
I think you still need to query the server to check if the data has been updated. If so the app can receive remote updated data otherwise it can use local data.
hth,
Jerome.

Similar Messages

  • How to use Cache Management Library (CML) for custom applications?

    Hello,
    We are planning the migration of multiple applications (J2EE, Portal, Web-Dynpro for Java) from 7.01 to 7.3 and we would like to replace some custom cache implementations with a central cache management provided by the SAP Web-AS Java.
    Several SAP standard services (e.g. UME, Configuration Manager, Scheduler) seems to use the "Cache Management Library" (CML):
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/f833eb306628d2e10000000a42189b/frameset.htm]
    Such caches can be monitored using SAP Management Console (AS Java Caches).
    Portal Runtime (cache_type=CML) and Web Page Composer can also be configured to use CML:
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d822a779cf0e80e10000000a42189b/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/13/76db395a3140fcb17b8d24f5966766/frameset.htm]
    So our questions:
    How to use CML for custom applications?
    Is there any example or documentation available?
    Kind Regards,
    Dirk

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • How to use cached DISPID Binding in excel vba ?

    Hi All,
    I trying to call soap service in excel using vba so please provide some syntax or code to consume soap service using Cached DISPID Binding.
    Also how/where to find the DISPID of soap service or any other component.
    Your help will be highly appreciated.

    Hi Balaramji,
    As this question is actually all about VBA programming, you can check these two links that may be helpful:
    Web Service calls from VBA excel
    Consuming Web Services in Excel 2007
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use captcha in flex?

    Hi,
    I am new to flex.
    Can anyone tell me how to use the captcha in flex?
    Is there any lib present for this?
    Also, how should I do on server side validation for that?
    Any help appreciated.
    Thanks,
    Tushar Gandhi.

    a working example + source can be found here:
    http://www.flexer.info/2007/11/09/captcha-in-flex-using-to-check-the-user/

  • How to use cache on Proxy service in OSB

    Hi all,
    I need to use cache on proxy service. I am new to OSB, I have searched for this on net but unable to find.
    Please come up with some docs or links going through which I can achieve this.
    Thanks,
    Phani.

    i assume you already checked the result caching feature which can be used on the business service?
    http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/configuringandusingservices.htm#OSBAG170

  • How to use caching in OSB

    Hi all,
    I am very new to the OSB. I have got one requirement in which I should create a cache
    to store the result for a certain period of time. The result would be a collection of employees
    which comes by invoking a webserivce service. We have a webservice which returns the employees
    based on the search criteria. If someone want the same list of employees we are hitting the web service again
    instead of that we are planning to cache the result of the search criteria and use them if the same request
    comes, rather than invoking the web service every time. For that, Is there anything available in OSB ?? if so how
    can I make use of it.. Kindly come up with your help please.
    Thanks & Regards,
    Phanindra.

    my the business service might return more than 10,000 records can I still go with the in built cache? or will it lead to performance issue?If you have enough memory resource available and following the best practices, you won't have any performance issue. It is highly scalable. Please refer -
    http://tomhofte.blogspot.com/2010/06/coherence-in-oracle-fusion-middleware.html
    http://blogs.oracle.com/MarkSmith/entry/osb_and_coherence_integration_1
    Regards,
    Anuj

  • How to use https inside flex with 2-way authentication

    I've got a Flex app which provides a front-end for doing  basic CRUD db operations. The app is served up from a Tomcat/Blaze server using 2-way authentication and uses Java objects to do the server-side db work. Serving the app works fine. The problem arises when the data components in the app try to call back to the server to pull data from the db. The HttpService template needs to be https://...   but the call cannot complete because Flex does not provide a certificate to the server as the browser does.
    Using http://... works fine but then the db data is sent in the clear (which is very bad).
    What is the standard way to solve this problem? Is there a way to get Flex to use the same cert that the browser provided?
    Thanks for any assistance!
    [ RHEL5, Apache Tomcat 5.5.23, JDK 1.5, IE/Firefox browsers]

    Nitin,
    Kindly go through the below links ...
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/7e2441509fa831e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    Also, make a search on the SDN as this question has been answered many a times on the forum.
    Regards,
    Neetesh

  • How to use a Flash/Flex GUI for DW Extensions

    I am creating a DW extension for an image and flash gallery.
    The extension will be accessible from the Insert menu. Once
    clicked, it would present me with a Flash/Flex form to
    search/browse for images/swf by file name or tags. Once I select an
    image/swf and clicked OK, it would insert into my webpage the
    absolute URL associated with the image/swf. The problem is I am not
    aware of how to create an extension with a Flash/Flex GUI.
    Any suggestions would be greatly appreciated.
    Thanks,
    srtr4k

    You should check out the Flash panels and Dialogs section of
    the Dreamweaver API reference. Here is a link.
    http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/WS4FB61645-9C4E-4667-B6D4-0E5F553BEF4 F.html
    This gives you direct access to Flash panels and dialogs from
    the Dreamweaver Javascript API. Adobe is working on a document for
    how to create CSXS based Flash Extensions. CSXS based extensions
    only work as a floating panel that surface themselves in the
    Windows, Extensions menu.
    -Scott Richards
    Dreamweaver Team

  • How to use Caching for DB-Adapter ?

    Hi,
    we have a complex BPEL process and want to make lookups from a database. The values are modified rarely.
    The lookups are done by (JPA) queries using the Database Adapter.
    Is there a way to activate caching so that the same queries are not forwareded to the database? I know this can be done using the OSB.
    But isn't it possible to do this by configuring the Database-Adapter?
    We created a simple sample that calls the DB-Adapter twice with the same Query and tried different caching parameters in the xxx-ormappings.xml.
    But the DB has been queried for each call of the DB-Adapter.
    Any ideas?
    bye Stephan...
    Edited by: Stephan Koser on Dec 6, 2011 5:27 AM

    For just look ups, dont create any DB adapter, use the functions..
    Look up functions are available for both BPEL and OSB
    BEPL:
    oraext:query-database('select last_name from employee where id=1234',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL') This function takes 4 parameter(s).
    OSB:
    fn-bea:execute-sql( $datasource as xs:string, $rowElemName as xs:QName, $sql as xs:string, $param1, ..., $paramk) as element()*
    Thanks,
    Vijay

  • How to use XML in flex

    i am developing a flex based quiz application. The quiz
    application has different quiz categories.
    Questions for each category is stored in a separate xml file.
    I should be able to load the required xml file into an array
    after the user selects the quiz category.
    The available docs refer to async xml loading. I need to load
    synchronously.
    Thanks.

    You cannot do synchronous data service calls. Period.
    Resistance is futile.
    Find another way.
    Post the question in the General discussion forum.
    Tracy

  • Using RoboHelp with Flex

    Does anybody know how to use RoboHelp with Flex? I'm a Flex
    developer and am new to RoboHelp, and am trying it out to create
    some online help for my Flex application. I've searched, and also
    tried a couple of tutorials, but so far I haven't found anything
    about how to combine the two. Thanks.

    The issue is the calling of the help from Flex so I wonder if
    you might do better asking this question on the Flex forums?

  • Using Cache

    Hi,
    I have a question on how to use caching/retrieve cached objects thru java programs. Right now in my descriptor,
    I'm using "oracle.toplink.internal.identitymaps.SoftCacheWeakIdentityMap". How does it offer caching? Is this the best option? Please show me how can I retrieve cached objects programmatically. Also point me to appropriate location of Toplink documentation and examples. I need to know about this caching thoroughly. Any help to resolve these issues is greatly appreciated.
    Thanks..

    Check the index of the TopLink Java Foundation Library Guide. The trick is that 'cache' is more of a marketing term and you'll find more info by looking for "Identity Map".
    - Don

  • How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap?

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class? These are the keys,values: TreeMap The data I'd like to Cache is (date from the file, time of the file, current time).
    import java.io.*;
    public class CacheData {
      public static void main(String[] args) throws IOException {
      String target_dir = "C:\\Files";
      String output = "C:\\Files\output.txt";
      File dir = new File(target_dir);
      File[] files = dir.listFiles();
      // open the Printwriter before your loop
      PrintWriter outputStream = new PrintWriter(output);
      for (File textfiles : files) {
      if (textfiles.isFile() && textfiles.getName().endsWith(".txt")) {
      BufferedReader inputStream = null;
      // close the outputstream after the loop
      outputStream.close();
      try {
      inputStream = new BufferedReader(new FileReader(textfiles));
      String line;
      while ((line = inputStream.readLine()) != null) {
      System.out.println(line);
      // Write Content
      outputStream.println(line);
      } finally {
      if (inputStream != null) {
      inputStream.close();

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class?
    I don't understand your question.
    If you don't know how to use TreeMap why do you think a TreeMap is the correct solution for what you want to do?
    If you are just asking how to use TreeMap then there are PLENTY of tutorials on the internet and the Java API provides the methods that area available.
    TreeMap (Java Platform SE 7 )
    Are you sure you want a map and not a tree instead?
    https://docs.oracle.com/javase/tutorial/uiswing/components/tree.html

  • How to use URL parameters in Flex?

    Hello Everyone,
    I wanted to know how can the parameters passed in a URL be used in our Flex application. I searched in the forum and tried these links:
    http://forums.adobe.com/message/217950#217950
    http://www.danvega.org/blog/index.cfm/2009/2/5/Flex-FlashVars-in-local-development
    In the second link, this is the solution provided:
       1. // if we've detected an acceptable version
       2. // embed the Flash Content SWF when all tests are passed
       3. AC_FL_RunContent(
       4.         "src", "ffManager",
       5.         "width", "100%",
       6.         "height", "100%",
       7.         "align", "middle",
       8.         "id", "ffManager",
       9.         "quality", "high",
      10.         "bgcolor", "#869ca7",
      11.         "name", "FFManager",
      12.         "allowScriptAccess","sameDomain",
      13.         "type", "application/x-shockwave-flash",
      14.         "pluginspage", "http://www.adobe.com/go/getflashplayer",
      15.         "flashvars","username=dvega"
      16. );
    private function init():void {
        // grab the username so we can track who is logged in
        [Bindable] private var:username= Application.application.parameters.username;
    But here, I am getting the hardcoded value (ie.,dvega) as the data inside my flex application. Instead I would need the dynamic data that is passed through the URL. For Ex: if I use the URL, http://172.22.41.154/MH_2.html?myName=Arush
    I need would need to use the name 'Arush' inside the application. Can you please help me on how and what part of the code is to be modified?
    Thank you,
    Warm regards,
    Deepak

    That would come within flex.
    In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
    http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
    I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? 

  • Any tutorials on how to use the daily build of the Flex SDK to create Flash Player 10 content?

    Is there a tutorial on Adobe on how to use the daily build of
    the Flex SDK to create Flash Player 10 content?

    The approach you take might depend on a few things, but it boils down to using mouse interactive coding to trigger whatever effect you eventually realize.  The code you use will depend on the version of Actionscript you plan to use.
    You could make this as a movieclip that is normally stopped at its first frame and when you mouseover or click the movieclip, it animates along its own timeline to its enlarged state.  If the thumbnail is very small and the larger version is substantially larger, and both need to be clear images, this might be the better approach.
    If this only involves enlarging something, you could also probably realize it just using Actionscript Tween coding rather than timeline animation.

Maybe you are looking for