Java Reference
In-Depth Information
else if (command.equals("quit")) { [7]
logger.info("Bye");
break;
}
else {
logger.info("Unknown command "+command);
}
}
}
private static TheatreInfo
lookupTheatreInfoEJB() throws NamingException {
final Context context = new
InitialContext(jndiProperties);
return (TheatreInfo) context.lookup("ejb:/
ticket-agency-ejb//TheatreInfoBean!com.packtpub.as7development.chapter3.ejb.TheatreInfo");
}
private static TheatreBooker
lookupTheatreBookerEJB() throws
NamingException {
final Context context = new
InitialContext(jndiProperties);
return (TheatreBooker) context.lookup("ejb:/
ticket-agency-ejb/
TheatreBookerBean!com.packtpub.as7development.chapter3.ejb.TheatreBooker?stateful");
}
}
Let's see the most interesting points. At first, we set some logging rules [1] in order
to avoid mixing the JBoss remoting log messages with the console application in-
formation.
Search WWH ::




Custom Search