Package org.jboss.tutorial.stateless.bean

Examples of org.jboss.tutorial.stateless.bean.HelloWorld.sayHello()


     String contents = new String((String)msgBody.get());
     try {
         InitialContext ctx = new InitialContext();
              
         HelloWorld client = (HelloWorld) ctx.lookup("HelloWorldBean/remote");
         results = client.sayHello(contents);
         System.out.println("Invoked EJB3: " + results);
     } catch (Exception e) {
     e.printStackTrace();
         System.out.println(e);
     }
View Full Code Here


        System.exit(1);       
      }

      if (hw != null)
      {
        System.out.println("[Client] " + hw.sayHello("JBoss"));       
      }
   }
}
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.