*/
public static void main(final String[] args) throws Exception {
// Lookup the Remote Bean interface through JNDI
Context initialContext = getInitialContext();
BusinessInterface facadeBean = (BusinessInterface) initialContext.lookup("JPA2Bean");
// Init (if not done)
System.out.println("Initializing the database with some employees...");
facadeBean.init();
// Search Florent Employee
System.out.println("Finding data about Florent...");
Employee florent = facadeBean.findEmployeeWithItsGivenName("Florent");
printEmployee(florent);
System.out.println("Listing all employees...");
for (Employee employee : facadeBean.findEmployees()) {
printEmployee(employee);
}
}