Hi,
currently binding a message driven bean to another resource adapter than the default resource adapter requires adding a JBoss specific annotation @org.jboss.ejb3.annotation.ResourceAdapter to the MDB.
I think there should also be a way to establish this binding using a specific deployment descriptor to allow for deploying portable JEE applications to JBoss 7.
Looking at the code I think that this should go into the jboss-ejb3.xml.
As far as I can see the parsing code in jboss-metadata-ejb only parses a skeleton document that looks like this:
<jboss xmlns=”http://www.jboss.com/xml/ns/javaee”>
<enterprise-beans>
<ejb>
</ejb>
</enterprise-beans>
</jboss>
So if I have not overseen anything there is no way of establishing this binding.
I’d like to contribute to this part but would like to have an opinion how this file should look like in the end.
As a resource adapter binding only makes sense for MDBs I would prefer something like this:
<jboss xmlns=”http://www.jboss.com/xml/ns/javaee”>
<enterprise-beans>
<message-driven>
<ejb-name>MyEjbName</ejb-name>
<resource-adapter>myConnector.rar</resource-adapter>
</message-driven>
</enterprise-beans>
</jboss>
What do you think about this?
Kind regards,
Robert
WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193
Diese E-Mail enthält vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.