Problem solved! =)
One thing to watch out for is that in the released version of XDoclet (1.0.1 or 1.1) the template for jboss.xml is broken - there is no support for changing container configurations for MDBs.
If you need this, there is a quick fix available on xdoclet's sourceforge bug page which I submitted. It has now been incorporated into the CVS tree so getting the latest build would help.
Of course, you might not need it.
Can you tell everybody how you solve your problem. This is the interesting part of the forum:-)