title: What use are EJBs
body: <p>I'm currently learning Jave-EE, having plenty of C++ experience and having learned Java SE. I don't understand the purpose of Enterprise Java Beans; can someone clarify this for me. I'm not interested in <em>legacy</em> uses: this is in the context of EJB-3.1 and Java-EE 6.</p>
  
  <p>It seems that some people use them to contain the business logic, for implementing the business layer of the conventional 3-layer architecture. That separates the domain logic from the domain objects, leading to an <a href="http://en.wikipedia.org/wiki/Anemic_Domain_Model">anemic domain model</a>. But that goes against all my OOD instincts; I agree with Martin Fowler that <a href="http://www.martinfowler.com/bliki/AnemicDomainModel.html">it is an anti-pattern</a>. Should I relax my objections to an anemic domain model? Or do EJBs have other uses?</p>