public class ConfigurationReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getJndiNameForStationNumber(String stationNumber)
Scan config file, find entry that uniquely corresponds to a given primaryStation.
|
static String |
getJndiNameForStationNumber(String stationNumber,
ConnectorConfigurator cc)
'internal' call allowing ConnectorConfigurator to be passed in externally; mainly used for unit testing.
|
static void |
loadConfigForMcf(VistaLinkManagedConnectionFactory mcf,
ConnectorConfigurator cc)
Parse config file, find matching entry for the MCF, and set its properties from the configuration.
|
public static String getJndiNameForStationNumber(String stationNumber) throws Exception
stationNumber - station# (including suffix if looking for connector for station# w/suffix)Exception - thrown if problem parsing config file, or if multiple matches found.public static String getJndiNameForStationNumber(String stationNumber, ConnectorConfigurator cc) throws Exception
stationNumber - cc - Exception - thrown if multiple matches found, or if a problem reading the config file.public static void loadConfigForMcf(VistaLinkManagedConnectionFactory mcf, ConnectorConfigurator cc) throws VistaLinkResourceException
mcf - ManagedConnectionFactory to retrieve/set properties forcc - pre-configured ConnectorConfiguratorResourceExceptionVistaLinkResourceExceptionCopyright © 2026. All rights reserved.