Package org.apache.geronimo.test.singleton.ejb

Examples of org.apache.geronimo.test.singleton.ejb.SingletonRemote


        p.put("java.naming.provider.url",
              "127.0.0.1:4201");  
       
        InitialContext ctx = new InitialContext(p);
       
  SingletonRemote bean = (SingletonRemote)ctx.lookup("/SingletonBeanRemote");
 
  String response = bean.sayHi("foo bar");

  System.out.println(response);

  assertEquals("Singleton Hello foo bar", response);
    }
View Full Code Here


        p.put("java.naming.provider.url",
              "127.0.0.1:4201");  
       
        InitialContext ctx = new InitialContext(p);
       
  SingletonRemote bean = (SingletonRemote)ctx.lookup("/SingletonBeanRemote");
 
  boolean startupInvoked = bean.isStartupInvoked();

  System.out.println("Singleton Startup Invoked: " + startupInvoked);

  assertTrue(startupInvoked);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.test.singleton.ejb.SingletonRemote

Copyright © 2018 www.massapicom. 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.