Subversion Repositories SmartDukaan

Rev

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

Rev 4644 Rev 4646
Line 44... Line 44...
44
			
44
			
45
			
45
			
46
	        handler = new PaymentServiceHandler();
46
	        handler = new PaymentServiceHandler();
47
	        processor = new Processor<Iface>(handler);
47
	        processor = new Processor<Iface>(handler);
48
 
48
 
49
	        //TODO Remove these three lines
-
 
50
	        logger.info("DB Connection String is: " + dbHost);
49
	        logger.info("DB Connection String is: " + dbHost);
51
	        org.apache.commons.dbcp.BasicDataSource ds = (org.apache.commons.dbcp.BasicDataSource)handler.context.getBean("dataSource");
50
	        org.apache.commons.dbcp.BasicDataSource ds = (org.apache.commons.dbcp.BasicDataSource)handler.context.getBean("dataSource");
-
 
51
	        logger.info("URL read by data source before setting is: " + ds.getUrl());
-
 
52
	        ds.setUrl(dbHost);
52
	        logger.info("URL read by data source is: " + ds.getUrl());
53
	        logger.info("URL read by data source after setting is: " + ds.getUrl());
53
	        
54
	        
54
			TServerTransport serverTransport = new TServerSocket(port);
55
			TServerTransport serverTransport = new TServerSocket(port);
55
			TTransportFactory tFactory = new TFramedTransport.Factory();
56
			TTransportFactory tFactory = new TFramedTransport.Factory();
56
			TProtocolFactory pFactory = new TBinaryProtocol.Factory();
57
			TProtocolFactory pFactory = new TBinaryProtocol.Factory();
57
			
58