Package cli_fmw.ContextParamsHolder

Examples of cli_fmw.ContextParamsHolder.ContextParams


                loginBean.getEncryptor().encryptPasswd(aPassword));
        return loginBean.getSessionRemote(sessId);
    }

    protected static LoginRemoteAbstarct getLoginBean() throws NamingException {
        ContextParams contextParams = ContextParamsHolder.getContextParams();
        InitialContext ic = null;
        if (contextParams != null){
            ic = new InitialContext(contextParams.getParams());
        }else{
            ic = new InitialContext();
        }
        return (LoginRemoteAbstarct) ic.lookup("clips-beans/" + "LoginBean");
    }
View Full Code Here


public class Delegate {

    private  static Context c;
   
    protected static Object lookupBean(String title) throws ClipsException {
        ContextParams contextParams = ContextParamsHolder.getContextParams();
        String prefix = "clips-beans/";
        try {
            return getContext(contextParams).lookup(prefix + title);
        } catch(NamingException ne) {
            throw new ClipsException("Не удалось получить сервис "+ prefix + title + ". Информация: ", ne);
View Full Code Here

TOP

Related Classes of cli_fmw.ContextParamsHolder.ContextParams

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.