Package org.apache.geronimo.test.remote

Examples of org.apache.geronimo.test.remote.TestHome.create()


    try
    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();
View Full Code Here


    try
    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();
View Full Code Here

    try
    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();
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.