Is the application layer (service applications) where I add @Dateful, @Stateless, @WebService, etc. in DDD? From the link below, this seems to be correct.
Second question: I created a repository class, should all method calls associated with the repository be wrapped in the application service? Or can I use repository classes directly in let say backing beans in JSF? When and what I insert into the application layer. I do not understand where EJB belong to this art.
Application Level: This layer coordinates application activity. It does not contain business logic. It does not support the state of business objects, but it can support the execution state of an application.
http://www.infoq.com/articles/ddd-in-practice
source share