I finally found my fault. I had already created the sub-ejb-jar.xml file with the reference to the activemq ra.
What doesn't work is to package this into a war archive. My structure was the following:
- myapp.war
|-- WEB-INF
|-- classes
|-- foo.bar.MyMessageDrivenBean
|-- META-INF
|-- sub-ejb-jar.xml
this doesn't work.
I had to package the MDB into a dedicated jar file containing the sun-ejb-jar.xml.
-- devylon
[Message sent by forum member 'devylon' (ingo.vietense_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=390371