Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
-
Number of attachments :
Description
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.
I was confused with comp name, ejb name and jndi name in my post: please read comp name and jndi name... but anyway, either of which i may use doesn't work. The only lookup that works is "ejb/BeanName", while comp. name would be "java:comp/env/ejb/BeanName" and jndi name would be, in my case "ejb/someproject/BeanName".