Subversion Repositories SmartDukaan

Rev

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

Rev 11593 Rev 11602
Line 59... Line 59...
59
    private int insuranceType;
59
    private int insuranceType;
60
    UserContextService.Client userClient;
60
    UserContextService.Client userClient;
61
    
61
    
62
    public CartController() throws Exception{
62
    public CartController() throws Exception{
63
        super();
63
        super();
64
        userClient = new UserClient().getClient();
-
 
65
    }
64
    }
66
    
65
    
67
    public UserContextService.Client getClient() throws Exception{
66
    public UserContextService.Client getClient() throws Exception{
68
    	if(!userClient.getOutputProtocol().getTransport().isOpen()) {
-
 
69
    		log.info("Client has been closed. Reinitializing it" );
-
 
70
    		userClient = new UserClient().getClient();
67
    	userClient = new UserClient().getClient();
71
    	}
-
 
72
    	return userClient;
68
    	return userClient;
73
    }	
69
    }	
74
    public String index() {
70
    public String index() {
75
        if(id != -1){
71
        if(id != -1){
76
            try {
72
            try {