Package enterprise.web.tookit.account

Examples of enterprise.web.tookit.account.Account


      InitialContext context = new InitialContext();
      Object ref = context.lookup("CreateAccount");

      createAccount = (CreateAccountEJBRemote) ref;

      Account account = new Account();
      account.setUsername("Regis Rocha");
      account.setPassword("webToolkit");

      System.out.println(createAccount.login(account));
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here


      InitialContext context = new InitialContext();
      Object ref = context.lookup("CreateAccount");

      createAccount = (CreateAccountEJBRemote) ref;

      Account account = new Account();
      account.setUsername("Regis Rocha");
      account.setFirstname("Regis");
      Calendar date = new GregorianCalendar();
      date.set(1989, 00, 03);
      account.setBirthday(date);
      account.setEmail("RegisRocha3@gmail.com");
      account.setGender("M");
      account.setLastname("Rocha");
      account.setMobilephone("982895805");
      account.setPassword("webtoolkit");

      createAccount.createAccout(account);
    } catch (NamingException e) {
      e.printStackTrace();
    } catch (AccountException e) {
View Full Code Here

      InitialContext context = new InitialContext();
      Object ref = context.lookup("CreateAccount");

      createAccount = (CreateAccountEJBRemote) ref;

      Account accountToSearch = new Account();
      accountToSearch.setUsername("Regis Rocha");
      accountToSearch.setPassword("webtoolkit");
      Calendar birthday = Calendar.getInstance();
      birthday.set(1989, 00, 03);

      final Account accountPersisted = createAccount.login(accountToSearch);
      accountPersisted.setBirthday(birthday);

      createAccount.updateAccount(accountPersisted);
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of enterprise.web.tookit.account.Account

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.