Caching Java-classes / Webforms-Javaplugin

Hello,
In avoiding long download times for the Java classes for using
Webforms over a WAN I want to know if it is possible to cache
the Java-classes on the client? Further I would expect a
Webforms/Javaplugin be available. Is such a plugin available of
planned for the future?
Dolf-Jan Mulder
null

Dolf-Jan Mulder (guest) wrote:
: Hello,
: In avoiding long download times for the Java classes for using
: Webforms over a WAN I want to know if it is possible to cache
: the Java-classes on the client? Further I would expect a
: Webforms/Javaplugin be available. Is such a plugin available of
: planned for the future?
: Dolf-Jan Mulder
Hello,
use Jinitiator to cache the JAR-File . Jinitiator caches the
JAR-File and some other information in the jcache directory
finding under the jinit root directory . You can download
Jinitiator from OTN or Oracle Support for free . It is the Java
Runtime Enviroment from Oracle and gives you the benefit to be
independent from the browser you are using . We use the version
1.1.7.11 with DEV 6.
Good luck
Peter
null

Similar Messages

  • Caching Java classes

    Hi,
    I would like to have some inputs on the best way to cache applets on the
    client side. This should be a one time cache and should be able to persist
    the classes across multiple sessions of the client.
    Thanks and Regards
    Arun Shankaranarayanan S.
    Warner Bros. MIS
    E-mail: [email protected]
    Phone: (818) 977-8615
    Fax: (818) 977-8606

    Dolf-Jan Mulder (guest) wrote:
    : Hello,
    : In avoiding long download times for the Java classes for using
    : Webforms over a WAN I want to know if it is possible to cache
    : the Java-classes on the client? Further I would expect a
    : Webforms/Javaplugin be available. Is such a plugin available of
    : planned for the future?
    : Dolf-Jan Mulder
    Hello,
    use Jinitiator to cache the JAR-File . Jinitiator caches the
    JAR-File and some other information in the jcache directory
    finding under the jinit root directory . You can download
    Jinitiator from OTN or Oracle Support for free . It is the Java
    Runtime Enviroment from Oracle and gives you the benefit to be
    independent from the browser you are using . We use the version
    1.1.7.11 with DEV 6.
    Good luck
    Peter
    null

  • Clearing custom java classes from cache

    Hi,
    I've written some java classes and am accessing them via the "cfobject" tag.
    My problem is that each time I recompile my java program, coldfusion continues using a cached version of my custom class' bytecode... so I can't really see my changes without restarting coldfusion.
    (I've turned off all caching in the cfadmin, but it doesn't seem to help)
    Any ideas on how to do this would be appreciated.
    (using coldfusion 8)

    found the answers here
    http://forums.sun.com/thread.jspa?forumID=764&threadID=5330127

  • How to make a java class act as an cache

    Imagine
    i have a simple java class which establishes a connection to a DB and has a getter method which returns this DBConnection
    Now i want this class to be loaded forever in jvm, i mean, once it starts and establishes connection it remains loaded , and then returns the dbconnection who ever calls its geter method.
    So i am wondering what kind of java class do i write that behaves like an cache.
    and how would the other classes call this getter method of my class, i mean they cant instantiate it i guess , coz then it creates a new object , i mean i m confused , hope someone provides a soultion
    tahnks

    1) A class should do relatively litte. It's object-oriented programming. If you feel the urge like making it all static, maybe you can use a singleton, which is accessible using a static method.
    2) Nothing what you described matches the term "cache"
    3) And what you actually want it a connection pool. There should be several examples on the web.

  • How to import a java class in a JSP

    Hi All,
    I have a java class file called myTest.class (i made after compilation of myTest.java). I have a JSP page that uses this java class file.
    These 2 files are in same folder called c:/test
    and iam importing this java class file into my jsp file and that too at the start of this jsp file:
    <%@page import="myTest" %>
    BUt iam getting an error ..............when iam running this JSP page:
    /opt/bea81sp2/user_projects/domains/wliDomain/./Managed2/.wlnotdelete/extract/Managed2_myTest_myTest/jsp_servlet/__test.java:20: '.' expected
    probably occurred due to an error in /test.jsp line 5:
    <%@page import="myTest" %>
    Please advise how to solve this problem
    -sangita

    Don't bother with the import
    when iam not importing this class file into my JSP, then on my JSP, the class file is not found.
    Here is my code: and these 2 class file are in c:/test
    import org.apache.tools.ant.taskdefs.Ant;
    import org.apache.tools.ant.taskdefs.Property;
    import org.apache.tools.ant.types.*;
    import org.apache.tools.ant.*;
    import org.apache.tools.ant.taskdefs.ExecTask;
    import org.apache.tools.ant.types.Commandline;
    import java.io.File;
    * Creates an Ant project to run an Ant build
    * @author myself
    * @version 1.0
    public class RunTest extends Ant {
        String applicationName;
        String buttonClicked;
        String boxName;
        String targetName;
        public void applicationName(String applicationName){
         this.applicationName = applicationName;
        public void boxName(String boxName){
         this.boxName = boxName;
        public void buttonClicked(String buttonClicked){
         this.buttonClicked = buttonClicked;
      public RunTest() {
    public void goTest() {
         if(this.buttonClicked.equalsIgnoreCase("deploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
           this.targetName = "deploy-scsmail-testnet";
         if(this.buttonClicked.equalsIgnoreCase("undeploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
           this.targetName = "undeploy-scsmail-testnet";
        Project project = new Project();
        project.init();
        System.out.println("printing 1 ....");
        ExecTask exec = new ExecTask();
        exec.setProject(project);
        exec.setExecutable("/opt/bea/weblogic81/server/bin/ant.bat");
         exec.setDir(new java.io.File("/export/home/beamon/bin"));
         Commandline.Argument arg = exec.createArg();
         // arg.setLine("-f scsmail.xml test -listener org.apache.tools.ant.XmlLogger -logfile D:/antProject/src/log.xml");
         arg.setLine("-f build.xml "+ targetName + " -listener org.apache.tools.ant.XmlLogger -logfile /export/home/beamon/bin/log.xml");
         System.out.println("printing 2....");
        //exec.setOutput(new File("D:/antProject/logs/prob.txt"));
        exec.execute();
        System.out.println("printing 3....");
    -----------------------the JSP page is called as test.jsp
    <%@page contentType="text/html" %>
    <%@page import="java.io.*" %>
    <%@page import="java.util.*" %>
    <%@page import="java.net.*" %>
    <%@page import="RunTest" %>
    <HTML>
    <TITLE>TESTING ANT GUI</TITLE>
    <HEAD>
    <META HTTP-EQUIV="Refresh" CONTENT="3000" >
    <meta http-equiv="Cache-Control" content="no-cache">
    </HEAD>
    <BODY BGCOLOR="silver" TEXT="333333">
    <table border=0>
    <tr align="left"><td align="left"><FONT SIZE="-1"><B>  Test Page <FONT SIZE="-1"><B></td></tr>
    </table>
    <hr></center>
    <form action="./test.jsp" method="POST" name="testForm">
    <table>
    <tr>
    <td>
    <select name="appName" size=1>
    <option value="">Select Application Name
    <option value="scsmail">scsMail
    <option value="clientmanager">ClientManager
    </select>
    </td>
    <td>
    <select name="boxName" size=1>
    <option value="">Select Box Name
    <option value="testnet">TestNet
    <option value="production">Production
    </select>
    </td>
    </table>
    <table>
    <input type="submit" name="deploy" value="deploy">
    <input type="submit" name="undeploy" value="undeploy">
    </table>
    <%
       RunTest rt = new RunTest();
       rt.applicationName(request.getParameter("appName"));
        String deployButton = "";
        deployButton=request.getParameter("deploy");
        String undeployButton = "";
        undeployButton=request.getParameter("undeploy");
        if(!deployButton.equalsIgnoreCase("")){
            rt.buttonClicked(request.getParameter("deployButton"));
        if(!undeployButton.equalsIgnoreCase("")){
            rt.buttonClicked(request.getParameter("undeployButton"));
       rt.boxName(request.getParameter("boxName"));
        rt.goTest();
    %>
    </form>
    </table>
    </BODY>
    </HTML>

  • Java class not found : Run

    Installed Siebel server in console mode successfully.Invoked siebel server configuration wizard as below and have been experiencing the java error:
    siebel5@laatsc68 /siebel2/scapps/sieb80/siebsrvr/bin
    # ./ssincfgw -args LANG=enu MODE=LIVE MODEl_FILE=/siebel2/scapps/sieb80/siebsrvr/admin/siebel_server_sia.scm -is:javaconsole -console
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Preparing Java(tm) Virtual Machine...
    Running InstallShield Wizard...
    The java class is not found: run
    We are on AIX 5.3 TL10 .Please suggest how I can get around this hurlde.

    Maybe try to clear the cache when at home, then visit the page again in office to see if that's a caching issue:
    Start > Control Panel > Java > Under "General" tab, click the "View" button under Temporary Internet Files section.
    In the Java Cache Viewer dialog > Select "Resources" from the "Show" drop down menu, find the row that says Name=jreVerify.class, URL= http://java.com/jsp_utils/jreVerify.class
    p.s. You can sort the table view by clicking on the column head. You may want to delete other cache from java.com to detect the caching issue.
    Hope that helps.

  • Caching downloaded classes - again

    I created another thread for this problem, please refer to the original thread "caching downloaded classes".
    Here is the complete code:
    import java.net.*;
    import java.io.*;
    import java.lang.reflect.*;
    class Connect
    public static void main(String...a)
       ClassLoader loader = new NetworkClassLoader();
       try{
           Class<?> c;
           Method m;
           c = loader.loadClass("tryme1");
           m = c.getMethod("p", new Class[]{});
           m.invoke(null,new Object[]{});
          }catch(Throwable t){System.out.println(">>>>>>>> "+t);}
    public static byte[] downloadByteCodesFromURL( DataInputStream in) {
        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        while (true) {
               try {
                    outStream.write(in.readByte());
               catch (IOException e) { 
                      break; 
        return outStream.toByteArray();
    static class NetworkClassLoader extends ClassLoader
    public Class findClass(String name)
    Class c;
    try{
       URL u = new URL("http://localhost:80/"+name+".class");
      InputStream input = u.openStream();
      DataInputStream data = new DataInputStream(input);
      byte classBytes[] = downloadByteCodesFromURL(data);
      c = defineClass(name, classBytes, 0, classBytes.length);
    }catch(Throwable t){System.out.println(t);c = null;}
    return c;
    tryme1.p() calls tryme2.p() which calls tryme3.p(). tryme3.p() just displays a JFrame.
    Sorry, I have a problem with my browser, so I cannot apply code highlighting.
    My question is: will this code cause the JVM to cache the loaded classes?
    Thank you

    Upon your request, I marked this thread as ANSWERED, and I will continue using the original thread.
    But, PLEASE respond because as you can see from the original thread, you didn't answer my question for days, and I had said that I would create a new thread just to award you 10 points for your answer, since I couldn't do that in the original thread because I had already marked it answered for another user.
    I have been on this forum for many years before Oracle acquired Sun. In the old days, I used to get responds form more than one user the same day I post my problem. Now, the volume of posted threads and answers are much less. Are people losing interest in Java or in this forum or something else, I don't know !!!

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Managing JSP files (.java, .class) size in working directory

              Our new web application automatically generates JSP pages which
              causes the working directory holding the JSP files to grow
              too large to manage,does Weblogic have a alternate way to
              compile JSP without permanently storing the .java, .class files
              on disk.
              Maybe in cache were they can be managed, cleaned up similar
              to how a database cache works.
              Any ideas or advice would be appreciated.
              THANKS IN ADVANCE.
              

              Just don't look in the classfiles directory and everything will
              be fine.
              WLS will only leave the .java files if you ask it to keep them (keepgenerated).
              If you don't keep the .class files on disk then WLS will have to
              recompile them every time it is restarted. If you have so many
              JSPs you are having trouble managing them, you definitely don't
              want to recompile everytime you restart WLS.
              Last time I looked in our public_html there were 67000 JSP files.
              We don't have any problems managing them.
              Mike
              "denis mercier" <[email protected]> wrote:
              >
              >Our new web application automatically generates JSP pages which
              >causes the working directory holding the JSP files to grow
              >too large to manage,does Weblogic have a alternate way to
              >compile JSP without permanently storing the .java, .class files
              >on disk.
              >Maybe in cache were they can be managed, cleaned up similar
              >to how a database cache works.
              >Any ideas or advice would be appreciated.
              >THANKS IN ADVANCE.
              

  • Oracle.apps.fnd.framework.OAException: Could not create Java class

    Hi,
    Have created a customization in one environment which works just fine. When I deploy it to the next environment I get the error message:
    oracle.apps.fnd.framework.OAException: Could not create Java class
    Things I have checked:
    1) Imported the personilzations
    2) bounced apache
    3) confirmed the $CLASSPATH
    4) clear the cache
    What else can be causing the this?
    Thanks

    Hi,
    Move the all class files to respective java top. if you moved all class files to java top cross check once.
    Thanks,
    Venkat

  • Documentation or Blog on using java classes in idm

    Hi all,
    I am new to this environment. And i would like to know how to use the java methods in rules, and how write java classes for customised purpose.
    i.e writing the ones using the IDM provided package
    such as getting users from session cache, and rest all ..........
    Is there any documentaion for it. Or any one's blog?
    Please help me out.
    Thankyou

    When you download IDM, the install package has a directory "RFE", you can find this information there.

  • Communication between 2 servlets/java classes.

    Hi,
    I’ve a problem. Not sure if it’s a simple one.
    I have a web app with servlets (say Servlet1, Servlet2, etc.) in it. I use a SQL query in Servlet1 and fetch an employee’s information (say empinfo) from the database. This is a string value. Now, I need to pass this “empinfo” to Servlet2.
    I might sound dumb till here but please continue till the end to know what I still have to say…
    1.     I tried using getters and setters. Servlet2 has the “empinfo” value I need. This is the first time Servlet2 is accessed.
    2.     But, think that Servlet1 is transferring the control to an html page. And, this html page submits its parameters (say manager) to Servlet2. And, when this html passes its control to Servlet2, the “empinfo” value I need is gone because I used “empinfo” as a class member/global.
    3.     So, when the control enters the Servlet2 the second time everything is lost and this is when I need the “empinfo” value.
    4.     I cannot make the “empinfo” value in Servlet2 “static” because it keeps changing.
    Note: I tried with all these: httpsession, reflection, etc. but nothing seems to fulfill my task.
    Actually, Servlet2 lets the users to download the “empinfo” when a link on the html page (which sends the parameters to this servlet) is clicked.
    I used httpsession to store this “empinfo” in Servlet1 and used to grab the value in Servlet2.
    Then, I ran this app on my localhost. Then:
    Step1: I opened up one browser and when I clicked the link on html, I checked the “empinfo” value. It was fine.
    Step2: I opened up another browser and when clicked the link on html, I checked the “empinfo” value. It worked again.
    Step3: Now, I went back to the html page in the browser1 and clicked the link and checked to see the “empinfo” value and now it has the value of that in browser2.
    The “empinfo” always had the latest value. Previous values are overwritten.
    If I could find a way to cache the Servlet1 object to use it in Servlet2 then I think my job is half done because even if I let Servlet2 keep a reference of the Servlet1, the html page is ruining the desired result.
    If anyone can let me know how to do this with normal Java classes even that works for me.
    Thanks in advance.

    Thanks for the reply.
    Actually, when I used the session the IE browser behaved properly and its the FireFox that was weird.
    I think this is because Firefox uses single cookie for many instances of itself.
    Thanks again.

  • Global Container in Java Class of Interface Mapping

    I have written a Java Class that implements the StreamTransformation interface for use in an Interface Mapping. I would like to cache information read from a file between message processing calls of this mapping.
    It appears that maybe the GlobalContainer object can be used to perform this caching. How do I access the GlobalContainer object from a class that implements StreamTransformation?
    The examples all show container.getGlobalContainer() method call to get access to this object. However container is not a variable in this interface. Any ideas on how to do this?
    Thanks,
    Jay

    Hi Jay,
    if you want to link data from different messages you must use BPM, you cannot do this with GlobalContainer because it is instantiated at the begin of the mapping and is flushed at the end of the mapping (e.g. graphical mapping).
    2 files for the same scenario will use 2 different instances of the same message mapping program and they will not share the container.
    The container is shared inside the same instance of the mapping program.
    So it is shared for example between two UDF in the same mapping
    So if you are using Java mapping you do not need to use the global container, you can use an Object to store data, but keep in mind that all this data will be lost at the end of the mapping.
    Hope it helps,
    Kind Regards,
    Sergio

  • Windows classpath vs java.class.path error in QuickTime based applet

    Hello
    I've spent days reading and searching the internet, and I'm still stumped why some Windows installations are not able to run my QuickTime for Java based applet even though QuickTime is installed (the specific error is: java.lang.NoClassDefFoundError: quicktime/QTException). I have some additional details and a question that might spur someone to an insightful nudge.
    On a Windows system that fails:
    echo %classpath%
    .;C:\Program Files\QuickTime\QTSystem\QTJava.zipWhich is where QTJava.zip is found on the (faulty?) system, but java.class.path is just:
    java.class.path = C:\PROGRA~1\Java\jre6\classes
    Of the dumped system properties, only java.library.path makes any mention of the QTSystem folder (or any other QT or QuickTime related items).
    java.library.path = C:\Program Files\Safari;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PROGRA~1\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\
    I ran across one thread (elsewhere) where the user was having problems with loading some classes from a complex JAR environment, and a solution was to write a custom class loader. After doing so, the user got the same error "java.lang.NoClassDefFoundError: quicktime/QTException" that was resolved by extending the custom class loader to include .zip files. I'm not sure if the solution is relevant, or if he simply broke something in his custom class loader that would have worked otherwise. I've not written a custom class loader and not sure where to begin, so before I ventured down that path I was hoping someone might shed some light as to if this is a dead end or potential solution. This is a signed applet (QuickTime now requires it, even if you are only playing files of the same server) and it does work on several Windows machines and all tested Macs.
    Thank you,
    Deron
    output to Java Console with level 5 tracing enabled
    basic: Joining applet thread ...
    basic: Joined applet thread ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=2
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=1
    basic: Done ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@3a9bba
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://www.equushd.com/quicktime/QTException.class, version: null]
    network: Connecting http://www.equushd.com/quicktime/QTException.class with proxy=DIRECT
    network: Connecting socket://www.equushd.com:80 with proxy=DIRECT
    java.lang.NoClassDefFoundError: quicktime/QTException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: quicktime.QTException
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 10 more
    basic: Exception: java.lang.NoClassDefFoundError: quicktime/QTException
    Ignored exception: java.lang.NoClassDefFoundError: quicktime/QTException

    Something is wrong with the library.
    Staring at java code will not help you figure that out.
    Maybe it isn't intended to be loaded in java but instead it loads java itself?
    If not then write a C/C++ basic app that links that dll in and see if you can at least get it to start.

  • Where are Java classes in Forms running

    Hi,
    I've got a question concerning the architecture of Java in Forms.
    There are two possibilities to deploy Java classes for the use in Forms:
    1. As a jar archive, defined in formsweb.cfg
    The archives definied in parameter archive_jini are downloaded when the form is called for the first time. The Java class is then running in a JRE on the client.
    2. In the codebase, not archived.
    The Java class has to be placed in the Forms codebase (%9iDS_HOME%\forms90\java), with the full package structure (e. g. oracle\forms\demos\beans\Hyperlink.class).
    My question is: Where will the class run in the second configuration? I suppose, on the server side. Am I right?
    Thanks for your help.
    Andreas

    NO in that case it still runs in the browser JVM, using Jars or classes in this case only effects the downloading and caching - not the execution location.
    Java code is only executed on the application server if you have used the Java importer feature to create PL/SQL stubs.

Maybe you are looking for