Why building it when jboss starts up?
Can't you just deploy the MDB in the deploy-dir, and it starts consuming messages as it is deployed when jboss starts up?
Actually, you're right! I guess I was just too addicted to the build.xml script.
It's true that as I copy the .jar file into jboss\deploy I don't need to do anything else but start sending messages that will be received (and viewed) on the server window.
Thanx again for the hint,