Open topic with navigation

TIBCO GridServer® 7.1.0

# Setting Driver Properties

COMDriver obtains its configuration from a file called `driver.properties`. It is possible to override the values in `driver.properties` programmatically, using the `DriverManager` class. This ability is most commonly used to set a user name and password for authentication to the Grid. Setting these values in the code allows different users to reference the same `driver.properties` file, and avoids having a cleartext password in the file. To set the user name and password in your code, place the following lines before any other use of COMDriver. This code assumes that `user` and `password` are variables that have been set to the desired user name and password.

    Dim dm As New DSCOMDRIVERLib.DriverManager
    dm.setProperty DSUSERNAME, user
    dm.setProperty DSPASSWORD, password

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.