Package org.jboss.as.demos.jpa.archive

Examples of org.jboss.as.demos.jpa.archive.SimpleStatefulSessionLocal.echo()


    public String call() throws Exception {
        InitialContext ctx = new InitialContext();
        String name = "java:global/jpa-example/SimpleStatefulSessionBean!" + SimpleStatefulSessionLocal.class.getName();
        SimpleStatefulSessionLocal bean = (SimpleStatefulSessionLocal) ctx.lookup(name);
        bean.setState("42");
        return bean.echo("the answer");
    }
}
View Full Code Here


        String name = "java:global/jpa-example/SimpleStatefulSessionBean!" + SimpleStatefulSessionLocal.class.getName();
        SimpleStatefulSessionLocal bean = (SimpleStatefulSessionLocal) ctx.lookup(name);
        bean.setState("42");

        return "Invoke echo under transaction "+
            bean.echo("answer is")
            //+
            //".  Invoke echoNoTx without a transaction " +
            //bean.echoNoTx("demo")
            ;
        // TODO:  uncomment call to echoNoTx when exception doesn't cause system failure (at least that is how it looks now).
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.