try {
InitialContext ic = new InitialContext();
ServerSettingsHome serverSettingsHome = (ServerSettingsHome)CVUtility.getHomeObject("com.centraview.administration.serversettings.ServerSettingsHome", "ServerSettings");
ServerSettings serverSettingsRemote = (ServerSettings)serverSettingsHome.create();
serverSettingsRemote.setDataSource(dataSource);
ServerSettingsVOX serverSettings = serverSettingsRemote.getServerSettings();
hostName = serverSettings.getHostName();
} catch (Exception e) {
logger.error("[getHostName] Exception thrown.", e);
}
return hostName;
} //end of getHostName method