Subversion Repositories SmartDukaan

Rev

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

Rev 22173 Rev 22355
Line 90... Line 90...
90
	public HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {
90
	public HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {
91
		HibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);
91
		HibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);
92
		return transactionManager;
92
		return transactionManager;
93
	}
93
	}
94
	
94
	
95
	@Autowired
-
 
96
	@Bean
95
	@Bean
97
	public Mongo mongoClient(SessionFactory sessionFactory) {
96
	public Mongo mongoClient() {
98
		Properties properties = new Properties();
97
		Properties properties = new Properties();
99
		try {
98
		try {
100
			properties.load(resource.getInputStream());
99
			properties.load(resource.getInputStream());
101
		} catch (IOException e) {
100
		} catch (IOException e) {
102
			e.printStackTrace();
101
			e.printStackTrace();