When I reference my SessionBean via the @Local or the @Remote-Annotation, then I do not know, if the injection of my EntityBean (which is definitly not a SessionBean) works.
What do you mean by creating new Instance? Do you mean by instantiating it with new Entity() ?
Of course it is better that Seam provides your entity by injecting it with @In. :-)
Yes, I mean instantiating.
What about distributed systems and EJB. In EJB I have (one or more) Interfaces between my sessionBeans and my viewBeans. My viewBeans have access to methods of my sessionBeans via the Interface and via the @EJB-Injection. So, when I use the @In, I do not need any Interfaces ?? I do not have an Interface between my entityBean and my viewBean! However, can inject a new Instance of my entityBean in my viewBean via @In, but this is not the idea of what EJB stands for: MethodInvocation via Interfaces.
However, I can instantiate my entityBean in my sessionBean and have indirectly instantiate it by injecting my sessionBean to my viewBean via @EJB. Is this the clean way?
What do you think about that?