I'm very new with EJB and I'm trying to move all my DAO classes to be stateless beans. Simple session bean facades to Entity Class is easy to do. But, I've classes to search these Entity Classes.
Currently I've an Abstract Factory to get the actual class that do the search. Take a look at the image Current_Factory.jpg
PesquisaFactory is the Abstract Factory that returns an implementation of Pesquisa based in a string passed as parameter to the method getPesquisaConcreta().
The concrete classes of Pesquisa access the DAO classes to do the job (to search something).
Today I've an Session Bean Facade for each DAO.
My doubt is which these classes will be EJB? How to implement the Abstract Factory?