Hi,<div><br></div><div>I should add a nested (complex) annotation to MDB class, like this:</div><div><div>@MessageDriven(name = &quot;MDBName&quot;, activationConfig = {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;destinationType&quot;, propertyValue = &quot;javax.jms.Queue&quot;),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;destination&quot;, propertyValue = &quot;blah&quot;),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;acknowledgeMode&quot;, propertyValue = &quot;Auto-acknowledge&quot;),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;maxSession&quot;, propertyValue = &quot;1&quot;),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;transactionTimeout&quot;, propertyValue = &quot;10800&quot;),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = &quot;dLQMaxResent&quot;, propertyValue = &quot;0&quot;) </div><div>})</div></div><div><br></div><div>i can&#39;t find something like this in forge code...</div>
<div><br></div><div>I tried with :</div><div>JavaClass ejb =((JavaResource) resource).getJavaSource();</div><div><div>ejb.addAnnotation(EjbType.MESSAGEDRIVEN.getAnnotation())</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>.setStringValue( &quot;name&quot;, resource.getName().substring(0, resource.getName().lastIndexOf(&quot;.&quot;)))</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span><b>.setStringValue( &quot;activationConfig&quot;,</b></div><div><b>                                                                                + &quot;\&quot;{ @ActivationConfigProperty(propertyName = \&quot;destinationType\&quot;, propertyValue = \&quot;&quot; + destinationType + &quot;\&quot;) &quot;</b></div>
<div><b><span class="Apple-tab-span" style="white-space:pre">                                                                                </span>+ &quot;@ActivationConfigProperty(propertyName = \&quot;destination\&quot;, propertyValue = \&quot;&quot; + destinationName + &quot;\&quot;)}&quot;);</b></div>
</div><div><br></div><div>This code does not generate errors, but doesn&#39;t add properties to @MessageDriven annotation.</div><div><br></div><div>Someone can help me?</div><div><br></div><div>thanks</div><div><br></div>
<div>Fiorenzo</div>