Hi!

Sebastien Alborini wrote:
> > Nope. The internal link should be directly bound to the linked beans
> > home (since we have it internally), and an external link is just a
> > LinkRef(externalJndiName). External links can be to a bean in a Weblogic
> > server somewhere.
> 
> About internal links: I've been looking at the linking you did in
> Container:
> 
>http://cvs.working-dogs.com/ejboss/cvsweb/index.cgi/jboss/src/main/org/jboss/ejb/Container.java?rev=1.21&content-type=text/x-cvsweb-markup
> 
> It went into a quite complicated stuff (inner class) to ensure lazy
> loading. IMHO a linkref would be a simpler way to do the same: from what
> I understand of org.jnp.interfaces.Namingcontext, the link is not
> resolved until it is looked up. What do you mean by "it should be
> directly bound since we have it internally"?

The problem is that a LinkRef points to something else in the JNDI
namespace. So what should it point to? I wouldn't recommend pointing it
to the global namespace.

One way would be to use a Reference instead which could implement the
lazyloading thing.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to