Package org.apache.uima.ducc.common.authentication.BrokerCredentials

Examples of org.apache.uima.ducc.common.authentication.BrokerCredentials.Credentials


          if ( brokerCredentialsFile != null && brokerCredentialsFile.length() > 0 ) {
            String path ="";
            try {
                Utils.findDuccHome()// add DUCC_HOME to System.properties
                path = Utils.resolvePlaceholderIfExists(brokerCredentialsFile, System.getProperties());
                Credentials credentials = BrokerCredentials.get(path);
              if ( credentials.getUsername() != null && credentials.getPassword() != null ) {
              duccAMQComponent.setUserName(credentials.getUsername());
              duccAMQComponent.setPassword(credentials.getPassword());
               }  
            } catch(FileNotFoundException e) {
            System.out.println("DuccAdmin Failed - File Not Found:"+path+" Broker Credentials File:"+brokerCredentialsFile);
            System.exit(-1);
            }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.authentication.BrokerCredentials.Credentials

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.