Subversion Repositories SmartDukaan

Rev

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

Rev 11542 Rev 11543
Line 62... Line 62...
62
        super();
62
        super();
63
        userClient = new UserClient().getClient();
63
        userClient = new UserClient().getClient();
64
    }
64
    }
65
    
65
    
66
    public UserContextService.Client getClient() throws Exception{
66
    public UserContextService.Client getClient() throws Exception{
67
    	try {
-
 
68
    		userClient.isAlive();
67
    	if(!userClient.getOutputProtocol().getTransport().isOpen()) {
69
    	}catch (Exception e) {
68
    		log.info("Client has been closed. Reinitializing it" );
70
    		userClient = new UserClient().getClient();
69
    		userClient = new UserClient().getClient();
71
    	}
70
    	}
72
    	return userClient;
71
    	return userClient;
73
    }
72
    }
74
    public String index() {
73
    public String index() {