public String loggedHello(String name)
{
long begin = System.currentTimeMillis();
LocalHelloLog bean = null;
LocalHelloLogHome home = null;
try
{
InitialContext ctx = new InitialContext();
home = (LocalHelloLogHome) ctx.lookup("java:comp/env/ejb/LocalHelloLogHome");
bean = home.create(name);
log.info("Created LocalHelloLog with key="+name);
if( bean != null )
bean.setStartTime(begin);
}
catch(DuplicateKeyException e)
{
try
{
bean = home.findByPrimaryKey(name);
log.info("Found LocalHelloLog with key="+name);
if( bean != null )
bean.setStartTime(begin);
}
catch(FinderException fe)