Package com.test.server.business

Examples of com.test.server.business.StatelessServerBeanInterface


public class EJBApplicationTestClient {
  
    public static void main(String[] args) {
      System.out.println(EJBApplicationTestClient.class.getName() + ".main - START");
        StatelessServerBeanInterface bean = doLookup();
        System.out.println(EJBApplicationTestClient.class.getName() + ".main - DEBUG - Call server business logic method: " + bean.executeTestMethod());
    }
View Full Code Here


    }
    public static StatelessServerBeanInterface doLookup() {
      System.out.println(EJBApplicationTestClient.class.getName() + ".doLookup - START");
        Context context = null;
        StatelessServerBeanInterface bean = null;
        try {
          System.out.println(EJBApplicationTestClient.class.getName() + ".doLookup - DEBUG - Obtaining Context");
            context = ContextProvider.getInitialContext();
            System.out.println(EJBApplicationTestClient.class.getName() + ".doLookup - DEBUG - Generate JNDI Lookup name");
            String lookupName = getLookupName();
View Full Code Here

  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {   
    System.out.println(TestServlet.class.getName() + ".main - START");
    StatelessServerBeanInterface bean = EJBApplicationTestClient.doLookup();
    //Call server business logic method
    System.out.println(TestServlet.class.getName() + ".main - DEBUG - " + bean.executeTestMethod());    
  }
View Full Code Here

TOP

Related Classes of com.test.server.business.StatelessServerBeanInterface

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.