May 3rd, 2008, 05:08 AM
iam using BeanFactory to et the beans y tranasations & aops are not working
ClassPathResource cpr=new ClassPathResource("<path>");
XmlBeanFactory xnb=new XmlBeanFactory(cpr);
every thing is working fine but transaction is not working not commirring the transaction when needed & not saving the record in database.
May 3rd, 2008, 11:27 PM
We will need a lot more information than this to help you solve your problem. What does your applicationContext.xml file look like? How are you using the retrieved beans? You're saying AOP isn't working, are you using compile-time or load-time weaving? Are you getting any error messages?
May 4th, 2008, 03:06 PM
As it was stated a lot of information needed for definitive answer is missing, but...
I'm pretty sure that your problem is that you use plain BeanFactory and not ApplicationContext. BeanFactory lacks a lot of automation and should not be used unless you have a really good reasons to use it (and such reasons are rare). ApplicationContext should be used in the most cases.
Originally Posted by khamuruddeen