Package org.superbiz.load

Examples of org.superbiz.load.Load.sum()


                context1 = new InitialContext(p);
                loadRemote =(Load) context1.lookup("LoadBeanRemote");
                Assert.assertEquals(p.getProperty(Context.PROVIDER_URL),"multicast://239.255.3.2:6142?group=cluster1");
                Assert.assertNotNull(loadRemote.getNodeName());
                Assert.assertEquals(loadRemote.add(1, 2), 3);         
                Assert.assertEquals(loadRemote.sum(1,2,1), 4);
            } catch (NamingException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();            }
           
           
View Full Code Here


                Context context3 = new InitialContext(p);
                loadRemote =(Load) context3.lookup("LoadBeanRemote");
                Assert.assertEquals(p.getProperty(Context.PROVIDER_URL),"failover:ejbd://127.0.0.1:4202,ejbd://127.0.0.1:4211,multicast://239.255.3.2:6142");
                Assert.assertNotNull(loadRemote.getNodeName());               
                Assert.assertEquals(loadRemote.add(1, 2), 3);         
                Assert.assertEquals(loadRemote.sum(1,2,1), 4);
            } catch (NamingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
           
View Full Code Here

                Context context3 = new InitialContext(p);
                loadRemote =(Load) context3.lookup("LoadBeanRemote");
                Assert.assertEquals(p.getProperty(Context.PROVIDER_URL),"failover:ejbd://127.0.0.1:4202,ejbd://127.0.0.1:4211");
                Assert.assertNotNull(loadRemote.getNodeName());               
                Assert.assertEquals(loadRemote.add(1, 2), 3);
                Assert.assertEquals(loadRemote.sum(1,2,1), 4);
            } catch (NamingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
           
View Full Code Here

                Context context3 = new InitialContext(p);
                loadRemote =(Load) context3.lookup("LoadBeanRemote");
                Assert.assertEquals(p.getProperty(Context.PROVIDER_URL),"ejbd://127.0.0.1:4202");
                Assert.assertNotNull(loadRemote.getNodeName());               
                Assert.assertEquals(loadRemote.add(1, 2), 3);
                Assert.assertEquals(loadRemote.sum(1,2,1), 4);
            } catch (NamingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
           
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.