Unfortunately you have to write these two files yourself since JBoss does not have any deployment tool like other app servers. But it is simple to write them. Take a look in QuickStart Doc chapter 9 for mapping examples. You need write mapping for one bean and then copy this correct peace to modify for other beans.
A better way you can also use XDoclet for this purpose.
Hope this helps.
Yikes! I was hoping that there would be some way to auto-generate those files.
Thanks for your prompt reply.
If I understand XDoclet correctly, I have to modify my current bean classes with tag information similar to my ejb-jar.xml files to auto-generate the required jboss xml files, right?
Hmmm...I wonder which way is faster and easier, using XDoclet or writing the jboss xml files from scratch?
Anyways, thanks for your help.