I am using Spring to expose a several services that are being accesed by a rich client via HTTP. I have defined a messageSource bean in my application context, but I am unclear as to how my services should access this. My service implementors, being plane POJOs do not know about the ApplicationContext and therefore cannot call getMessage(..) on the app context. Should I just inject the message source into my service beans so that they can do resource lookup or is there a better best practice? Thanks!
Edward


Reply With Quote