I have a very basic question.
My solution will be having this layered architecture(following JEE5)
JSP->Controller->Business Delegate->Session Bean->DAO->entity
I am using
JSF at the web tier. Session Beans means stateless and stateful session beans and they are following Service Facade design
pattern.
Seperate DAO layer as i didn't wanted to clutter Session Beans with entitymanager.
I am using Business Delegate for two reasons:
1) Exception handling and converting unchecked exceptions appropriately.
2) In case when the device is something else than thin client(web browser)
following Adam's blog and not using any retired patterns
Question
1) Can the Session Beans(Service Facade) be injected directly into Business Delegate? or do i have to have service locator pattern?
2) Is this okay or i am making some real blunder?