I found the directions on configuring MDB in ejb-jar.xml file. I am not sure which folder in jboss 4.0.5 I should deploy ejb-jar.xml containing listener mdb file.