Hi,<div><br></div><div>I should add a nested (complex) annotation to MDB class, like this:</div><div><div>@MessageDriven(name = "MDBName", activationConfig = {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "destination", propertyValue = "blah"),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "transactionTimeout", propertyValue = "10800"),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> @ActivationConfigProperty(propertyName = "dLQMaxResent", propertyValue = "0") </div><div>})</div></div><div><br></div><div>i can'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( "name", resource.getName().substring(0, resource.getName().lastIndexOf(".")))</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span><b>.setStringValue( "activationConfig",</b></div><div><b> + "\"{ @ActivationConfigProperty(propertyName = \"destinationType\", propertyValue = \"" + destinationType + "\") "</b></div>
<div><b><span class="Apple-tab-span" style="white-space:pre">                                                                                </span>+ "@ActivationConfigProperty(propertyName = \"destination\", propertyValue = \"" + destinationName + "\")}");</b></div>
</div><div><br></div><div>This code does not generate errors, but doesn'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>