Subversion Repositories SmartDukaan

Rev

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

Rev 3121 Rev 3126
Line 7... Line 7...
7
import in.shop2020.model.v1.user.ShoppingCartException;
7
import in.shop2020.model.v1.user.ShoppingCartException;
8
import in.shop2020.model.v1.user.UserAffiliateException;
8
import in.shop2020.model.v1.user.UserAffiliateException;
9
import in.shop2020.payments.PaymentException;
9
import in.shop2020.payments.PaymentException;
10
import in.shop2020.serving.interceptors.TrackingInterceptor;
10
import in.shop2020.serving.interceptors.TrackingInterceptor;
11
import in.shop2020.serving.utils.FormattingUtils;
11
import in.shop2020.serving.utils.FormattingUtils;
12
import in.shop2020.thrift.clients.PaymentServiceClient;
12
import in.shop2020.thrift.clients.PaymentClient;
13
import in.shop2020.thrift.clients.TransactionServiceClient;
13
import in.shop2020.thrift.clients.TransactionClient;
14
import in.shop2020.thrift.clients.UserContextServiceClient;
14
import in.shop2020.thrift.clients.UserClient;
15
import in.shop2020.utils.DataLogger;
15
import in.shop2020.utils.DataLogger;
16
 
16
 
17
import java.util.Date;
17
import java.util.Date;
18
import java.util.List;
18
import java.util.List;
19
 
19
 
Line 43... Line 43...
43
		super();
43
		super();
44
	}
44
	}
45
	
45
	
46
	public String index() {
46
	public String index() {
47
		
47
		
48
		PaymentServiceClient paymentServiceClient = null;
48
		PaymentClient paymentServiceClient = null;
49
		TransactionServiceClient transactionServiceClient = null;
49
		TransactionClient transactionServiceClient = null;
50
		UserContextServiceClient userServiceClient = null;
50
		UserClient userServiceClient = null;
51
	
51
	
52
		try {
52
		try {
53
			paymentServiceClient = new PaymentServiceClient();
53
			paymentServiceClient = new PaymentClient();
54
			transactionServiceClient = new TransactionServiceClient();
54
			transactionServiceClient = new TransactionClient();
55
			userServiceClient = new UserContextServiceClient();
55
			userServiceClient = new UserClient();
56
		} catch (Exception e1) {
56
		} catch (Exception e1) {
57
			// TODO Nothing to worry
57
			// TODO Nothing to worry
58
			log.error("Unable to initialize the client for either payment or transaction or user service", e1);
58
			log.error("Unable to initialize the client for either payment or transaction or user service", e1);
59
		}
59
		}
60
		
60