Subversion Repositories SmartDukaan

Rev

Rev 10396 | Rev 10408 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10396 Rev 10398
Line 84... Line 84...
84
		mailer = new GmailUtils();
84
		mailer = new GmailUtils();
85
		sendTo = new String[]{"vikram.raghav@shop2020.in"};
85
		sendTo = new String[]{"vikram.raghav@shop2020.in"};
86
		/*sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
86
		/*sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
87
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
87
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
88
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
88
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
-
 
89
				*/
89
		 */itemIdpendingOrdersMap = new HashMap<Long,Long>();
90
		 itemIdpendingOrdersMap = new HashMap<Long,Long>();
90
		 CatalogClient catalogServiceClient = null;
91
		 CatalogClient catalogServiceClient = null;
91
		 try {
92
		 try {
92
			 catalogServiceClient = new CatalogClient();
93
			 catalogServiceClient = new CatalogClient();
93
		 } catch (TTransportException e1) {
94
		 } catch (TTransportException e1) {
94
			 e1.printStackTrace();
95
			 e1.printStackTrace();
Line 1089... Line 1090...
1089
				mailer.sendSSLMessage(sendTo,"No changes in Snapdeal inventory to update "+ sdf.format(System.currentTimeMillis()),"No change in Snapdeal Inventory to be updated ", emailFromAddress, password, new ArrayList<File>());
1090
				mailer.sendSSLMessage(sendTo,"No changes in Snapdeal inventory to update "+ sdf.format(System.currentTimeMillis()),"No change in Snapdeal Inventory to be updated ", emailFromAddress, password, new ArrayList<File>());
1090
			} catch (Exception e) {
1091
			} catch (Exception e) {
1091
				e.printStackTrace();
1092
				e.printStackTrace();
1092
			}
1093
			}
1093
			try {
1094
			try {
-
 
1095
				System.out.println("++++++++++++++++++++++++++++++");
-
 
1096
				System.out.println("Thread Sleeping for 30 minutes");
-
 
1097
				System.out.println("++++++++++++++++++++++++++++++");
1094
				Thread.sleep(30*60*1000);
1098
				Thread.sleep(30*60*1000);
1095
			} catch (InterruptedException e) {
1099
			} catch (InterruptedException e) {
1096
				e.printStackTrace();
1100
				e.printStackTrace();
1097
			}
1101
			}
1098
		}
1102
		}