|My understanding is that the purpose of the double indirection is
|to make the
|case where you have many beans and many resources in the the one file more
|manageable.
Yes the reason is that. If you have many beans and one db it becomes very
useful.
Say for example you deploy 120 beans as part of an application and they ALL
use the same db. If you only have the jndi-name then you need to set that
for everyone. Clearly not a admin friendly feature.
|<res-ref-name> describes what the resource *does*
Almost, it is the name of the ref IN THE CODE.
|<resource-name> describes what the resource is *called*
Almost, it is the name of the reseource IN THE XML FILE
|<res-jndi-name> describes where the resource is *located*
Almost, it is the name of resource in JNDI
|I agree that the double indirection causes a lot of confusion.
Then it is a good "advanced" feature but a poor beginner feature, the
default jndi-name should fix that.
|Perhaps we can
|make it optional?
yes if you specify a ref with JNDI name then use that directly if not follow
the indirection
Make the generic case the norm, the specific case the optional rewrite.
Usability, usability, usability, the rest beer-piss.
marc
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development