Subversion Repositories SmartDukaan

Rev

Rev 12459 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12459 Rev 12969
Line 393... Line 393...
393
						feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"FbaListingFeed",0,itemIdsToUpdate);
393
						feedProcessingResult = checkResult.getResult(feedSubmissionInfo.getFeedSubmissionId(),"FbaListingFeed",0,itemIdsToUpdate);
394
						if (feedProcessingResult == null){
394
						if (feedProcessingResult == null){
395
							checkResultCount++;
395
							checkResultCount++;
396
							if (checkResultCount == 5){
396
							if (checkResultCount == 5){
397
								String text = "";
397
								String text = "";
398
								String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
398
								String[] sendTo = { "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
399
								String emailSubjectTxt = "Unable To Receive FBA Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
399
								String emailSubjectTxt = "Unable To Receive FBA Listing Feed Result.Submission Id "+feedSubmissionInfo.getFeedSubmissionId();
400
								String emailFromAddress = "build@shop2020.in";
400
								String emailFromAddress = "build@shop2020.in";
401
								String password = "cafe@nes";
401
								String password = "cafe@nes";
402
								GmailUtils mailer = new GmailUtils();
402
								GmailUtils mailer = new GmailUtils();
403
								try {
403
								try {
Line 427... Line 427...
427
				}
427
				}
428
				String emailSubjectTxt="";
428
				String emailSubjectTxt="";
429
				String[] sendTo;
429
				String[] sendTo;
430
				if (Boolean.valueOf(feedProcessingResult.getResult())){
430
				if (Boolean.valueOf(feedProcessingResult.getResult())){
431
					emailSubjectTxt = "FBA Listing Feed Success "+sdf.format(cal.getTime());
431
					emailSubjectTxt = "FBA Listing Feed Success "+sdf.format(cal.getTime());
432
					sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
432
					sendTo = new String[]{  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
433
				}
433
				}
434
				else {
434
				else {
435
					emailSubjectTxt = "FBA Listing Feed Failure "+sdf.format(cal.getTime());
435
					emailSubjectTxt = "FBA Listing Feed Failure "+sdf.format(cal.getTime());
436
					sendTo = new String[]{ "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
436
					sendTo = new String[]{  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
437
				}
437
				}
438
				String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
438
				String text = "MessagesProcessed "+feedProcessingResult.getProcessed()+"\n"+"MessagesSuccessful "+feedProcessingResult.getSuccess()+"\n"+"" +
439
				"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn(); 
439
				"MessagesWithError "+feedProcessingResult.getError()+"\n"+"MessagesWithWarning "+feedProcessingResult.getWarn(); 
440
				String emailFromAddress = "build@shop2020.in";
440
				String emailFromAddress = "build@shop2020.in";
441
				String password = "cafe@nes";
441
				String password = "cafe@nes";
Line 459... Line 459...
459
 
459
 
460
				if (retryCount == 2) {
460
				if (retryCount == 2) {
461
					StringWriter errors = new StringWriter();
461
					StringWriter errors = new StringWriter();
462
					ex.printStackTrace(new PrintWriter(errors));
462
					ex.printStackTrace(new PrintWriter(errors));
463
					String text = errors.toString(); 
463
					String text = errors.toString(); 
464
					String[] sendTo = { "vikram.raghav@shop2020.in", "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
464
					String[] sendTo = {  "kshitij.sood@shop2020.in","chandan.kumar@shop2020.in"};
465
					String emailSubjectTxt = "Unable To Send FBA Listing Feed ";
465
					String emailSubjectTxt = "Unable To Send FBA Listing Feed ";
466
					String emailFromAddress = "build@shop2020.in";
466
					String emailFromAddress = "build@shop2020.in";
467
					String password = "cafe@nes";
467
					String password = "cafe@nes";
468
					GmailUtils mailer = new GmailUtils();
468
					GmailUtils mailer = new GmailUtils();
469
					try {
469
					try {