Pavan is incorrect; just call [url=http://documentation.softwareag.com/webmethods/wmsuites/wmsuite8-2_ga/Integration_Server/8-2-SP1_Integration_Server_Java_API_Reference/com/wm/app/b2b/server/ServerAPI.html]http://documentation.softwareag.com/webmethods/wmsuites/wmsuite8-2_ga/Integration_Server/8-2-SP1_Integration_Server_Java_API_Reference/com/wm/app/b2b/server/ServerAPI.html[/url]
varun kumar
Hi IDN members,
I am looking for some code suggestions in the below issue.
Here I have coding to access the config folder which is under package.
String packageName = Service.getPackageName();
File packageConfigDir = ServerAPI.getPackageConfigDir(packageName);
String pkgLogFilename = "packageLogs/"+packageName+ ".log";
But i want to access the common config folder (IS/config). can anyone suggest the code to access the common config folder......
I am looking for quick responses.
Thanks,
Varunkumar
Pavan
Hi Varun,
There is no such service to access or get IS config folder, since you know the config folder path you can pass it as a static string.
File ISConfigDir = "D:\webMethods82\IntegrationServer\config"
You are using the below code for getting package configuration directory since the directory path changes for every package.
File packageConfigDir = ServerAPI.getPackageConfigDir(packageName);
Hope this helps you.
Robert Grant
Pavan is incorrect; just call [url=http://documentation.softwareag.com/webmethods/wmsuites/wmsuite8-2_ga/Integration_Server/8-2-SP1_Integration_Server_Java_API_Reference/com/wm/app/b2b/server/ServerAPI.html]http://documentation.softwareag.com/webmethods/wmsuites/wmsuite8-2_ga/Integration_Server/8-2-SP1_Integration_Server_Java_API_Reference/com/wm/app/b2b/server/ServerAPI.html[/url]
getServerConfigDir() ServerAPI.getServerConfigDir();
rambo
Robertlagrant is correct
Hi varun
may I know why do you want to access the below path
File ISConfigDir = "D:\webMethods82\IntegrationServer\config"
any particular reason?