getInitialContext().lookup(TellerHome.JNDI_NAME),
TellerHome.class);
Teller teller = home.create();
getLog().debug("Acquire customers");
Customer marc = teller.getCustomer("Marc");
getLog().debug("Marc acquired");
Customer rickard = teller.getCustomer("Rickard");
getLog().debug("Rickard acquired");
getLog().debug("Acquire accounts");
Account from = teller.getAccount(marc, 50*getIterationCount());
Account to = teller.getAccount(rickard, 0);
getLog().info("Do read calls");
long start = System.currentTimeMillis();
for (int i = 0; i < getIterationCount(); i++)
{
marc.getName();
from.getBalance();
rickard.getName();
to.getBalance();
}
long end = System.currentTimeMillis();
getLog().info("Calls done");