/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package lk.megafundtpark.web.elockers;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import lk.megafundtpark.remote.exceptions.RemoteException;
import lk.megafundtpark.remote.interfaces.EbandsFacadeRemote;
import lk.megafundtpark.remote.interfaces.ElockersFacadeRemote;
import lk.megafundtpark.remote.interfaces.PayeditemsFacadeRemote;

/**
 *
 * @author Janakshi
 */
public abstract class ElockerInteractionServlet extends HttpServlet {
    
    public static final String SESSION_PARAM_ADMIN= "locker";
    
    protected static ElockersFacadeRemote remotelocker;
    protected static EbandsFacadeRemote remoteband;
    protected static PayeditemsFacadeRemote remoteitem;
   
    

    @Override
    public void init() throws ServletException {
        try {
            Context context = new InitialContext();
            remotelocker = (ElockersFacadeRemote) context.lookup("elockersfacade");
            remoteband = (EbandsFacadeRemote)context.lookup("ebandsfacade");
            remoteitem = (PayeditemsFacadeRemote)context.lookup("payeditemsfacade");
        } catch (Exception e) {
            System.err.println("Error in initializing the ElockerInteractionServlet");
            e.printStackTrace();
            throw new RemoteException("ElockerInteractionServlet");   
        }
    }

    

   

}

@@ -626,16 +626,90 @@
 Remote;%0D
+%0Aimport lk.megafundtpark.remote.interfaces.LockerReservationFacadeRemote;%0D
 %0A%0D%0A/**%0D%0A
@@ -1051,16 +1051,87 @@
 eitem;%0D%0A
+    protected static LockerReservationFacadeRemote remotereservation;%0D%0A
    %0D%0A   
@@ -1423,32 +1423,32 @@
 bandsfacade%22);%0D%0A
-
             remo
@@ -1509,32 +1509,140 @@
 itemsfacade%22);%0D%0A
+            remotereservation = (LockerReservationFacadeRemote) context.lookup(%22lockerreservationfacade%22);%0D%0A
         %7D catch 

Update ElockerInteractionServlet.java