jaikiran pai wrote:
I re-read your thread again and no where did you mention that the .war and the ejb jar are separate deployments. Or did I miss it?
I guess that's what you meant by:
I have a EJB project, which contains my entities and connecting to the database via hibernate.
My second project is the dynamic web project containing the classes.
I didn't understand it to be 2 different deployments.
So in this case, you'll have to package the business interfaces (no need of the bean impl) of the beans in a jar in your .war/WEB-INF/lib folder.