On Sep 15, 2007, at 10:08 PM, Karan Malhi wrote:
David,
I saw that you committed the change to the default JNDI name format.
Will be updating the wiki
(http://cwiki.apache.org/confluence/display/OPENEJB/JNDI+Names) with
the new information. Will be requesting you to verify the docs after I
do the update.
Fantastic! You the one, Karan ;) (easier to rhyme now that I know
how to pronounce your name :)
That first explanation at the top is too long. If you can think of
another way to express the default, go for it.
However you want you JNDI layout to be, you should be able to get it
and you can set it at either a server or ejb-jar level depending on
how much consistency you want.
Okay, so setting the format at the server level is done through the
properties you mentioned. How would I set the format at the ejb-jar
level?
In a META-INF/openejb-jar.xml like this:
<openejb-jar>
<properties>
openejb.deploymentId.format = {ejbName}
openejb.jndiname.format = {deploymentId}
{interfaceType.annotationName}
</properties>
</openejb-jar>
-David