Examples of StatelessSessionHome


Examples of org.jboss.test.testbean.interfaces.StatelessSessionHome

         Context ctx = new InitialContext();
        
         StatefulSessionHome sfHome = (StatefulSessionHome)ctx.lookup("java:comp/env/ejb/stateful");
         statefulSession = sfHome.create();
        
         StatelessSessionHome slHome = (StatelessSessionHome)ctx.lookup("java:comp/env/ejb/stateless");
         statelessSession = slHome.create();
        
         EnterpriseEntityHome eeHome = (EnterpriseEntityHome)ctx.lookup("java:comp/env/ejb/entity");
         try {
            enterpriseEntity = eeHome.findByPrimaryKey(aString);
         } catch (FinderException e) {
View Full Code Here

Examples of org.jboss.test.testbean.interfaces.StatelessSessionHome

            p.put(Context.PROVIDER_URL, "10.10.10.13:1100,10.10.10.14:1100");
            // p.put(Context.PROVIDER_URL, "localhost:1100");
            p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
            InitialContext ctx = new InitialContext(p);
           
            StatelessSessionHome  statelessSessionHome =  (StatelessSessionHome) ctx.lookup("nextgen.StatelessSession");
            EnterpriseEntityHome  cmpHome =  (EnterpriseEntityHome)ctx.lookup("nextgen.EnterpriseEntity");
            StatelessSession statelessSession = statelessSessionHome.create();
            EnterpriseEntity cmp = null;
            try
            {
               cmp = cmpHome.findByPrimaryKey("bill");
            }
View Full Code Here

Examples of org.jboss.test.web.interfaces.StatelessSessionHome

        long[] notOptimized = null;
        try
        {
            InitialContext ctx = new InitialContext();
            Context enc = (Context) ctx.lookup("java:comp/env");
            StatelessSessionHome home = (StatelessSessionHome) enc.lookup("ejb/OptimizedEJB");
            StatelessSession bean = home.create();
            optimized = runRemoteTest(bean, true);

            home = (StatelessSessionHome) enc.lookup("ejb/NotOptimizedEJB");
            bean = home.create();
            notOptimized = runRemoteTest(bean, false);
        }
        catch(Exception e)
        {
            throw new ServletException("Failed to run speed tests", e);
View Full Code Here

Examples of org.jboss.test.web.interfaces.StatelessSessionHome

        String echoMsg = null;
        try
        {
            lc = doLogin("jduke", "theduke");
            InitialContext ctx = new InitialContext();
            StatelessSessionHome home = (StatelessSessionHome) ctx.lookup("java:comp/env/ejb/SecuredEJB");
            StatelessSession bean = home.create();
            echoMsg = bean.echo("ClientLoginServlet called SecuredEJB.echo");
        }
        catch(LoginException e)
        {
            throw new ServletException("Failed to login to client-login domain as jduke", e);
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.