BeanB will be provided by the container for you, so it shouldn't really matter.
Only after class of BeanB is loaded, the container will parse the @Stateless etc. annotations on it, do the appropriate JNDI bindings for it. And from then onwards as you commented, the container will provide instances of BeanB to any clients that need them. However, here I am talking about a scenario where BeanB class is not yet loaded at all.
And, I have seen this practically in one of my applications where I face a NameNotFound exception in the lookupBeanB() because the BeanB was not yet loaded at that time. However, after the
JBoss start up completes, I can clearly see the BeanB binded properly in the JNDIview.
Any further information is greatly appreciated.
Thanks,