Subversion Repositories SmartDukaan

Rev

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

Rev 4619 Rev 4644
Line 39... Line 39...
39
			}
39
			}
40
 
40
 
41
			// Setting dbHost env property to make this value accessible in context.xml 
41
			// Setting dbHost env property to make this value accessible in context.xml 
42
			// while spring context creation.
42
			// while spring context creation.
43
			System.setProperty("dbHost", dbHost);
43
			System.setProperty("dbHost", dbHost);
-
 
44
			
-
 
45
			
44
	        handler = new PaymentServiceHandler();
46
	        handler = new PaymentServiceHandler();
45
	        processor = new Processor<Iface>(handler);
47
	        processor = new Processor<Iface>(handler);
46
 
48
 
-
 
49
	        //TODO Remove these three lines
-
 
50
	        logger.info("DB Connection String is: " + dbHost);
-
 
51
	        org.apache.commons.dbcp.BasicDataSource ds = (org.apache.commons.dbcp.BasicDataSource)handler.context.getBean("dataSource");
-
 
52
	        logger.info("URL read by data source is: " + ds.getUrl());
-
 
53
	        
47
			TServerTransport serverTransport = new TServerSocket(port);
54
			TServerTransport serverTransport = new TServerSocket(port);
48
			TTransportFactory tFactory = new TFramedTransport.Factory();
55
			TTransportFactory tFactory = new TFramedTransport.Factory();
49
			TProtocolFactory pFactory = new TBinaryProtocol.Factory();
56
			TProtocolFactory pFactory = new TBinaryProtocol.Factory();
50
			
57
			
51
			Args serverParams = new Args(serverTransport);
58
			Args serverParams = new Args(serverTransport);