Hello all, It is a rather big simplification to assume that the JNDI ENC will be static in runtime. I have worked with quite a number of applications where stuff bas been (re-)bound in the JNDI after initialization. However, I agree with Richard's general thought that the JNDI has a relatively small amount of bound objects, compared to the norm for LDAP.
Using LDAP as the basis for JNDI seems idiotic - JNDI is trivial enough and unspecified enough that one realizes it is not thought to be a replacement for a database in a J2EE server. I say let's optimize JNDI implementation for speed - but not assume read-only operation. I vote for an in-memory HashMap, TreeMap or TreeNode implementation. Alex Blewitt wrote: > On Friday, Aug 29, 2003, at 08:55 Europe/London, Richard Monson-Haefel > wrote: > > >All this sounds great, Alex, but I?m a little concerned that its > >overkill for the JNDI ENC. �The JNDI ENC is totally static at runtime > >(per deployment) and therefore a very simple, and fast, in-memeory > >caching strategy works best. > > Is this necessarily the case? It has to be able to start up EJBs and > write into the JNDI ENC during runtime; if it is going to support > on-the-fly deployment of other EJBs, I'd say that it must be able to > handle additional extras inserted in at runtime. > > I also don't see why code cannot necessarily register additional things > in the JNDI ENC, such as other databases populated by an initialisation > code. I know that it's not likely that this will be the case, but > assuming that it is totally static seems a wrong decision. > > Of course caching is always likely to provide better performance in any > case, but it still does not have to be static. > > Alex (B). > -- +------------------------+------------------------+ | B�sta h�lsningar, | Snail Mail: | | [sw. "Best regards"] | jGuru Europe AB | | | Sten�sv�gen 3 | | Lennart J�relid | S-435 41 M�lnlycke | | | SWEDEN | | | | | Email: | Phone: | | [EMAIL PROTECTED] | + 46 708 507 603 | | URL: | Cellular Phone: | | www.jguru.com | + 46 708 507 603 | +-------------------------------------------------+
