Examples of BusinessInterface


Examples of org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface

     */
    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);
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.