1 of 1 people found this helpful
UI components should not be bound to EJB beans, use JSF managed beans or another WAR-scoped beans for that.
Thanks for your answer. So in my EJB project I only have classes which are annotated by @Entity?
How can I exchange data between de EJB and WAR project? Because if I annotate the classes in my WAR with @Name I get errors he can't find the classes. So I can't inject data between the 2 projects. I know that if you want your classes to be Seam components you will need to have the seam.properties in the project. It's now only in the EJB project, should that also be in the WAR project? If so why doesn't JBoss Tools creates this when you create a new project? I use Seam in combination with RichFaces.
Yes, put seam.properties into WAR module and bind components there. Inject beans from EJB module into WAR beans or use lookup via Components class.