Subversion Repositories SmartDukaan

Rev

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

Rev 10081 Rev 10082
Line 68... Line 68...
68
		} catch (TException e1) {
68
		} catch (TException e1) {
69
			catalogClient = new CatalogClient().getClient();
69
			catalogClient = new CatalogClient().getClient();
70
			flipkartItems = catalogClient.getAllFlipkartItems();
70
			flipkartItems = catalogClient.getAllFlipkartItems();
71
			e1.printStackTrace();
71
			e1.printStackTrace();
72
		}
72
		}
-
 
73
		boolean ex = true;
-
 
74
		while(ex){
73
		try {
75
			try {
74
			aliveItems = catalogClient.getAllAliveItems();
76
				aliveItems = catalogClient.getAllAliveItems();
-
 
77
				ex =false;
75
		} catch (TException e1) {
78
			} catch (TException e1) {
76
			catalogClient = new CatalogClient().getClient();
79
				catalogClient = new CatalogClient().getClient();
77
			aliveItems = catalogClient.getAllAliveItems();
80
				aliveItems = catalogClient.getAllAliveItems();
78
			e1.printStackTrace();
81
				e1.printStackTrace();
-
 
82
			}
79
		}
83
		}
80
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
84
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
81
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
85
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
82
		for(Item item:aliveItems){
86
		for(Item item:aliveItems){
83
			aliveItemsMap.put(item.getId(),item);
87
			aliveItemsMap.put(item.getId(),item);