It's always OK to do something if it makes your application work! ;-)
Matt
On Jan 9, 2008, at 8:44 AM, sudheerp wrote:
Hello Matt,
Yes.
I was able to solve the problem with the following piece of code
by moving
applicationContext-resources.xml to \web\WEB-INF\classes from \web
\WEB-INF.
Is it okay to do so?
String[] path = {
"classpath:META-INF/applicationContext-hibernate.xml",
"classpath:META-INF/applicationContext-service.xml",
"classpath:applicationContext-resources.xml"
};
ApplicationContext applicationContext = new
ClassPathXmlApplicationContext(path);
ConcernedPersonsManager concernedPersonsManager =
(ConcernedPersonsManager)
applicationContext.getBean("concernedPersonsManager");
Thank you.
Sudheer Palaparambil
Are you sure your bean is named "personsManager" and not
"personManager"?
Matt
--
View this message in context: http://www.nabble.com/How-to-get-a-
reference-to-a-manager-in-a-custom-validator-
tp14496212s2369p14714623.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]