Package jifx.commons.mapper.ejb

Examples of jifx.commons.mapper.ejb.IClient


       
        Hashtable<String, String> env = new Hashtable<String, String>();
        env.put("java.naming.factory.initial", "org.jboss.naming.NamingContextFactory");
        env.put("java.naming.provider.url", jndi);
        InitialContext context = new InitialContext(env);
        IClient remote = (IClient) context.lookup("ClientImp/remote");

        IMessage message = ctx.getOriginalMessage();
       
        String login = (String) message.getElement("SignonRq.SignonPswd.CustId.SPName");
        String type = (String) message.getElement("SignonRq.SignonPswd.CustPswd.CryptType");
        String pwd = (String) message.getElement("SignonRq.SignonPswd.CustPswd.Pswd");

        Client clientReg = remote.getClient(brand, login);
        Client clientRq = new Client(brand, login, type, pwd);
        if (clientReg != null && ValidationManager.validate(clientReg, clientRq))
          return;
        throw new ValidationException(clientReg, clientRq);
    } catch (NamingException e) {
View Full Code Here

TOP

Related Classes of jifx.commons.mapper.ejb.IClient

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.