Internationalization in jws application

where will be the locale details available in the JWS applicaiton package?
How JWS application detects country code ?
How to change the datas from English to Chinese ?
Advance Thanks
Regards
P.Ramkumar

This is covered in some detail in the jnlp specification.
For the 1.5 version, it would be - sections:
3.5 Descriptor Information (3 JNLP File)
4.1 Overview (4 Application Resources)

Similar Messages

  • Transfer Data from a JWS-Application to another one

    Hello
    I have an JWS-Application that starts another JWS-Appliction via BasicService, showDocument(...).
    Is there a way to transfer a large amount of data from the first application to the second one without using the filesystem?
    Thanks.

    >
    Nice demo Andrew.>Thanks. If anybody has the time, they might try adjusting the source file for that, from 16,000 bytes and see if they can claim the Meg. memory.
    ..some minutes later.
    OK. It seems it can, so long as the user agrees (and it has not been barred by the system admin. etc.). First I got a dialog saying.
    The maximum size of allotted storage is 262,144 bytes. 
    The applications has requested to increase it to
    15,000,000 bytes.But once I'd OK'd it, then the console output read:
    Cache created - size: 15000000Edit 1:
    Alternately, to keep it both entirely sandboxed and without prompts. Request only the 262,144 (80Kb by my calculations) and write the data part by part within that limit.
    The reading app. would need to check the persistence cache on a Timer (or similar) while the writing app. in turn checks it regularly during write operations. As soon as the reading app. has noticed and read the latest chunk of data, it sets a flag in the persistence service, and the writing app. writes the next chunk.
    Edited by: AndrewThompson64 on Dec 9, 2008 9:30 PM

  • Uninstalling additional files associated with JWS applications

    I have a JWS application that works fine however I would to be able to optionally remove or delete the work directory and files which are not in the JWS cache. Is there a way of doing this?

    I couldn't find a direct way of doing this. But I found a workaround. I created a uninstaller jnlp so that when it is uninstalled it deletes the resources.
    Uninstaller jnlp Example:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
         spec="1.0+"
         codebase="http://...."
         href="uninstall.jnlp">
         <security>
              <all-permissions/>
         </security>
         <resources>
              <j2se version="1.5+"/>
              <jar href="/lib/uninstall.jar"/>
         </resources>
         <installer-desc/>
    </jnlp>
    Main jnlp
    <jnlp
         spec="1.0+"
         codebase="http://..."
         href="launch.jnlp">
         <resources>
              <j2se version="1.5+"/>
              <jar href="/lib/main.jar"/>
              <extension href="uninstall.jnlp"/>
         </resources>
         <application-desc/>
    </jnlp>When a <installer-desc/> is installed its main will be called with "install" and when its uninstalled main will be called with something else.
    Here is a sample main for uninstall.jar:
         public static void main(String[] args) {
              javax.jnlp.ExtensionInstallerService extensionInstallerService = null;
              try {
                   extensionInstallerService = (javax.jnlp.ExtensionInstallerService)javax.jnlp.ServiceManager.lookup("javax.jnlp.ExtensionInstallerService");
              } catch (javax.jnlp.UnavailableServiceException ex) {}
                   if (args.length == 0 || !"install".equals(args[0])) {
                        ApplicationServices.deleteLogDir();
                        ApplicationServices.getInstance().setStartup(false);
                        try {
                             Preferences prefs = Preferences.userNodeForPackage(Uninstall.class);                              
                             Preferences parentPrefs = prefs.parent();
                             prefs.removeNode();
                             removeIfEmpty(parentPrefs);
                        } catch (BackingStoreException ex) {
                             ex.printStackTrace();
              if (extensionInstallerService != null) {
                   extensionInstallerService.installSucceeded(false);
              System.exit(0);               
         }I think it would be nice if this functionality could be described in the application jnlp so the main on the original application could get the message and handle any cleanup it needed to do instead of a separate extension jnlp

  • Reading/Writing Cookies in a JWS-Application

    Hello at all,
    is it possible to read / write local stored Cookies with an JWS-Application?
    Scenario: The JWS-Application runs at the client PC and should be able to read / write one special cookie on the same machine.
    Thank you and best regards,
    Stefan

    My problem is, that we have some webapplications running which write a session-cookie.
    Then we have some swing applications on the client-side (Java WebStart). The JWS-Swing-Applications have to read / write the same cookie as the webapplication to provide single-sign-on.
    Is this possible?
    The Java-Version is 1.4.2_07.
    Best regards,
    Stefan

  • Dynamic JNLP and JWS Application Manager

    All,
    I have a Swing application that communicates to the server via Servlets. I have packaged the entire application into a WAR file and I am using JWS to distribute to the users.
    The "main" method of my application accepts two parameters, one of which is dynamic based on information from the web server. To be able to calculate the value of that parameter, I decided to dynamically create and serve my JNLP file through a servlet. The parameter is then passed into the application via the <argument> tag in the served JNLP file.
    That part works great. However, once the application is installed, it doesn't show up in JWS Application Manager. My best guess is because there is not a "physical" JNLP file for reference.
    Can anyone out there confirm or deny my guess? And, more importantly, can anyone give me an idea on how to keep the dynamic JNLP file and get it to install in the JWS Application Manager?
    Thanks!

    Got it fixed. Apparently, the JWS Application Manager "view" setting wasn't correct. Once it was working, the application was showing up fine.

  • Creating Icon from JWS Application

    Hi,
    I have a quick question:
    I would like to be able to launch a JWS application from a web page and have a desktop icon added to the desktop -- kind of like a "normal" application would if you used installshield to install it.
    I know that I can add the
    <shortcut>
         <desktop submenu="Docs Express"/>
         <menu submenu="Docs Express"/>
    </shortcut>
    XML to the JNLP, but the default behavior of the JRE seems to be to "prompt" the user to add the icon.
    Can I either send a flag into the JRE installation (via a PARAM) telling it to set the default behaviour to "Always" or somehow use the shortcut element to tell it to "force" a shortcut to be installed.?

    No, I don't think you can force a desktop shortcut (or any kind of other desktop integration for that matter). The user has to make that decision.
    But then, most Installshield applications ask if you want a shortcut on the desktop too...

  • Internationalization in WebDynpro applications

    Hi,
    I have a requirement to internationalize my WebDynpro application.
    I have created a WebDynpro component and maintained all the language dependent texts in the .xlf files of that component. 2 applications have been created for the component- 1 in English and 1 in German. Both work fine in their resp. locale when run independently.
    Scenario: When the user runs the application, all texts appear in English (default). However, if the user desires to obtain the application in German, he is supposed to click on a button to get all the texts in German.
    Tried solutions:
    1. Making use of the Exit plug. When the user clicks on the German Button, we fire the Exit Plug to the application having  "sap.locale=de"
    2. Appending "?sap-locale=de " to the application URL.
    In case of both of the above solutions, the texts do not change as per the locale,however, when I copy the same URL and start a new session in a new browser, the texts appear as per the Locale.
    Is there any way of changing the locale dynamically during the same session ?
    Regards,
    Gaurav.

    Hi Gaurav,
    You can use key-Value concept of java and KM file concept.
    You have to create two java files for declaring constant and key/Value.
    You have to define setter/getter method.
    You have to use parameterization concept for the Web Dynpro UI name means need to declare attribute and need to bind with the text value for UI's
    You have to store key/value file in the KM doc ladder.
    You have to pass file name to Application parameter property into the Application iView.
    You have read this application parameter in the controller and need to use has map and session concept to read the files value.
    Hope this may help you.
    Deepak!!!

  • Decompile / reverse engineer JWS applications?

    If a program is deployed as a JWS application does that allow a user to decompile / reverse engineer the application code that is stored on the user's computer (assuming ineffective obfuscation)?
    If that is true then is it not better to continue to deploy the program as an applet so that the user can not access the applet code?
    (I apologise if this is a trivial question but I couldn't find this issue being addressed in any of the JWS hype)
    Cheers

    If a program is deployed as a JWS application does
    that allow a user to decompile / reverse engineer the
    application code that is stored on the user's computer
    (assuming ineffective obfuscation)?Yes, of course.
    If that is true then is it not better to continue to
    deploy the program as an applet so that the user can
    not access the applet code?No, that's a false assumption. If the class bytes are accessible via a web browser (how else can the applet work?) then they can be saved to the local machine and reverse-engineered.
    If you want to increase the difficulty of reverse-engineering you should use an obfuscator. Just make sure it's a good one that produces class bytes that pass the verifier.

  • Getting thread dump of JWS application

    Hi,
    I know this was discussed a few times before, but I still have no solution for my problem.
    I have a JWS GUI application that deadlocks sometimes (Windows 98). So I want to get the thread dump to analyze the deadlock. In Java Web Start I changed the java command from javaw.exe to java.exe, so I get a dos box. When I press CTRL-BREAK inside the dos box, I get the thread dump but because the dos box just shows a few lines I only get the last lines of the dump. Under Windows 98 I cannot resize the dos box.
    Is there a way to redirect the output of the dos box to a file? Or is there another way to get the thread dump of a JWS application?
    Thanks in advance
    Markus

    Here is 50% of the solution. To generate a thread dump programatically, you need to call JVM_DumpAllStacks through JNI. You need to link in "jvm.lib".
    JNIEXPORT void JNICALL JVM_DumpAllStacks(JNIEnv *env, jclass unused);
    JNIEXPORT void JNICALL Java_Services_generateThreadDump(JNIEnv *env, jobject thisObject) {
         // Produce a thread dump to VM standard out
         JVM_DumpAllStacks( env, NULL );
    }Here is the java class that calls the JVM_DumpAllStacks method through JNI.
    public class Services {
          * Send a message to the VM, forcing it to create a thread dump. The resulting
          * thread dump will be sent to stdout. Note that this is the VM's stdout, not
          * necessarily System.out.
         public static native void generateThreadDump();
    }When you reach the point in your code that you want to generate a thread dump, close stdout and reopen it with the thread dump destination stream. Next, call the JNI method. This will send the thread dump to stdout.
         // Replace stdout with a file output stream
         System.out.close();
         System.setOut( new PrintStream( new FileOutputStream( "stdout.log" )));
         // Generate thread dump
         Services.generateThreadDump();Why is this only 50% of the solution ? Because this works beautifully for regular applications but it does NOT work for WebStart applications. Not sure what is happening here, but so far I have not managed to get any thread dump in a file from an application that has been fired up through WebStart. Note that I CAN get a thread dump in a file if I fire up the same code from the command line.

  • Clients can't start my JWS application - strange exception

    My clients are having a problem - some of them can't launch my JWS application. The error is a "class not found" exception, even though the class is in one of the jar files. It only happens for some users.
    Can someone from the JWS team look at this? Do you know what the problem might be?
    The discussion about the problem is at http://rpischeduler.com/forums/viewtopic.php?t=18
    Thanks!

    Hi eww!
    Yes, that is of course not a big issue. I just found this behaviour a bit unstable for being a Mac. I turned to Mac quite recently. I love it, but I am struggling a bit with some of the differences...
    Thanks for your reply! At least I know I'm not alone experiencing this.

  • Upgrading JWS applications installed in the system cache (enterprise)

    Hello,
    On request from several customers, I've looked into the best way to install a web start application for all users on a computer. These customers have users sharing computers, and the IT department doesn't want to be inconvenienced with installing applications on every user profile on every computer. The following articles provides a thorough explanation into how this can be done.
    http://download.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/javaws.html
    http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    By specifying the system deployment.config and deployment.properties files and performing the following installation command as an administrator, the application is made available for all current and new users with shared icons on the desktop and the start menu. This works actually very nicely.
    javaws -system -import https://server/app.jnlp
    However, I'm running into different problems when trying to upgrade the application. The application uses an online shortcut (but can be run in offline) and the update check is set to background.
    If an ordinary (non-administrator) user start the application when a new version is available on the server, web start downloads the new version in the background, but into the user's personal cache! When restarting the application, the old shared version still starts. Web start does not download the new version, presumably because it found the new files in the personal cache.
    Another approach I tested was to use offline icons and manually performing a new system installation/import. This downloads the new version into the shared system cache, but leaves all shortcuts invalid. Now the only solution to start the application is to run it from Java Control Panel. It's not even possible to recreate the shortcuts.
    I'm wondering if I'm doing anything wrong or if there exists some best practices for enterprise installations that I'm not aware of. I'm suspecting that these problems are due to limitations or bugs with JWS, but I thought to check with the community before reporting it officially to Oracle.
    The customers are using client computers with Windows flavours.
    I've been testing on Windows 7 64 bit using the 32 bit JRE 1.6.0_u23.
    Any suggestions would be really appreciated. If you are handling enterprise installations in altogether different manner, don't hesitate to respond.
    Thanks.

    Hello,
    Were you able to solve your problem?
    Actually, I'm planning to install the application for all users in a system and I'm on the investigation process.
    In fact, these are my concerns:
    - What is going to happen if a user with limited permissions tries to install a javaws application and it has been enable to be installed on system cache?
    - Where the deployment files need to be located? In the web server (where jnlp is located)?
    - Could system cache installation be performed automatically (when jnlp file is launched) or it would be performed by a system administrator?
    If you could share some information on how you installed a javaws application for all users, I would really appreciate it.

  • Launching jws application outside firewall

    Hi all,
    We have successfully deployed our application with JWS at a client site. We don't have any problems within the client environment, but we can't seem to provide home access to their users.
    Client is using Cisco VPN Concentrator 3020 series and they give only WebVPN access.
    We have tried many things but here is where we are stuck:
    1. User goes to the website
    2. Establishes a WebVPN session after entering the user/pwd
    3. User enters the URL for the application
    4. home.html goes through fine
    5. JWS launch errors out with an exception.
    Exception is 'missing <jnlp>'. When you look at the Launch File, you see an html page with fields for username and password entry. It seems like as JWS start creates a new connection to the secure website, it needs to authenticate it self. Unfortunately we don't receive the 401 http code, instead we receive an html form.
    I would appreciate any ideas for dealing with this situation.
    Thanks,

    If your jnlp file contains the <offline-allowed> javaws will "attempt" to
    download new jar files if it can read the timestamps from the net (and determine that new versions are needed) within a certain timeout (defaults to 1.5 seconds). If the timeout occurs the old version will launch, and the timestamp check will continue in the background. If the timestamp check then finds new files, it will simply flag this in the cache, so on the next launch it will be forced to download.
    I don't see any reason why it should be any differant launching from browser or from Application Manager, unless that changes the timeing so the check just happens to work within the timeout.

  • JWS application arquitecture

    Hi, we are taking the development of a jws app this app, the app has strong requirements in security... the rest is the same for commmon app.... users, permisions, CRUDs to a database... now at this moment I'm a little confuse about the arquitecture, how can I do this app.
    The real arquitecture problem is how handle communication between clients....
    RMI? can I work it over a secure conexion (performance problem)... or send the CRUDS operations to the clients and access directly the DB over SSL.
    Or use tomcat for example to answer the clients request... in this case how can I do this...
    or use plain sockets ??? but how to handle effectivily the client requests....
    the concurrent number of clients aprox. is 100 and is over internet... so the perfermance is also a worry.
    Thanks for your advice,

    Hello David,
    I lead a free software project at java.net that may be just what you are looking for. It allows applications to transparently remote their user interfaces as Applets, and via WebStart. It's called the cajo project. It is very small, very powerful, and best of all: very easy to use.
    If you want to try it out right a way, and do some experiments, here is a very short example that can get you started.
    Best wishes,
    John

  • Shortcut for JWS application

    Hi,
    I'm writing an application by using JWS and JNLP.
    When javaws generates a shortcut on desktop or in startmenu its parameter points to a jnlp-File in the webstart-cache.
    Is there any chance to let javaws generate these shortcuts using parameter like "http://..."?
    Thanks in advance!

    Hi,
    The short-cut created normally refers to the webstart-cache. But if there is any update then it will download the updates from the server. Thus it would look like it is running from the server.
    In ur JNLP:
    <shortcut online="true">
    <desktop/>
    <menu submenu="Application"/>
    </shortcut>
    Is this what ur looking for? Can u specify why u want to do this?
    //Anjali.

  • JWS Application to Browser (JavaScript) communication

    Here is my scenario:
    I would like to use Java Web Start technology to distribute a training simulation application. The main application is written in native code, and I would like to launch the app from a web browser, and have the native app send simple messages back to the browser (i.e. "Objective xyz completed").
    So far I've been able to create a Java Web Start wrapper application and deploy it along with the native code and resources via Java Web Start. So far so good. I also have tackled JNI to enable the native app to talk to the JWS wrapper.
    My problem is getting the Java app (started via JWS) to talk back to the browser (specifically a JavaScript method or headless Java applet). Do my dismay, I have found that there is no direct way for JWS app to talk to the browser that launched it. So what are my "indirect" options?
    I have been toying with the following ideas:
    1) use a java applet in the browser to talk with the JWS app via sockets
    2) use a java applet in the browser to talk with the JWS app via RMI
    Is my analysis correct, or are there any other possible solutions to my problem?
    Note that I am already using native code in the JWS app, so I will have to have some sort of elevated permissions anyway...
    Thanks,
    Chris

    Sorry, but one of the main differences between an Applet and a JNLP app is that JNLP apps don't know anything about the browser. (The browser only knows about the JNLP MIME-type, which is (hopefully) associated with JavaWS.)
    Basically, think of the JNLP app as any other stand-alone app when it comes to the browser. If you need to talk to the browser, then anything that would let a stand-alone app talk to the browser will also work for a JNLP app. However, I don't know of any standard tactic for doing this.
    One question is, do you really need to talk to the browser, or is it possible you just want to talk to your server using HTTP?
    Also, if all you want the browser to do is display a specific page, then there is an API for that in 5.0. This is described here:
            http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/examples.html#BasicService
    If you really need to talk to the browser, then you should probably consider writing your application as an applet instead.
    Mike.

Maybe you are looking for

  • EDI Shipment Output  Master Data Conversion

    Hi, I am using LSMW to upload EDI Shipment Output Master Data into file can anyone suggest me any standard BAPI or Idoc avail for the same or any function module available to do this. Thanks Dhirendra

  • To select the field dynamically while fetching th e data

    Hi Experts, We have fields like TKG001, TKG002, TKG003 etc in COST table... My requirement is that we want the value present in the field TKG0** where ** is the month of system data. Do we have any method to extract the field dynamically from the tab

  • Login as a component?

    Hello, I've done a login in my main-app and I want to outsource it as a component If I done this, I could implement my login-component like this         <mx:ViewStack id="Views" width="100%" height="550">             <LoginView id="loginView"/>      

  • Can i restore save game information once app is deleted from iPhone?

    Hi. I have a lot of games that i no longer play and want to remove from my iPhone to free up space. However i don't want to lose the game save data (i may want to play them again in the future). If i delete these apps from my iPhone, and then add the

  • Tmp files created on desktop while running queries

    Hello I have on some PC's a problem while running reports in Discoverer Desktop: for each report I run, a tmp file is being created on desktop and its not being deleted after closing the Discoverer. can someone advice? thanks