Number of attachments :
It would be extra sugar for me if xjb was able to read jboss.xml descriptors:
Indeed, we generate our ejb classes with xdoclet, and use the Util classes provided by it... using the physical lookup (jndi name), and the mapping between ejbname and jndi name is done in the jboss.xml file, also generated by xdoclet.
So it would feel natural to be able to use these util classes - just like we do in our code - in the tests.
Maybe this rings the bell of some bad practice, I'm not quite sure.
Tell me what you think about it, and if it's ok, then i could also look into providing a patch.