How to run the dynamic jnlp generate by jsp, but cache one is not dynamic?

Hi Web Start expert,
I need some urgent help on this issue. I want to pass some session info from my protal web app to my java app through web start. I have tried to use a servlet or jsp to generate a dynamic JNLP which will include all the necessary properties. It works fine if I don't include a href attribute in my jnlp tag. but I won't be able to launch the application off line. So I include the href to point to a static jnlp file resides in the same directory where jars are installed. This time when web start launches, my Java application does not seem to recognize all the login properties I passed through web application, and launch the Login Dialog. What I want to do is, if I come from the portal, since I had signed on to the portal, I don't need to login again to the java app. but when next time I click on the offline shortcut on my desktop for my Java app, I need to sign on to launch my Java app that was cached on the client machine. What is the best way to do this? Please help!
Thanks in advance.
Jenny

The problem here is, when you acess the servlet from the browser, the servlet generates the jnlp file with the properties based on the full reference to the servelt (ie: http://myhost.com/servlet?arguments=xxx;yyy).
If you put the href in the jnlp file:
<jnlp codebase="http://myhost.com" href="servlet">, When Java Web Start is invoked, it will re-download the jnlp file using just "http://myhost.com/servlet", This will cause the servlet to generate jnlp file w/o the propertys that were based on the arguments and parameters to the url.
On the other hand, if you try to add the arguments and parameters to the href wirh <jnlp codebase="http://myhost.com" href="servlet?arguments=xxx;yyy"> two problems occur.
1.) java web start (all versions thru 1.4.2) will generate the cache directory based on the whole string "servlet?arguments=xxx;yyy" this means that every invocation is a seperately cached app, and you will get lots of entries in the download applications page in the Application Manager.
2.) on some platforms, generating cache directory with "?" or ";" can cause IOExceptions.
These problems will be addressed in 1.5:
1 - the cache directory will be based only on the string up to the first "?" or ";".
2 - jnlp files w/o href, will still be shown in the downloaded applications, and can be launched offline (if offline-allowed)
In the mean time the only work around I have heard, is someone tried modifying the servlet, to first download the jnlp file with the correct parameters and args but with href="servlet", but caching the jnlp file generated, and then when java web start requested the servlet with no args, a few seconds later, sending it back the cached version.
/Dietz

Similar Messages

  • How to run the form that is only installed on a PC and not using a server?

    Hi
    I am new to Oracle and have taken the forms class. But I do not understand how to run the form from my PC using XP windows. (Do not have access to a server).
    I have started the OC4J, made sure the listener was started, compiled the form and then when I run it, it automatically goes to the HTTP:
    ERROR: res://ieframe.dll/acr_depnx_error.htm#,http://kevin:8889/forms/frmservle
    I connected to the database correctly. I can process a report and it does nor try to access the internet. My only issue is running the form. I verified it compiled.
    Sorry for a basic question. Could someone please help, I tried reviewing other questions, but not sure if they are connecting to a server or not.
    I see webutil but is it required if I don't have a server? Thank you in advance.

    Regardless of the version, it appears that you may not have configured the Builder. Do the following:
    1. Open the Builder
    2. From the menu, select Edit > Preferences > Runtime
    3. In the box labeled "Application Server URL:", enter a local URL needed to run a form OR click the button labeled "Reset to Default". If you decide to manually enter a value, it would looks something like this:
    http://localhost:8889/forms/frmservlet
    4. In the field labeled "Web Browser Location:", enter the path and executable to your preferred browser. So for example if IE is your browser of choice the entry would most likely look like this:
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    5. Click on OK and retest.
    By the way, you can manually enter a URL in the browser. Clicking the RunForm button from the Builder is strictly optional. To run the "test" form directly from the browser enter the following into the browser's address field:
    http://localhost:8889/forms/frmservlet?form=test
    More information about Forms can be found on OTN:
    http://www.oracle.com/technology/products/forms/index.html

  • How to run the JNLP from Command Line

    Hi All,
    how to run the JNLP file from the remote machine from our command line. I have requirement to run this JNLP file in java 1.4.2 version. Can any one tell me the procedure or the steps that are needed to run this file at command prompt.
    Regards,
    Prasanna.
    Edited by: VPrasanna on May 19, 2008 4:43 AM

    >
    I am getting "**java.security.AccessControlException: access denied (java.net.SocketPermission wwwgate0.mot.com:1080 connect,resolve)**" when I start the Web Start Client. >This seems like a largely separate problem to running the JNLP from the command line. It might have been better to end this thread (assign the dukes) and start a new one.
    >
    ..Can you help me in resolving this issue. >However, I suspect I can guess the problem.
    If this app. is normally hosted on wwwgate0.mot.com then it can 'phone home' to the server without further permission, but if you are running it from the command line, that might not be the codebase anymore.
    If you wish to do 'local testing' of such an app., I would recommend setting up a server like Tomcat on the local machine, and serving the test app. directly off that.
    >
    ..Its urgent...>Sun offers a number of options for urgent matters, such as support tickets. Perhaps you should look into one of those.

  • How to run the basic list in background to generate secondary.

    How to run the basic list in background to generate secondary and spool for the secondary.Please note that Basic list will run in foreground.

    Problem solved.

  • How to run the code generator

    I urgently need to know how to run the code generator using creator. Can anyone assist? I cant find any tips in the forums.

    I am following the procedure to create a new custom component (or extend an existing component) available at http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/writing_custom_components.html.
    Part of the procedure says: you need to use the JSC to run the code generator based on sun-faces-config.xml metadata.

  • How to run the ejb project in j2ee server

    How to run the EJB project.
    I give like
    java conveterClient converterClient.jar
    here conveterClient is class file name and converterClient.jar is deployed file
    like wise i give some exception is come
    give some help pls friends

    Navigate to the "DBOrders" module in the catalog, right click on the "ORDERS" database below and click "Export Schema Stucture". That will produce a file containing the DML needed to create the database

  • HOw to run the Applet in dos mode

    how to run the applet in Command Prompt(DOS).
    I have save this in directory D/vijay/javap/A.java and my JDK is in C drive.
    Plz send me reply as soon as possible.
    My code is :-
    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
         w = 45;
         h = 50;
    public void paint(Graphics g)
         g.drawRect(w, h, 20, 80);
    }

    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
    w = 45;
    h = 50;
    public void paint(Graphics g)
    g.drawRect(w, h, 20, 80);
    <applet class="A" height="200" width="200" code="A.class">
    </applet>
    */And in command prompt
    javac A.java
    appletviewer A.java
    Message was edited by:
    passion_for_java

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • How to run the programes in NetBeans

    any body know how to run the java progarm in NetBeans.
    can u please guide me?
    Advance in thanks

    thanks for ur reply.
    this is my code.
    public class sample11 {
    /** Creates a new instance of sample11 */
    public sample11() {
    public static void main(String args[])
    System.out.println("nithya");
    i did watever u told. but i don't have o/p. wat can i do? how to it display the o/p?

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • How to run the smsserver in xp

    hi friends,
    May i know, how to run the smsserver in windows xp...

    What smsserver?
    Please ask detailed questions.

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • How to run the application in weblogic

    Hello!
    I have deployed 1 application in Apache Tomcat , it is working fine. Now i want to deploy same application in Weblogic Server. I have already installed "Weblogic 9.1". Now i dont know how to do and what to do next.
    I also dont know where to copy that application folder in weblogic, and how to run & deploy the application?
    I have stuck over here.
    Please if anybody knows how to run the application in weblogic, plz let me know.
    I need your help.
    Thank you.

    hi,
    have you gone through [this link.|http://e-docs.bea.com/wls/docs92/index.html]. i think it may help.

  • How to run the mappings in owb?

    Hi,
    I am new to owb pls say that how to run the already created mappings in owb.My dba have loaded the data in the oracle i neeed to uppend the data in to owb.pls help me.
    Thanks,
    raju
    Edited by: 814740 on Nov 23, 2010 12:49 AM

    You need to make sure that OWB control center service is running . You can check this by show_service.sql (OWB_HOMW\owb\rtp\sql)
    Then logon to OWB designer --- > goto control center ----> select the mapping you want to run .
    Verify that it is deployed successfully . If yes the click on start , your mapping execution will start .
    See the result .
    Thanks,
    Sutirtha

  • How to run the Macro in RTF

    Hi Tim,
    Do you know how to run the WORD macro in RTF?
    Suppose I want to run the macro for Section Break, Is there any way we can call it using WORD Macro.
    Any help is appriciated.
    Thanks,
    Ambadas

    Hi Ambadas
    Now, Im not entirely sure what you mena by:
    'Do you know how to run the WORD macro in RTF?'
    Are you looking to run a macro to create a section break for you during the design of the template? - you can do this.
    Or do you want to embed a macro in the RTF output - you can not do this - RTF does not support macros.
    Please explain further.
    Regards, Tim

Maybe you are looking for