Retrieving properties from the configuration file iw.cfg

Posted: 7 September 2009 in Architecture, CSSDK, Java, NotificationTask, Teamsite, Worfklow models, Workflows

Sometimes, you want to retreive some of the details stored in iw.cfg, such as the name of the teamsite host or the name if the smtp host for sending emails.

In order to read the properties file and retrieve what we’re after, there is a utility called com.interwoven.serverutils100.IWConfig that will do all that work for us. What we need to know is what section of the file insterests us and what setting in the section we want to retrieve.

String mailServer = IWConfig.getConfig().getString(“iwsend_mail”, “mailserver”);


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s