ANN: Learn how to invalidate cache and handle exceptions

http://otn.oracle.com/sample_code/tech/java/codesnippet/webcache/index.html
These set of New OracleAS Web Cache How-to's illustrates how to invalidate cached content using esi:invalidate and PL/SQL invalidation tags. Also, learn how to esi exceptions using esi:try, esi:accept, and esi:except tags.
Cheers,
-Srikanth

You may use any of the two ways:
1. Use the interface. Go to Navigator, and go to that particular page where that portlet is, and then edit it. Go to Properties/Cache. See at the very bottom of the page for how to clear cache for that page.
2. See details of the api function for cache invalidation.
wwpro_api_invalidation.execute_cache_invalidation;

Similar Messages

  • TS3408 how to clean cache and cookies?

    hi i just wanna know how to clean cache and cokies in my system..coz looks like it causes delayed in loading web pages.

    Try Safari > Reset Safari and then peruse the checkboxes.  In particular, consider "Remove all website data".

  • How to clear cache and cookies

    Hi guys,
    I am new to jsf. And I have one problem in jsf, How to clear cache and cookies.
    Please help me to solve this..

    clearing Java cache and cookies is different from clearing IE cache and cookies. Usually when you powercycle your computer it is automatically cleared. To clear manually:
    go to start--> settings--> control panel--> double click on Java icon. Click on "delete files" under temporary internet files or 'clear cache' in the 'cache' tab. It depends on which version of java and which OS you use on how these will show up.
    If you were having issues with java crashing or making your freezing up, this should resolve the issue. It is strongly suggested that you powercycle the computer as well after clearing the java cache.

  • How to clear cache and cookies on an iphone

    Hi, can you please tell how to clear cache and cookies on an iPhone, thanks

    Settings > Safari > Clear Cache/Cookies

  • How to clear cache and other items

    How do you clear cache and check to see if Mac is running properly

    Settings > Safari > Clear Cache/Cookies

  • How to invalidate cache for a single item?

    I m trying to invalidate cache for a particular item in the repository.
    I dont want to invalidate the whole cache.
    Is there a way to do that through dyn/admin?
    TIA

    You can create own component in dyn/admin to do this.
    1. Create a global component with the following properties
    /atg/dynamo/service/GSAInvalidatorService
    [repository of item to invalidate]
    [itemDescriptor]
    [repositoryId]
    2. Create method invalidateCache
    getGSAInvalidatorService().invalidate(getRepository(), getItemDescriptor(), getRepositoryId());
    or, this should work as well
    ItemDescriptor someItemDescriptor;
    someItemDescriptor.removeItemFromCache(getRepositoryId());
    Maybe try them both to see what works for you.
    -Michael

  • Newbie: how to temporary results and handle sessions running UNIX commands?

    Hello,
    I have just asked a question concerning launching UNIX commands using Java classes, see thread "_https://forums.oracle.com/forums/thread.jspa?threadID=2429211&tstart=0_".
    I have followed the mentioned advises (using "bash","-c" parameters) but now I have stumbled into other issues:
    My intention is to write a UNIX class, that can handle UNIX commands, in order to be used in other Java programs, so that the following example becomes possible:
    UNIX.launch("cd /var/core");
    UNIX.launch("rm obsolete_core_file");
    UNIX.launch("sqlplus <Oracle_database>");
    UNIX.launch("select * from cat;");Unfortunately I have stumbled into a strange behaviour: until now, I have created the UNIX class as a single class, containing a "main" method. When I launch the following commands:
    java UNIX "cd /var/core";
    java UNIX "rm obsolete_core_file"I have the problem that the "cd /var/core" command is executed while UNIX class is running, but afterwards I jump back to my current directory:
    pwd => current directory
    java UNIX "cd /var/core" (this is executed, e.g. verifying "ls" output)
    pwd => current directoryI would like to have:
    pwd => current directory
    java UNIX "cd /var/core"
    pwd => /var/coreOne other thing is the handling of sessions: until now, when I launch following commands:
    UNIX.launch("sqlplus <Oracle_database>");
    UNIX.launch("select * from cat;");Then I get into a "sqlplus" session, but afterwards my Telnet session hangs. Is there a way to see that I have fallen into a session, and handle it? (Exit, launch internal session (SQL-plus) command, ...)
    Thanks again
    Dominique

    scampsd wrote:
    Hello,
    I have just asked a question concerning launching UNIX commands using Java classes, see thread "_https://forums.oracle.com/forums/thread.jspa?threadID=2429211&tstart=0_".
    I have followed the mentioned advises (using "bash","-c" parameters) but now I have stumbled into other issues:
    My intention is to write a UNIX class, that can handle UNIX commands, in order to be used in other Java programs, so that the following example becomes possible:
    UNIX.launch("cd /var/core");
    UNIX.launch("rm obsolete_core_file");
    UNIX.launch("sqlplus <Oracle_database>");
    UNIX.launch("select * from cat;");Unfortunately I have stumbled into a strange behaviour: until now, I have created the UNIX class as a single class, containing a "main" method. When I launch the following commands:
    java UNIX "cd /var/core";
    java UNIX "rm obsolete_core_file"I have the problem that the "cd /var/core" command is executed while UNIX class is running, but afterwards I jump back to my current directory:
    pwd => current directory
    java UNIX "cd /var/core" (this is executed, e.g. verifying "ls" output)
    pwd => current directoryI would like to have:
    pwd => current directory
    java UNIX "cd /var/core"
    pwd => /var/coreOne other thing is the handling of sessions: until now, when I launch following commands:
    UNIX.launch("sqlplus <Oracle_database>");
    UNIX.launch("select * from cat;");Then I get into a "sqlplus" session, but afterwards my Telnet session hangs. Is there a way to see that I have fallen into a session, and handle it? (Exit, launch internal session (SQL-plus) command, ...)
    Thanks again
    DominiqueWhy not just use plain java File I/O http://docs.oracle.com/javase/tutorial/essential/io/fileio.html and JDBC http://docs.oracle.com/javase/tutorial/jdbc/basics/processingsqlstatements.html for fulfilling your requirements?
    Edited by: maheshguruswamy on Aug 20, 2012 10:32 AM

  • How data buffer cache is handled

    hi all,
    I have a doubt in how buffer cache is managed.. I read that server process will read blocks from data file and keeps them in buffer cache if they are not already present in buffer cache.. Suppose two users from different sessions issue the same statement at the same time, and they are picked up by different server processes, and upon checking they will find that the block is not present in SGA, so they both will go read the block.. is it not unnecessary.. or am i wrong? please let me know how it is handled.
    Regards
    Suresh

    Hi tinku,
    I understand what you mean.. but my problem is different.
    suppose there are two sessions
    first session issues a statement:
    Select * from emp where empno = 12;
    and second session issues
    select * from emp where empno in (12,13);
    becoz these two statements are different, these two statements are to be parsed separately. After parsing, each of the server processes will see if the block corresponding 12 is already in memory, if it is not, they will read it from data file and keep in buffer cache.. suppose these two server processes at the same time find that the block is not in SGA and try to read the block from data file, there would be two copies of the block in SGA. isn't it. I don't think this is what is gonna happen. so i need how the server processes coordinate with each other to read only necessary blocks without redundancy.
    Regards
    Suresh

  • Help me learn how to back up and set up a recovery on new MacBook please?

    Please bear with me if I come across not knowing anything about this topic....but that's why i'm asking for help.
    mentioned before that my brother set up my PC laptop for me years ago. And a friend set up my Western Digital External Hard Drive (My Book Essential Edition - i got it super cheap after rebates) and I know he downloaded Syncback from 2Brightsparks since the WD didn't come with software.
    My new Macbook is charging up. I want to know if I should do a backup and recovery? Basically I want to prepare for in case I totally eff up my new Mac and have restore from scratch. I am so confused when I read forums and google stuff. I know it came with the Mac OS X, but what happens to some of the preinstalled software....will it come back up if I use the Mac OS cds? Also, I've read that some say I can backup on CD/DVD but they won't be bootable but if I use external HD it's bootable - what the heck does this all mean?
    Will I have to download a software to use with the WD HD or will the preinstalled Time Machine work? (Step by Step directions on how to make a bootable restore and back up would be greatly appreciated)
    and when I add other software, can I back up the computer so that if I ever have to do a system restore I can still get those software back on my Mac without having to go get the software disc or pay online again for the download?
    thanks a bunch!

    Hey Knotty,
    If you are close to an Apple Store, you would do yourself a world of good if you purchased One-to-One Membership. The Creatives at the Apple Store can teach you how to do all of this and so much more, for a full year.
    Time Machine is an automatic backup system that is pre-installed on your Mac. It is very easy to use. Since you already have the WD, you could use that for this purpose. There is no other software you would have to purchase. If there are files and such on your WD, I would first back those up to some other media, DVD or CD, then let Time Machine reformat it and use it. It will not use the same format as your old PC, which is why you will need to backup those files you need off of it.
    Good Luck.
    Adam

  • How Much Is Shipping And Handling for The Marware Sportfolio?

    I need to know so i can find out how much i have to pay.
    And also, if you don't mind answering, how much is the S/H for the expansion pack for garage band?
    i know this isn't technical problems, but this is the only forum that fit (the little side note on the bottom of the topics said if it didn't fit any other category)

    Hi!
    The easiest way is just add those products to cart! And in your shopping cart, it should tell you the S/H cost and tax!
    p.s. I live in Chicago and the Marware Sportfolio is $4 S/H, but the Garage Band is free shipping! And if you add those two products to the shopping cart, S/H is free altogether! But tax is almost $10
    Hope this helps!

  • ANN: Learn How to Enhance J2EE Application Performance with ESI

    OTN's newly enhanced Virtual Shopping Mall application illustrates how ESI technology can improve J2EE 1.3 application performance and availability.
    http://otn.oracle.com/sample_code/products/ias/web_cache/index.html
    Cheers,
    -Srikanth

    This solution does not seem to work if it is CDSSO.

  • How should I store and handle all my photos?

    I have an iphone and ipad. I take all my photos on my iphone. Is there a safe way to store all of them? In the past I had a desktop and stored all photos on a cd. Now I think that's a bit outdated perhaps and I don't have a desktop anymore.

    I wish to second the other two replies you have received so far in an effort to show how right they are.
    Neither the iPhone nor the iPad are good place for long term storage of your photos.
    My suggestion is to get them to a computer as quickly as possible and then backup them up from there.
    Only after that is you want them on a mobile device, you can move them back again.
    As to all of the rumors that you hear about the death of the computers, I think it is a lot of hype. The devices like the iPhone and iPad are nowhere near ready to replace then yet.
    Allan

  • How to clear cache and cookies on Safari?

    If anyone knows how to do this, I'd appreciate the help. Thank you!

    Safari menu: Reset Safari.

  • Java101: Catching and Handling Exceptions question

    Dear all,
    I am learning java from http://java.sun.com/docs/books/tutorial/essential/exceptions/putItTogether.html
    However, I think the code in ListOfNumbers may have some problem, I put void in front of the function, but still have error. Could you please tell me any problem in the program?
    thanks
    import java.util.Vector;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.*;
    public class Main {
        private Vector vector;
        private int SIZE = 10;
        public static void main(String[] args) throws IOException {
        public ListOfNumbers () {
            vector = new Vector(SIZE);
            for (int i = 0; i < SIZE; i++) {
                vector.addElement(new Integer(i));
        public void writeList() {
            PrintWriter out = new PrintWriter(
                                new FileWriter("OutFile.txt"));
            for (int i = 0; i < SIZE; i++) {
                out.println("Value at: " + i + " = " +
                             vector.elementAt(i));
            out.close();
            FileInputStream in = null;
            FileOutputStream out = null;
                in = new FileInputStream("xanadu.txt");
                out = new FileOutputStream("outagain.txt");
                int c;
                while ((c = in.read()) != -1) {
                    out.write(c);
        public void writeList() {
        PrintWriter out = null;
        try {
            System.out.println("Entering try statement");
            out = new PrintWriter(
                           new FileWriter("OutFile.txt"));
                for (int i = 0; i < 5; i++)
                    out.println("Value at: " + i + " = "
                                 + vector.elementAt(i));
        } catch (ArrayIndexOutOfBoundsException e) {
             System.err.println("Caught "
                         + "ArrayIndexOutOfBoundsException: "
                         +   e.getMessage());
        } catch (IOException e) {
             System.err.println("Caught IOException: "
                                 +  e.getMessage());
        } finally {
             if (out != null) {
                 System.out.println("Closing PrintWriter");
                 out.close();
             else {
                 System.out.println("PrintWriter not open");
    }

    I have also post the error message here, I change the name of the file and the class name. I think I can not handle the error message #1 and #2. Please help me! Thanks
    * Main.java
    * Created on June 19, 2007, 10:54 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package bytestreams01;
    * @author Marco
    import java.util.Vector;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.*;
    public class Main {
        private Vector vector;
        private int SIZE = 10;
        public static void ListOfNumbers(String[] args) throws IOException {
        public ListOfNumbers () {
            vector = new Vector(SIZE);
            for (int i = 0; i < SIZE; i++) {
                vector.addElement(new Integer(i));
            FileInputStream in = null;
            FileOutputStream out = null;
                in = new FileInputStream("xanadu.txt");
                out = new FileOutputStream("outagain.txt");
                int c;
                while ((c = in.read()) != -1) {
                    out.write(c);
        public void writeList() {
        PrintWriter out = null;
        try {
            System.out.println("Entering try statement");
            out = new PrintWriter(
                           new FileWriter("OutFile.txt"));
                for (int i = 0; i < 5; i++)
                    out.println("Value at: " + i + " = "
                                 + vector.elementAt(i));
        } catch (ArrayIndexOutOfBoundsException e) {
             System.err.println("Caught "
                         + "ArrayIndexOutOfBoundsException: "
                         +   e.getMessage());
        } catch (IOException e) {
             System.err.println("Caught IOException: "
                                 +  e.getMessage());
        } finally {
             if (out != null) {
                 System.out.println("Closing PrintWriter");
                 out.close();
             else {
                 System.out.println("PrintWriter not open");
    }error message
    init:
    deps-jar:
    Compiling 1 source file to C:\Users\Marco\bytestreams01\build\classes
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:29: illegal start of expression
    public ListOfNumbers () {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:29: invalid method declaration; return type required
    public ListOfNumbers () {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:41: <identifier> expected
    in = new FileInputStream("xanadu.txt");
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:42: <identifier> expected
    out = new FileOutputStream("outagain.txt");
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:45: illegal start of type
    while ((c = in.read()) != -1) {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:45: <identifier> expected
    while ((c = in.read()) != -1) {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:45: ';' expected
    while ((c = in.read()) != -1) {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:50: class, interface, or enum expected
    public void writeList() {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:53: class, interface, or enum expected
    try {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:55: class, interface, or enum expected
    out = new PrintWriter(
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:57: class, interface, or enum expected
    for (int i = 0; i < 5; i++)
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:57: class, interface, or enum expected
    for (int i = 0; i < 5; i++)
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:57: class, interface, or enum expected
    for (int i = 0; i < 5; i++)
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:61: class, interface, or enum expected
    } catch (ArrayIndexOutOfBoundsException e) {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:66: class, interface, or enum expected
    } catch (IOException e) {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:70: class, interface, or enum expected
    } finally {
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:73: class, interface, or enum expected
    out.close();
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:75: class, interface, or enum expected
    C:\Users\Marco\bytestreams01\src\bytestreams01\ListOfNumbers.java:78: class, interface, or enum expected
    19 errors
    BUILD FAILED (total time: 0 seconds)

  • How to catch and handle soap foult in a BPM process?

    Hi,
    I have a BPM process which calls a webservice in one of its activities. The webservice throws an exception so the response will contain a soap fault element. I defined exception handlers to handle the error but none of the exception handlers are called. How can I catch and handle these types of error?
    The log contains this:
    A component failed while executing activity '/Process1#Default-1.0/Automatic' (BP-method Automatic) over instance '/Process1#Default-1.0/3/0'.
    Details:
    The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
    Caused by: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
    fuego.lang.ComponentExecutionException: The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
         at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:60)
         at fuego.metadata.Activity.execute(Activity.java:1022)
         at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:531)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
    Caused by: fuego.soaptype.SoapExecutionException: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
         at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java:531)
         at fuego.soaptype.SoapCall.invoke(SoapCall.java:292)
         at fuego.soaptype.SoapObject.invoke(SoapObject.java:272)
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:220)
         at fuego.lang.Invokeable.invoke(Invokeable.java:161)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:265)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:281)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
         ... 27 more
    Thanks,
    fifty

    Hi fifty,
    Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
    I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
    I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
    i don't see anything in the catalog which would handle the SOAP fault OR the componentexception.

Maybe you are looking for

  • How Can I get my Chapter Markers to function on a standard DVD Player

    I imported the movie(iMovie 09) into iDVD 09. Added the chapters in iDVD as advised. Everything works beautifully in the preview mode. I burned it to DVD using Verbatim -R at 1X speed as advised and VOILA, everything works beautifully. All the button

  • Installation notes: JES 2005Q4 on Fedora Core 4

    Hi, Getting JES (with Portal Server 6) to work on a Linux platform (that's unsupported by SUN) can be a nightmare. Here's what to do with Fedora Core 4: 1. You need to install compat-libstdc++-296.i386 rpm package. This provides /usr/lib/libstdc++-li

  • My xperia zl wont open!

    when i try to open it, it vibrate once and then i see the sony start screen, but it shut down by himself every time i try to turn it on, do someone have and idea why?

  • Beginning java part 2

    hi following my early message of writing my first HelloWorld programme, I am now trying to open the JVM. Problem is, I don't seem to be able to find it. I have lots of jvm files on my hard drive but they are web pages or text files. I have also downl

  • Mac OS X 10.6.8 to Mac OS X 10.7

    I currently have Mac OS X version 10.6.8 on my MacBook Pro.  I recently tried to install the App Paprika Recipe Manager and received an error message that said "Can't be installed on Macintosh HD because Mac OS X 10.7 or later is required".  I tried