• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Is there any way to use JDK1.4PreferenceAPI in JWS + Applet clients

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
Actually, we are in process of reusing the J2sdk1.4 new utilities like (Preferences API ) in all the applications means Application client, Java WebStart Client , Applet client ,Application client. J2sdk1.4 Preferences API provides an option to Plugin our Implementation for reading and writing User Preference Information.
Actually our application should provide the support for JWS(Java Webstart)client,Applet client, Application Client, we can not Plug in our own Preference Factory Implementation , because of some security concern.
We came to know that it is possible via setting system property -D option and signing the Jar which uses this Preference API class. But it will create more problem for our client while using our application . So we need to use JDK1.4 Preference with out using above two methodology.
Is there any possible solution which can help me to use the JDK1.4 Preference API in all the clients???.
I am able to solve the problem by putting both the classes in a single signed jar. Now i am get into the new Problem. The problem is, even if i set the SystemProperty for Preference Factory, it doesn't take effect at all.
Actually what happened was, while starting the Browser(Netscape or IE), browser will try to load all the Java classes (which includes InputMethodManager class also). This InputMethodManager class create an Object for Preference Node and use the same for getting the Preference values. In this case if i invoke My Application(Applet) from the browser, and set the System Property (For Preference Factory), it won't take effect at all. Suppose if i use Preference.userRoot() in my application, it will try to look the Java Preference Object and return the same which is not a desired one. So i would like to know, is there any mechanism to set/reset the Preference Factory (for my Application alone)???
Please help me to get out of this problem. It is very very important for me.
Your help is highly appreciated
Thanks & Regards,
Pitchaimani
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Pitchaimani"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic