Package com.ibm.demo.session.stateless

Examples of com.ibm.demo.session.stateless.LoanManagerHomeRemote


    try{
      this.ctx = getServletContext();
     
      Context jndiContext = new InitialContext();  
      Object ref = jndiContext.lookup("java:/comp/env/ejb/LoanManagerHomeRemote");  
      LoanManagerHomeRemote home = (LoanManagerHomeRemote)
                      PortableRemoteObject.narrow(ref, LoanManagerHomeRemote.class);

      loanmanager = home.create();
     
    } catch(CreateException ce){
      ce.printStackTrace();
    } catch(RemoteException re){
      re.printStackTrace();
View Full Code Here


  public static void main(String[] args) {
   
    try{
      Context jndiContext = new InitialContext();  
      Object ref = jndiContext.lookup("LoanManagerHomeRemote");  
      LoanManagerHomeRemote home = (LoanManagerHomeRemote)
                      PortableRemoteObject.narrow(ref, LoanManagerHomeRemote.class);

      LoanManagerRemote loanmanager = home.create();
   
      // Get a list of all denied loans
      List deniedLoans = loanmanager.deniedLoans();
     
        if(deniedLoans!=null){
View Full Code Here

TOP

Related Classes of com.ibm.demo.session.stateless.LoanManagerHomeRemote

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.