#5581 How to add Entity Beans to EJB Module?
What's wrong with 6.0 Beta #5581 ? After creating an EJB Module, and
right-click in Java EE Structure, -> New... I can only add
- Peristence Unit
- Session Bean
- Message Bean
- Interceptor
what happened to Stateless Session and Entity Beans?
O
Please sign in to leave a comment.
Hello Oliver,
This is possible if in your module you don't have the ejb-jar.xml and
EJB 3.0 annotations are used to denote an EJB.
Entity EJBs are unavailable in this case and Java EE Persistence API
should be used instead.
You can add ejb-jar.xml at any time in the module settings.
This will enable old Entity EJBs development.
Stateful & Stateless Session EJBs are hidden under the "Session Bean"
menu item.
Regards,
Gregory Shrago
Oliver Fink wrote:
wow, gosh... not obvious at all :S I was indeed wondering how to
distinguish between EJB2.1 and 3... one mystery solved
OK got it...
thanks! O