I want to create a project in Eclipse which uses Session and Entity beans (EJB3) using Glassfish v3 prelude. However, I can't seem to find a way of fusing the two - there seems to be no way of adding a JPA facet to an EJB project, or and EJB context to a JPA project.
....or do you advise instead to have two separate projects which are dependent on each other, and run inside the same container?
JPA is part of the EJB3 spec, although JPA is also also available for non-EJB environments like Hibernate. So if your EJB facet includes EJB3 support, you shouldn't need to additionally request an explicit JPA facet.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 08, 2009
Hmmm, no good. OK, so my steps are:
1) Create new EJB project (specifying EJB v3)
3) Name it GlassFishBeans
2) Right click on project, New Entity
3) When asked which project to add the new entity, no projects are in the list.