Its done through the jboss.xml descriptor.
I'm sorry, but I am really stupid.
Where is the jboss.xml descriptor located? Do you mean the one in the ejb jar under the META-INF directory? Or do I create one in the actual deploy directory? Or do I create one in the conf where the standardjboss.xml is located?
Start with the getting started guides.
I went through the Getting Started guide by Luke Taylor, pulled down the demos and went through them.
So from that I am assuming that the only place the jboss.xml goes is in the META-INF of the ejb.
Therefore my original assumption must be wrong. I assumed that the purpose of the ejb-ref tags was to allow a system administrator to place the actual interface link someplace in the JNDI directory with some name and have that link to the logical name specified in the ejb-jar.xml.
In actuallity the ejb-ref is used so that the component does not have to worry about where the container implementation actually binds the interface in the JNDI directory.
So in the end there is no way for the system administrator to tell the container where to bind the interface other than to unpack the jar and change the jboss.xml <jndi-name> tag.
Is that correct?