I faced a very foolish problem, and reason is most likely my bad Java.
The issue is to create enterprise application with remote interface (separate project as NetBeans 8 desire) and entity classes. I've founded two manuals for NetBeans: with Remote interface and with Entities with facades. But both of them describes only part of my situation.
The goal is to use entity classes (or some abstraction) not only from ejb project but also from remote interface projects. I've tried to do this by:
- creating entity classes in every of this projects separately and in both of them,
- creating facades for entity classes in remote interface project (NetBeans forbid it).
And all my attempts doesn't compile or work. So the question is how to properly solve this problem in NetBeans. The only solution I've found is to create Session Bean wrappers for every entity class but this doesn't smells good.
I will be glad to any advice.