Hey
[EMAIL PROTECTED] wrote:
> What's the purpose of an ejb-reference? Am I forced to use it?
>
> If all my beans (an application) are packed in a single .jar
> file, what I gain using ejb-references?
If a bean Foo wants to talk to bean Bar, how do Foo acquire the Home to
Bar? Normally you would do JNDI lookups, and EJB 1.1 introduces a local
namespace that can be used to bind these kinds of links into. Hence Foo
could be able to get Bar's home by calling new
InitialContext().lookup("java:comp/env/ejb/Bar"). A EJB-reference is
information about what the name should be ("ejb/Bar" in this case), and
what it should be bound to (Bar's home in this case).
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]