users@glassfish.java.net

Re: JNDI resource lookup error in custom realm

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Jun 2009 06:39:48 PDT

Hi @ all!
I encountered the same Problem and discovered that this seems to be a runtime problem.
The lookup fails when executed in the initialization phase of the realm, which is quite in the beginning of the container startup. But it works fine if executed later (lazy), when the container startup is done.

My assumption is, a jndi lookup at such an early point in time is just not feasible because the jndi context is not ready to this time.

Can anyone verify this? Is this intended?

Kind regards,

Thomas
[Message sent by forum member 'tomiko' (tomiko)]

http://forums.java.net/jive/thread.jspa?messageID=353149