Here is my top three:
- Lacking documentation
- half-hearted API
- Haven t found anyone using it besides app servers
There are a couple of tutorials how to use JNDI but most of the time, you ll be stuck when something goes wrong. The implementation also frowns upon useful error messages. If a key can t be found, then you just get the innermost key name - the path which lead to the key is missing.
There is also no way to navigate the JNDI hierarchy. What s the point of having a hierarchy with parent and children when you can t navigate it?
And what about java:comp/env
? Why is it there? When can I omit it? When do I have to use it? Has anyone ever added a tree which doesn t start with java:
?