Subversion Repositories SmartDukaan

Rev

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

Rev 22172 Rev 22178
Line 91... Line 91...
91
		HibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);
91
		HibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);
92
		return transactionManager;
92
		return transactionManager;
93
	}
93
	}
94
	
94
	
95
 
95
 
-
 
96
	@Autowired
96
	@Bean
97
	@Bean
97
    public Mongo mongoClient() {
98
	public Mongo mongoClient(SessionFactory sessionFactory) {
98
		Properties properties = new Properties();
99
		Properties properties = new Properties();
99
		try {
100
		try {
100
			properties.load(resource.getInputStream());
101
			properties.load(resource.getInputStream());
101
		} catch (IOException e) {
102
		} catch (IOException e) {
102
			e.printStackTrace();
103
			e.printStackTrace();
103
		}
104
		}
104
        return new Mongo(properties.getProperty("mongo.host"), properties.getProperty("mongo.content.host"));
105
		return new Mongo(properties.getProperty("mongo.host"), properties.getProperty("content.mongo.host"));
105
    }
106
	}
106
}
107
}