<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    activation-config is already an element of message-driven. It would
    only lead to confusion if you duplicate it.<br>
    <br>
    Carlo<br>
    <br>
    On 11/18/2011 12:02 PM, Panzer, Robert wrote:
    <blockquote
cite="mid:907AE6DD25443A47982983074FC87C0FA0F652AFF2@DEEXVS21.wincor-nixdorf.com"
      type="cite">
      <pre wrap="">Hi,

I'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.
It is even possible to redefine activation config properties if they have to have a different value in a JBoss environment.

An example of the file looks like this:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;jboss xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.jboss.com/xml/ns/javaee">"http://www.jboss.com/xml/ns/javaee"</a>
    xmlns:jee=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/xml/ns/javaee">"http://java.sun.com/xml/ns/javaee"</a>
    xmlns:mdb="urn:resource-adapter-binding"
    xmlns:security="urn:security"&gt;

    &lt;jee:assembly-descriptor&gt;
        &lt;security:security&gt;
            &lt;jee:ejb-name&gt;TestCC&lt;/jee:ejb-name&gt;
            &lt;security:security-domain&gt;abc&lt;/security:security-domain&gt;
        &lt;/security:security&gt;
        &lt;mdb:resource-adapter-binding&gt;
            &lt;jee:ejb-name&gt;FooMDB&lt;/jee:ejb-name&gt;
            &lt;mdb:resource-adapter-name&gt;FooConnector.rar&lt;/mdb:resource-adapter-name&gt;
            &lt;jee:activation-config&gt;
                &lt;jee:activation-config-property&gt;
                    &lt;jee:activation-config-property-name&gt;fooActivationPropertyName&lt;/jee:activation-config-property-name&gt;
                    &lt;jee:activation-config-property-value&gt;FooValue&lt;/jee:activation-config-property-value&gt;
                &lt;/jee:activation-config-property&gt;
            &lt;/jee:activation-config&gt;
        &lt;/mdb:resource-adapter-binding&gt;
    &lt;/jee:assembly-descriptor&gt;
&lt;/jboss&gt;

What do you think about this structure?

If there are no objections to this I would propose a pull request.

The files I have touched are:
#       modified:   ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/EjbJarParsingDeploymentUnitProcessor.java
#       modified:   ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/merging/ResourceAdaptorMergingProcessor.java
#       new file:   ejb3/src/main/java/org/jboss/as/ejb3/resourceadapterbinding/metadata/EJBBoundResourceAdapterBindingMetaData.java
#       new file:   ejb3/src/main/java/org/jboss/as/ejb3/resourceadapterbinding/parser/EJBBoundResourceAdapterBindingMetaDataParser.java
#       new file:   ejb3/src/main/resources/jboss-ejb-resource-adapter-binding_1_0.xsd

Kind regards,
Robert

WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Gesch&auml;ftsf&uuml;hrer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. J&uuml;rgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enth&auml;lt vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt&uuml;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.

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>