anonymous wrote : to do what at class level? to @IgnoreDependency ?
|
Yes, i meant you can't have an @IgnoreDependency at class level.
anonymous wrote : i thought, that
|
| * @EJB on class level just declares a dependency and the application server puts
the corresponding ejb into the local jndi context, while
| * @EJB on field level injects an instance of the corresponding ejb into the field
That's correct.
[ Some internal details - A @EJB adds an internal MC dependency on the bean which is being
added to the ENC of another bean or being injected in another bean]
Wouldn't this work:
| ...
| public class StatlessTwoBean implements StatlessTwo
| {
| ...
| @EJB(beanName = "StatlessOne") // lookup "always"
| @IgnoreDependency
| private StatlessOne statlessOne;
anonymous wrote : ps:
| its complicated for me to explain all these things in english.
| so i hope you will forgive me if i confuse you O: )
No problem with the language :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240843#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...