Pankaj,
Thanks for your response. I think the ODWEKProperties is deprecated in v8.5 of ODWEK. Here's a snapshot from the documentation:
public class ODConfig
extends java.lang.Object
The ODConfig Java object will be the preferred method in which to configure the system parameters and the arswww.ini will be deprecated with version 8.4 of ODWEK. Until then, both the ODConfig Java object and the arswww.ini file will be supported.
There are eight system parameters needed for a working ODServer instance. These can be set to default values through the ODConfig default constructor:
try{
ODConfig cfg = new ODConfig();
ODServer srvr = new ODServer(cfg);
srvr.initialize(null, "MyCustomApp");
cfg.printConfig();
}
catch(ODException e){
System.out.println("Exception " + e);
}
This sample code will configure the following default parameters:
AfpViewOpt PLUGIN
LineViewOpt APPLET
MaxHits 200 This is used to set a global maxhits that can be returned from a search. This will not override the Admin settings. Also can be set per folder using ODFolder.setMaxHits
MetaViewOpt NATVIE
AppletDir /applets
Language ENU
TempDir The temp path as defined by the Java System.getProperty("java.io.tmpdir") method.
TraceDir The temp path as defined by the Java System.getProperty("java.io.tmpdir") method.
TraceLevel 0
For information on these parameters please refer to Chapter 7: Specifying the arswww.ini file in the OnDemand Web Enablement Kit Implementation Guide.
These eight parameters can also be explicitly set via the following sample code which utilizes a different ODConfig constructor:
try{
ODConfig cfg = new ODConfig(ODConstant.PLUGIN, //AfpViewer
ODConstant.APPLET, //LineViewer
null, //MetaViewer
500, //MaxHits
"c:\\applets", //AppletDir
"ENU", //Language
"c:\\temp", //TempDir
"c:\\temp\\trace", //TraceDir
1); //TraceLevel
ODServer srvr = new ODServer(cfg);
srvr.initialize("MyCustomApp");
cfg.printConfig();
}
catch(ODException e){
System.out.println("Exception " + e);
I tried using the ODWEKProperties class and I'm seeing an error that it doesn't exist.
Thanks
Sandeep Veldi