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