Commit df0b907e authored by rzore's avatar rzore

changes made for lookup related changes

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194813 ce508802-f39f-4f6c-b175-0d175dae99d5
parent afa43bde
package ibase.dashboard.calendar.servlet;
import ibase.dashboard.calendar.ejb.CalendarDBRRemote;
import ibase.dashboard.ssc.ejb.AcctPayableRemote;
//import ibase.dashboard.ssc.ejb.AcctPayableRemote;
import ibase.system.config.AppConnectParm;
import java.io.IOException;
......
package ibase.dashboard.calendar.servlet;
import ibase.dashboard.calendar.ejb.CalendarDBR;
import ibase.dashboard.calendar.ejb.CalendarDBRRemote;
import ibase.system.config.AppConnectParm;
......@@ -30,7 +31,8 @@ public class CalendarDBRServlet extends HttpServlet
try
{
System.out.println("**************** inside CalendarDBR servlet ***********");
CalendarDBRRemote calendarDBRRemote = null;
//CalendarDBRRemote calendarDBRRemote = null;
CalendarDBR calendarDBRRemote = null;
InitialContext context = null;
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
......@@ -47,8 +49,10 @@ public class CalendarDBRServlet extends HttpServlet
period = request.getParameter("PERIOD");
loginCode = userInfo.getLoginCode();
context = new InitialContext(appConnectParm.getProperty());
calendarDBRRemote = (CalendarDBRRemote) context.lookup("ibase/CalendarDBR/remote");
// commentted and added by rupali on 17/12/18 for removing lookup
//context = new InitialContext(appConnectParm.getProperty());
//calendarDBRRemote = (CalendarDBRRemote) context.lookup("ibase/CalendarDBR/remote");
calendarDBRRemote = new CalendarDBR();
calendarDBRRemote.setUserInfo(userInfo);
//JSONObject jsonObjData = (JSONObject) calendarDBRRemote.getPlacesVisitedCount( dataSourceName, period, loginCode );
//JSONObject jsonObjData = (JSONObject) calendarDBRRemote.getStationCount( period, loginCode );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment