Suppose I'm currently in a session bean trying to create another session bean. I'd like to be able to create this session bean using a jndi lookup where I have not declared the <ejb-ref> for it in the ejb-jar.xml. I was thinking I could do this if I declared the session bean in the web.xml first, but that doesn't seem to do any good.
Is this possible?
I think I read somewhere that you must always have an <ejb-ref> from within a session or entity bean to lookup another bean.
- brian
JBoss does not enforce that restriction.
You can lookup into global jndi.
Regards,
Adrian