Topic:   How to access the common webMethods IS config folder......
May 06, 2013 11:08 4 Replies 5500 Views varun kumar
Prev Next
Topic Replies (4)
  1. 1
    idnkx user

    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

    1
    idnkx user

    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.

    1
    idnkx user

    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();

    1
    idnkx user

    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?

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect