Examples of PencasterMailCentre


Examples of org.jboss.as.demos.ejb3.mdb.PencasterMailCentre

public class ExercisePatClifton implements Callable<String> {
    @Override
    public String call() throws Exception {
        InitialContext ctx = new InitialContext();
        String name = "java:global/ejb3-mdb/PencasterMailCentre!" + PencasterMailCentre.class.getName();
        PencasterMailCentre bean = (PencasterMailCentre) ctx.lookup(name);
        bean.specialDelivery("Special Delivery");
        Thread.sleep(1000); // TODO
        return "done";
    }
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.