Subversion Repositories SmartDukaan

Rev

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

Rev 380 Rev 389
Line 20... Line 20...
20
		client = new Client(protocol);
20
		client = new Client(protocol);
21
		
21
		
22
	}
22
	}
23
	
23
	
24
	public CatalogServiceClient() throws Exception{
24
	public CatalogServiceClient() throws Exception{
25
		this(CatalogServiceClient.class.getSimpleName(), ConfigClientKeys.catalog_service_hostname.toString(), ConfigClientKeys.catalog_service_port.toString());
25
		this(CatalogServiceClient.class.getSimpleName(), ConfigClientKeys.catalog_service_server_host.toString(), ConfigClientKeys.catalog_service_server_port.toString());
-
 
26
		if(transport.isOpen()){
-
 
27
			Logger.log("Transport was already open", this);
-
 
28
		}
-
 
29
		try {
-
 
30
			transport.open();
-
 
31
			Logger.log("Transport opened", this);
-
 
32
		} catch (TTransportException e) {
-
 
33
			Logger.log("Encountered exception while open transport "+ e, this);
-
 
34
		}
26
	}
35
	}
27
	
36
	
28
	@PostConstruct
37
	@PostConstruct
29
	private void openTransport(){
38
	private void openTransport(){
30
		if(transport.isOpen()){
39
		if(transport.isOpen()){