Caching duration of Cached Rowsets

There are four contexts usable to place cached rowset. I undersand, that in Application scope, data are loaded amd persisted to application end. Session looks same, but data chaching ends at end of session, right?
What I dont understand is when data expires, if I place datasource directly to scope of my class and what is RequestBean role in this.
My practical problem is that I need to cache results only for limited time duration (5 minutes for example)
Thanks for any help

Data is cached in a rowset until you refresh it or commit changes, etc.
The scope of the beans is as follows:
The Application Bean is valid during the lifetime of the web app.
The Session Bean is valid during the user's session, which is set by the application server. It is possible that it may be persisted by the application server after some time limit of inactivity. Therefore, any properties on a SessionBean should implement the Serializable interface or be declared transient.
The Page Bean lasts for the time of an HTTP request and response cycle.
The Request Bean lasts as long as two subsequent Page Beans' request / response cycles. They are used to pass data between two pages. Data stored in properties of a Request Bean, outlive the form submission of the first page, and last through to the destruction of the second page.

Similar Messages

  • How to specify index for cache in coherence-cache-config.xml

    Hi All,
    We want to apply indexing on cache data.
    Suppose i have a EMPLOYEE object in coherence cache.
    and i want to use employeeID for indexing purpose.
    Can anybody help me to achieve this at Congregational level i.e. using xml file (coherence-cache-config.xml) .
    Edited by: 981644 on Jan 16, 2013 1:51 AM

    Hi,
    I've posted some [url http://coherence.oracle.com/download/attachments/14647422/add-index-namespace.jar]code and the [url http://coherence.oracle.com/download/attachments/14647422/add-index-namespace-src.jar]source. It depends on coherence common version 2.3.0.39174 however I believe it will work with 2.0.0.23649 also. Coherence common library can be downloaded from [url http://coherence.oracle.com/display/INC10/coherence-common]here
    Note: This is purely an example on how to achieve index creation via a cache configuration file and is not a part of the product thus is not covered by product support.
    Here is an example cache configuration that uses the namespace:
    <cache-config xmlns:service="class://com.oracle.coherence.environment.extensible.ServiceOperations">
        <caching-scheme-mapping>
            <service:index-add cache-name="dist-indexes">
                <extractor>
                    <class-name>ReflectionExtractor</class-name>
                    <init-params>
                        <init-param>
                            <param-type>string</param-type>
                            <param-value>getName</param-value>
                        </init-param>
                    </init-params>
                </extractor>
            </service:index-add>
            <!-- Simplified POF Config -->
            <service:index-add cache-name="dist-indexes" pof-enabled="true">
                <pof-index>8,16,32</pof-index>
            </service:index-add>
            <!-- This should not be counted based on system-property override -->
            <service:index-add cache-name="dist-indexes" pof-enabled="true" enabled="{tangosol.index.add}">
                <pof-index>8,16,31</pof-index>
            </service:index-add>
            <!-- Explicit POF Config -->
            <service:index-add cache-name="dist-indexes">
                <extractor>
                    <class-name>PofExtractor</class-name>
                    <init-params>
                        <init-param>
                            <param-type>{class}</param-type>
                            <param-value>null</param-value>
                        </init-param>
                        <init-param>
                            <param-type>{object}</param-type>
                            <param-value>
                                <class-name>com.tangosol.io.pof.reflect.SimplePofPath</class-name>
                                <init-params>
                                    <init-param>
                                        <param-type>{int[]}</param-type>
                                        <param-value>1,2,4</param-value>
                                    </init-param>
                                </init-params>                     
                            </param-value>
                        </init-param>
                    </init-params>
                </extractor>
            </service:index-add>
        </caching-scheme-mapping>
    </cache-config>Thanks,
    Harvey

  • When opening Bridge I get this message: Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in the cache preferences to correct the situation. I have tried this and still get this message. when I delete image

    When opening Bridge I get this message: Bridge encountered a problem and is unable to read the cash. Please try purging the central cache in the cache preferences to correct this problem. I did this and still get this same message.Also now when deleting images they don't delete till I close and reopen Bridge. What can i do to fix this problem?

    Maybe a Preferences reset can help:
    Numerous program settings are stored in the Adobe Bridge preferences file, including display, Adobe Photo Downloader, performance, and file-handling options.
    Restoring preferences returns settings to their defaults and can often correct unusual application behavior.
    Press and hold the Ctrl key (Windows) or the Option key (Mac OS) while starting Adobe Bridge.  
    In the Reset Settings dialog box, select one or more of the following options:  
      Reset Preferences 
    Returns preferences to their factory defaults. Some labels and ratings may be lost. Adobe Bridge creates a new preferences file when it starts.
    Purge Entire Thumbnail Cache
    Purging the thumbnail cache can help if Adobe Bridge is not displaying thumbnails properly. Adobe Bridge re-creates the thumbnail cache when it starts.
    Reset Standard Workspaces
    Returns Adobe predefined workspaces to their factory default configurations.
    Click OK, or click Cancel to open Adobe Bridge without resetting preferences.   

  • KM Cache and iView Cache - Pros and Cons

    Hi All,
    Can anyone tell me which Caching mechanism is better - KM Caching or iView Caching ?
    What are the Pros and Cons of KM Caching and iView Caching ? Which type of caching is recommended ?
    Any kind of help is appreciated.
    Regards,
    Adren

    Hi Adren,
    As to my understanding, with Portal Cache, we can achieve the following:
    1. Significant improvement in the interface response time
    2. Unnecessary, additional page generation (re-rendering) is avoided when you call a portal page
    3. Web browser-like caching for server-based, dynamic pages in the Web (such as the BW Application Web)
    Cache monitor to monitor the current status of all active caches in your system landscape. The data displayed in the cache monitor can be used for evaluations
    KM cache might eb better than Iview cache.
    Please check the below links we might get soem info about the type of cache which is preferable.
    http://help.sap.com/saphelp_nw04s/helpdata/en/1d/33863c68bebc2ce10000000a114027/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/57/29e334d0049967e10000009b38f83b/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b52de690-0201-0010-c5a6-b4bde0a12e44
    Hope this helps you.
    Good Luck!
    Regards,
    Shaila...

  • Forms/Reports: Role of the Database cache and Web cache

    Hello oracle experts,
    I am running a purely Forms and Reports based environment (9iAS).
    My question are:
    a. Is it possible to use features from the Web Cache and
    Database Cache to boost the performance of my applications?
    b. Are all components monitorable from the OEM?
    Please guide me so that i can configure my OEM to monitor my
    forms and reports services.
    thanks in advance for your reply
    Kind regards
    Yogeeraj

    Hi BradW,
    The way this is supposed to be done in Web Cache is by keeping separate copies of a cached page for different types of browsers distinguished by User-Agent header.
    In case of cache miss, Web Cache expects origin servers to return appropriate version of the page based on browser type, and the page from the origin server is just forwarded back to browser.
    Here, if the page is cacheable, Web Cache retains a separate copy for each type of User-Agent header value.
    And when there is a hit on this cached page, Web Cache returns the version of page with the User-Agent header that matches the request.
    Check out the config screen titled "Header Association" for this feature.
    About forwarding requests to different origin servers based on User-Agent header value, Web Cache does not have such capability.

  • JRE Cache ignores the "Expire" and "Cache-Control: no-cache" directives.

    My applet is using HttpURLConection to retrieve data from a server with Caching enabled. The cache contents are "revalidated" (via "if-modfied-since") each time the applet is started. However, subsequent requests to retrieve the same resource are always read from the cache with no validation even if the resource has expired.
    The server is sending a valid "Expires:" tag and "Cache-Control: no-cache" tag in the response; but, the JRE refuses to recheck for an updated version of the resource even after the file has expired.
    The JRE does seem to understand the "Cache-Control: no-store" tag; but, this is inefficient (no caching at all) when I'm tring to get it to not refetch the resource unless there's a change. Is there some other tag that the JRE is expecting to see?

    I have a similar problem except that I want my pages to not cache at all. The server is setting the Cache-Control: max-age to 0 and the Expires to "now" but JRE seems to ignore these settings, but only sometimes. Sometimes pages are fetched from cache and sometimes from the server.
    In my applet I'm using a normal URLConnection like this:
    URLConnection uc = new URL("http://<server>/method").openConnection();
    uc.connect();
    InputStream is = uc.getInputStream();
    is.read();When my request headers look like this:
    accept-encoding: gzip
    Host: <server>
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alivethe page will not be cached and is requested again but this time without the accept-encoding, Pragma and Cache-Control. The adding (and removal) of the headers seems to happen inside the JRE, though. I'm not explicitly setting them.
    The response header of the first request looks like this:
    HTTP/1.1 200 OK
    Date: Wed, 20 May 2009 12:55:07 GMT
    Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
    Cache-Control: max-age=0
    Expires: Wed, 20 May 2009 12:55:07 GMT
    Vary: User-Agent,Accept-Encoding
    Content-Encoding: gzip
    Keep-Alive: timeout=120, max=79
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: text/html;charset=iso-8859-1When the request is made with this header:
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
    Host: <server>
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-aliveThe response headers looks like this:
    HTTP/1.1 200 OK
    Date: Wed, 20 May 2009 12:55:07 GMT
    Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
    Content-Length: 1016
    Cache-Control: max-age=0
    Expires: Wed, 20 May 2009 12:55:07 GMT
    Vary: User-Agent,Accept-Encoding
    Keep-Alive: timeout=120, max=83
    Connection: Keep-Alive
    Content-Type: text/html;charset=iso-8859-1And in this case the JRE sometimes fetches the request from the server and sometimes from cache. I have not been able to determine how the JRE decides to refresh, or why it sometimes sends an accept-encoding and Pragma header and sometimes not.
    any help would be appreciated.
    Alex

  • "Content-type: text/html; charset=utf-8 cache-control: no-cache..." display

    "Content-type: text/html; charset=utf-8 cache-control: no-cache, no-store, max-age=0, must-revalidate pragma: no-cache X-Frame-Options: DENY "
    is being displayed at the top of one of our pages now. I can see that line in the body section of the page using Firebug, but can't find what is creating it there.
    Does anyone have any tips on how I would go about finding something like this?
    The page was using a custom theme but that stopped working when we upgraded to 4.1. So, I copied the Simple Green template to start modifying.
    Mentioning that in case it's relevant...
    Thanks!

    LauraC wrote:
    "Content-type: text/html; charset=utf-8 cache-control: no-cache, no-store, max-age=0, must-revalidate pragma: no-cache X-Frame-Options: DENY "Looks like an HTTP header...
    is being displayed at the top of one of our pages now. I can see that line in the body section of the page using Firebug, but can't find what is creating it there.
    Does anyone have any tips on how I would go about finding something like this?If it's included within the <tt>body</tt> element in the original page source then it's produced by something in APEX and the position in the source will give a clue as to where. You should also run the page in Debug mode and look at the trace to see if there's any clues there.
    If it's visible in the generated page source but not the original then it's produced by something dynamic in the page. Possibly some JS lingering from the previous theme?

  • Cache monitoring and caches

    1.please let me know about cache monitoring and cache i referred help.sap.com.i am not getting clear idea.
    2.about aleaud message type
    3. sync-async bride , communication

    Hi Pv,
    1: Refer the following link for caches in XI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290
    Webinar on Cachemonitoring:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/53399e62-0c01-0010-7bb8-fd4f3b613a16?prtmode=navigate
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/monitoring%20in%20exchange%20infrastructure%203.0%20-%20webinar%20powerpoint.pdf
    2:ALEAUD is the utility to capture the status of the IDOCs during IDOC communication .
    For more:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6550507d11d18ee90000e8366fc2/frameset.htm
    3:
      Sync -Async Bridge:
               This is a predefined functionality in BPM privdec by SAP to  communicate between the two business systems in which one is a synchronous Business system and the other is asynchronous business system.to acheive this we use a Sync/Async Bridge.Its has explained in detail in the 12 th heading in the thread with screen shots(below mentioned thread- 10939).refer the follwing threads for more information on BPMs.
      /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1
      /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-2
      keep searching SDN .It has loads of information  on BPMs including the scenarios.
    Thanks,
    Ram.

  • Data Cache and Generic Cache

    Hello,
    According to this document,
    http://download.oracle.com/docs/cd/B16240_01/doc/apirefs.102/e12639/chapter1.htm#CIAEFHFB
    I see there are two cache system in Oracle BI Server, "Data Cache" and "Generic Cache".
    What is the difference between these two kinds of cache ?
    Thanks.

    Hi user611881,
    I'll try to explain the two cache types here, but if someone can better phrase it than myself, by all means, step up.
    Data Cache:
    The OBIEE BI Server will cache the result set of SQL that is executed. These cached results are records and if OBIEE sees another report requesting the same record set that it already has in cache, it will go straight to the cache version instead of re-issuing the SQL
    Generic Cache:
    The generic cache is the presentation server cache. This has to do with the caching of particular request. If the BI Server detects a cached version of a request, it will get the request directly from the cache and not even go down to check for the cached record set.
    This is how they function. Assume you have report A with record set 1 and there's no data in either cache.
    You run Report A
    1) Presentation Service checks if the Request is in the generic cache.
    2) This check fails.
    3) Presentation service issues logical SQL query to BI Server
    4) BI Server checks if there is any record set matching the logical query in the cache
    5) This check fails.
    6) BI Server issues the physical SQL
    7) BI Server caches the result set
    8) Presentation service gets result set and formats the data
    9) Presentation service caches presentation results
    10) Report A is displayed
    That is my understanding of the Data and Generic Caches.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • 6.1 SP2 Caching realm not caching group members

    Hello:
    We have caching realm set over LDAP security realm.
    We see caching realm never caching group members.
    Any help is appreciated.
    Thanks
    Gennadiy
    Here is the sequence we see:
    1) Search for user name - OK
    2) Search for group name - OK
    3) - ALWAYS going to LDAP to get group members even though they should be cached
    at this point.
    The question is - why does it go to LDAP at all?
    I am doing the same call a 1-2 seconds apart. The group members should be cached.
    It looks like caching realm does not actually cache the members within a group.
    The realm is configured to cache group membership:
    Enable Group Cache true
    Group Cache Size: 211
    Group Cache TTLPositive: 600
    Group Cache TTLNegative: 600
    Group Membership Cache TTL: 300
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getUser("AppLayerRunAs")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <user: pos HIT AppLayerRunAs>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getAcl("weblogic.jndi.CCSAcctEntityBean",
    '.')>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getAcl("weblogic.jndi.CCSAcctEntityBean")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <acl: neg HIT weblogic.jndi.CCSAcctEntityBean>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getAcl("weblogic.jndi")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <acl: neg HIT weblogic.jndi>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getAcl("weblogic")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <acl: neg HIT weblogic>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getUser("AppLayerRunAs")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <user: pos HIT AppLayerRunAs>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getUser("AcctEntityUsers")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <user: neg HIT AcctEntityUsers>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getGroup("AcctEntityUsers")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <group: pos HIT AcctEntityUsers>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <LDAPRealm> <search("ou=ldap, ou=dev_serv,
    ou=hick, o=ccs", "(&(member=cn=AppLayerRunAs,ou=LDAP
    ICK,o=CCS)(objectclass=groupofuniquenames))", base DN & below)>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <getUser("AppLayerRunAs")>
    <Jul 17, 2002 8:53:49 AM EDT> <Debug> <CachingRealm> <user: pos HIT AppLayerRunAs>

    This has been fixed in SP3.
    -utpal

  • Increase the size of the cache using the cache.size= number of pages ?

    Hi All,
    I am getting this error when I do load testing.
    I have Connection pool for Sybase database that I am using in my JPD. I am using Database control of weblogic to call the Sybase Stored procedure.
    I got following exception when I was doing load testing with 30 concurrent users.
    Any idea why this exception is coming ?
    thanks in advance
    Hitesh
    javax.ejb.EJBException: [WLI-Core:484047]Tracking MDB failed to acquire resources.
    java.sql.SQLException: Cache Full. Current size is 2069 pages. Increase the size of the cache using the cache.size=<number of pages>
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCConnection.prepareStatement(Unknown Source)
         at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:917)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
         at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
         at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
         at com.bea.wli.management.tracking.TrackingMDB.getResources(TrackingMDB.java:86)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:141)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:115)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    hitesh Chauhan wrote:
    Hi All,
    I am getting this error when I do load testing.
    I have Connection pool for Sybase database that I am using in my JPD. I am using Database control of weblogic to call the Sybase Stored procedure.
    I got following exception when I was doing load testing with 30 concurrent users.
    Any idea why this exception is coming ?
    thanks in advance
    Hitesh Hi. Please note below, the stacktrace and exception is coming from the
    Pointbase DBMS, nothing to do with Sybase. It seems to be an issue
    with a configurable limit for PointBase, that you are exceeding.
    Please read the PointBase configuration documents, and/or configure
    your MDBs to use Sybase.
    Joe
    >
    javax.ejb.EJBException: [WLI-Core:484047]Tracking MDB failed to acquire resources.
    java.sql.SQLException: Cache Full. Current size is 2069 pages. Increase the size of the cache using the cache.size=<number of pages>
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCConnection.prepareStatement(Unknown Source)
         at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:917)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
         at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
         at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
         at com.bea.wli.management.tracking.TrackingMDB.getResources(TrackingMDB.java:86)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:141)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:115)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

  • Transaction cache VS Session cache

    Hi,
    Some one please help me to understand the concepts of ttransaction cache VS Session cache.
    In the user guide its given that
    For AM : Any data stored on the transaction is accessible to all pages that share the same root application module instance .
    For Session : Session cache only when you need to set and access simple values in many pages, which have different root application modules
    (The transaction cache discussed above isn't an option)
    Are these 2 different ? if so how ? Why the transaction cache is different from session cache, both are used to store data and both are available across pages assuming all pages share the same AM.
    Thank you for all your help.

    GustavoJimenez,
    Thank for taking time and explaining it.
    I understand that, if multiple pages share the same AM and retainAM flag ='N' then it will create multiple instances of same AM. so is the AM cache is common for all the AM instances ?
    Can you please explain more about session cache and where it comes into picture ? Is session cache and AM cache has same attributes ?

  • Bridge encountered a problem and is unable to read the cache. Please try specifying a new cache location in Cache Preferences to correct the situation.

    Bridge encountered a problem and is unable to read the cache. Please try specifying a new cache location in Cache Preferences to correct the situation.
    I have do this again and again and again but Bridge ask me to this each time a start up ??

    Maria,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • Statement cache  in connection cache

    In my application , i have implemented connection cache mechanism using OracleConnectionImpl class, my application
    gets the connection from connection cache and it makes JDBC calls(SELECT,UPDATE),and returns connection back to connection cache.
    i am doing above steps repedetily, i am trying to implement statement cache mechanism for performance reasons, is statement cache
    mechanism is suitable for above scenario.
    i learned that statement chache is associated with a physical connection, in my case i am getting physical connection instances from a connection cache ,
    using the connection for making JDBC calls and return back to cache. i am using several physical connection instances using connection cache,
    is statement cache suitable for my application?
    i need some help
    thanks

    Hi Elango,
    Thank you, I have downloaded latest jdbc driver (9.2) as u suggested, now it's working well, but i found another problem in my application, as am using CLOB datatypes in my application, when i changed my driver classes to above one i am getting following problem while working with CLOB.
    here i am giving my error stack:
    java.io.IOException: No more data to read from socket
    at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java:716)
    at oracle.jdbc.driver.OracleClobWriter.flushBuffer(OracleClobWriter.java:270)
    at oracle.jdbc.driver.OracleClobWriter.close(OracleClobWriter.java:232)
    my application code as follows
    BufferedReader xmlReader = new BufferedReader(new StringReader(clobXML)); //my xml string
    CLOB clob = ((OracleResultSet) dbresultset).getCLOB(1);
    Writer writer = clob.getCharacterOutputStream();
    // writing xml into clob
    String xmlString = "";
    while ((xmlString = xmlReader.readLine()) != null) {
    writer.write(xmlString);
    xmlReader.close();
    writer.close(); //problem here
    when i am trying to close or flush the stream,it's giving above problem, otherwise it's working fine, but no data is stored in database.
    the above code was working fine with my old driver classes.
    any idea?
    Thanks,
    Sasi

  • Q: WLS 7 Cache Filters (Response Caching) Keys, Vars?

              I can't seem to find any better docs about setting up cache filters than this
              http://edocs.bea.com/wls/docs70/servlet/progtasks.html#response_caching
              specifically, what are some examples of the init params, Keys and Vars?
              - especially in use with Servlets.
              Can Keys be Attribute names? Parameter names? Headers? Cookies? Other?
              And then what are examples of Vars?
              "variables calculated by the page that you want to cache"
              Does that really mean, it's cacheing a variable, like a resultset calculated in
              the doGet, instead of the page (response)? If so what can those be? Or should
              that have said "variables used to calculate the page"?
              Let's say I have a Servlet which might be called like
              myservlet?param1=A&param2=B&param3=C
              and there are a few cookies, cookie1=X;cookie2=Y;cookie3=Z
              In this case, only param1, param2, cookie1 can actually make a difference in the
              response. So I want my cached keyed off those (and only those).
              what would it look like?
              <init-param>
              <param-name>Key</param-name>
              <param-value>?</param-value>
              </init-param>
              <init-param>
              <param-name>Vars</param-name>
              <param-value>?</param-value>
              </init-param>
              

    We are in process of updating the docs for cache filter. So they should be
              in
              better shape soon. Sorry for the inconvenience.
              Here is an example:
              <filter>
              <filter-name>CacheFilter</filter-name>
              <filter-class>weblogic.cache.filter.CacheFilter</filter-class>
              <init-param>
              <param-name>scope</param-name>
              <param-value>session</param-value>
              </init-param>
              <init-param>
              <param-name>timeout</param-name>
              <param-value>30m</param-value>
              </init-param>
              <init-param>
              <param-name>size</param-name>
              <param-value>10</param-value>
              </init-param>
              <init-param>
              <param-name>key</param-name>
              <param-value>parameter.userid,parameter.clientip</param-value>
              </init-param>
              <init-param>
              <param-name>vars</param-name>
              <param-value>request.var1,request.var2,request.var3</param-value>
              </init-param>
              </filter>
              <filter-mapping>
              <filter-name>CacheFilter</filter-name>
              <url-pattern>/cached/*</url-pattern>
              </filter-mapping>
              Various scopes:
              parameter -> request parameter
              request -> request attribute
              requestHeader -> request header
              responseHeader -> response header
              session -> http session
              application -> context
              cluster -> cluster scope (need to configure cluster listener for this)
              key:
              Syntax: Comma separated list of <scope>.<attribute name>
              Typically a given cache is identified by it's cache name that you configured
              in web.xml.
              If that's not specified the request uri is used as a cache name. But using
              keys you can
              specify additional values to identify a tag. For example if you want to
              separate out the
              cache for a given end user, then in addition to the cache name you can
              specify the keys
              as the userid, values for which you want to pick it up from the request
              parameter scope
              (query param/post params) plus perhaps a client ip. So you will specify your
              keys as:
              "parameter.userid,parameter.clientip"
              Here "parameter" is the scope (request parameter scope) and
              "userid"/"clientip" are the parameters/attributes.
              This means the primary key for the cache becomes the cache name (request uri
              in this
              case) + value of userid request param + value of clientip request param.
              Note: If you don't specify the scope the cache system will search all the
              scopes
              for the attribute.
              size:
              For caches that use keys, the size element defines the number of entries
              allowed.
              The default is an unlimited cache of keys. With a limited number of keys the
              tag
              uses a least-used system to order the cache (BubblingCache).
              vars:
              Same syntax as the key:
              Syntax: Comma separated list of <scope>.<attribute name>
              Variables are used to do input caching. So you can save the variables you
              used to calculate the cache. When the cache is retrieved the variables are
              restored back to the scope you specified. For example for retrieving results
              from
              a database you used var1 from request param, var2 from session etc. So
              when the cache is created the value of these variables are stored with the
              cache. When the cache is accessed next time these values are restored
              so you will be able to access them from respective scopes. For example
              var1 will be available from request and var2 from session.
              Hope this helps.
              --Vinod.
              "Stek" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I can't seem to find any better docs about setting up cache filters than
              this
              >
              > http://edocs.bea.com/wls/docs70/servlet/progtasks.html#response_caching
              >
              > specifically, what are some examples of the init params, Keys and Vars?
              > - especially in use with Servlets.
              >
              > Can Keys be Attribute names? Parameter names? Headers? Cookies? Other?
              >
              > And then what are examples of Vars?
              > "variables calculated by the page that you want to cache"
              > Does that really mean, it's cacheing a variable, like a resultset
              calculated in
              > the doGet, instead of the page (response)? If so what can those be? Or
              should
              > that have said "variables used to calculate the page"?
              >
              > Let's say I have a Servlet which might be called like
              > myservlet?param1=A&param2=B&param3=C
              > and there are a few cookies, cookie1=X;cookie2=Y;cookie3=Z
              >
              > In this case, only param1, param2, cookie1 can actually make a difference
              in the
              > response. So I want my cached keyed off those (and only those).
              >
              > what would it look like?
              >
              > <init-param>
              > <param-name>Key</param-name>
              > <param-value>?</param-value>
              > </init-param>
              > <init-param>
              > <param-name>Vars</param-name>
              > <param-value>?</param-value>
              > </init-param>
              >
              

Maybe you are looking for