Package org.jboss.as.quickstarts.ejb.multi.server.app

Examples of org.jboss.as.quickstarts.ejb.multi.server.app.MainApp.invokeAll()


        InitialContext context = new InitialContext(props);

        final boolean useScopedExample = Boolean.getBoolean("UseScopedContext");
        final String rcal = "ejb:jboss-ejb-multi-server-app-main/ejb//" + (useScopedExample ? "MainAppSContextBean" : "MainAppBean") + "!" + MainApp.class.getName();
        final MainApp remote = (MainApp) context.lookup(rcal);
        final String result = remote.invokeAll("Client call at "+new Date());

        System.out.println("InvokeAll succeed: "+result);
    }

}
View Full Code Here


        InitialContext context = new InitialContext(props);

        final boolean useScopedExample = Boolean.getBoolean("UseScopedContext");
        final String rcal = "ejb:jboss-ejb-multi-server-app-main/ejb//" + (useScopedExample ? "MainAppSContextBean" : "MainAppBean") + "!" + MainApp.class.getName();
        final MainApp remote = (MainApp) context.lookup(rcal);
        final String result = remote.invokeAll("Client call at "+new Date());

        System.out.println("InvokeAll succeed: "+result);
    }

}
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.