<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META http-equiv=Content-Type content="text/html; charset=ISO-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve got something running now, that binds a message driven bean to a resource adapter using the jboss-ejb3.xml so that it is no longer necessary to define it using a JBoss specific annotation in the source nor to modify the default resource adapter in the server configuration.<o:p></o:p></p><p class=MsoNormal>It is even possible to redefine activation config properties if they have to have a different value in a JBoss environment.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>An example of the file looks like this:<o:p></o:p></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&lt;jboss xmlns=&quot;http://www.jboss.com/xml/ns/javaee&quot; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;xmlns:jee=&quot;http://java.sun.com/xml/ns/javaee&quot;<o:p></o:p></span></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; xmlns:mdb=&quot;urn:resource-adapter-binding&quot;<o:p></o:p></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp; xmlns:security=&quot;urn:security&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;jee:assembly-descriptor&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;security:security&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:ejb-name&gt;TestCC&lt;/jee:ejb-name&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;security:security-domain&gt;abc&lt;/security:security-domain&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#D9D9D9;mso-style-textfill-fill-color:#D9D9D9;mso-style-textfill-fill-alpha:100.0%'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/security:security&gt;<o:p></o:p></span></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mdb:resource-adapter-binding&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:ejb-name&gt;FooMDB&lt;/jee:ejb-name&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mdb:resource-adapter-name&gt;FooConnector.rar&lt;/mdb:resource-adapter-name&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:activation-config&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:activation-config-property&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:activation-config-property-name&gt;fooActivationPropertyName&lt;/jee:activation-config-property-name&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jee:activation-config-property-value&gt;FooValue&lt;/jee:activation-config-property-value&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/jee:activation-config-property&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/jee:activation-config&gt;<o:p></o:p></b></p><p class=MsoNormal><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/mdb:resource-adapter-binding&gt;<o:p></o:p></b></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;/jee:assembly-descriptor&gt;<o:p></o:p></p><p class=MsoNormal>&lt;/jboss&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>What do you think about this structure?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>If there are no objections to this I would propose a pull request.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The files I have touched are:<o:p></o:p></p><p class=MsoNormal>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modified:&nbsp;&nbsp; ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/EjbJarParsingDeploymentUnitProcessor.java<o:p></o:p></p><p class=MsoNormal>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modified:&nbsp;&nbsp; ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/merging/ResourceAdaptorMergingProcessor.java<o:p></o:p></p><p class=MsoNormal>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new file:&nbsp;&nbsp; ejb3/src/main/java/org/jboss/as/ejb3/resourceadapterbinding/metadata/EJBBoundResourceAdapterBindingMetaData.java<o:p></o:p></p><p class=MsoNormal>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new file:&nbsp;&nbsp; ejb3/src/main/java/org/jboss/as/ejb3/resourceadapterbinding/parser/EJBBoundResourceAdapterBindingMetaDataParser.java<o:p></o:p></p><p class=MsoNormal>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new file:&nbsp;&nbsp; ejb3/src/main/resources/jboss-ejb-resource-adapter-binding_1_0.xsd<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Kind regards,<o:p></o:p></p><p class=MsoNormal>Robert<o:p></o:p></p></div><blockquote><b>WINCOR NIXDORF International GmbH</b><br />Sitz der Gesellschaft: Paderborn<br />Registergericht Paderborn HRB 3507<br />Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram<br />Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller<br />Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193<br /><br />Diese E-Mail enthält vertrauliche Informationen.<br />Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,<br />informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.<br />Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.<br /><br />This e-mail may contain confidential information.<br />If you are not the intended recipient (or have received this e-mail in error)<br />please notify the sender immediately and destroy this e-mail.<br />Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.</blockquote>
</body></html>