This content has been marked as final.
Show 3 replies
-
1. Re: Using @In and @Stateful-Stateless
blabno Sep 1, 2008 9:14 AM (in response to nimo22)Component is not statefull because it is injected via @In. @Stateful/Stateless-Annotations tell container to make EJB from POJO.
As to @EJB ... I don't know.
-
2. Re: Using @In and @Stateful-Stateless
nimo22 Sep 1, 2008 9:40 AM (in response to nimo22)Really?
I have this in my EJB-Component:
@PostConstruct
public void initialize() {
log.info(This is called immediately after the EJB-Component is created !!!
);
}and create a instance of my EJB-Component via @In in my POJO stored in my Client (WAR).
The log shows, that the EJB-Component is instantiated via @In. So I assume, the annotation @PostConstruct is embeeded in an EJB-Component. However, I cannot use @EJB in SEAM. Should I ? For what when I have @In?
-
3. Re: Using @In and @Stateful-Stateless
blabno Sep 1, 2008 12:49 PM (in response to nimo22)You do not need @EJB if those ejbs are @Name annotated seam components. I they are not then you need @EJB.