hi all ,
(using jboss)
lets say i have 2 session beans, that one need to invoke methods on the other ,
well than i have 2 choices

1.add the ejb-ref to the beans descriptors
and then use the java:comp/env/ejb/whatever to look him up

2.just add a lookup like

considering its not a local ref what is the advantage of using a component namespace("java:comp/env/ejb/whatever") than using the ("ejb/whatever")
if there is any
and if not what is the diffrence (it terms of costs)