All pastes #343677 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-07 05:54 UTC
rendered paste body
	public PersistantServiceImpl() {
		try {
			BeanFactory factory = new XmlBeanFactory(
					new ClassPathResource("mypackage/dao/beans.xml"));
			this.articlesdao = (ArticlesDAO) factory.getBean("articlesDAO");
		} catch (Exception e) {
			System.out.println(e.toString());
			System.exit(0);
		}
	}