<div>Hi,</div><div><br></div><div>i would contribute to jboss-forge, starting from:</div><div><a href="https://issues.jboss.org/browse/FORGE-610">https://issues.jboss.org/browse/FORGE-610</a></div><div><br></div><div>I wrote some initial code to model my idea:</div>
<div><a href="https://github.com/fiorenzino/core/blob/FORGE-610/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/ejb/EJBPlugin.java">https://github.com/fiorenzino/core/blob/FORGE-610/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/ejb/EJBPlugin.java</a></div>
<div><br></div><div>On default, with new-ejb command you can create an ejb en defining little information (name, package, type):</div><div>for me the default ejb created is stateless-localbean.</div><div><br></div><div>And after you could add to ejb created some properties:</div>
<div>new-local-interface [@Local()], new-remote-interface [@Remote()}, new interface [ implements.. ], new superclass [ extends...], transaction attribute, inject some class...</div><div><br></div><div>[i tried inspiration and i copied some code from jpa plugin]</div>
<div><br></div><div>What do you think about my idea for ejb plugin?</div><div><br></div><div>And some question in general:</div><div>1) is it possibile to add some superclass using org.jboss.forge.parser.java.JavaClass? how i can do this?</div>
<div>2) how can i add some complex annotation to mdb like:</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>@MessageDriven(name = "AddressFileParserMDB", 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 = AppConstants.ADDRESS_FILE_RESOLVER_Q),</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><span class="Apple-tab-span" style="white-space:pre">                </span>})</div>
<div><br></div><div>Best Regards,</div><div><br></div><div>Fiorenzo</div><div><br></div><div><br></div><div>PS: in this period i'm on vacation and i use the computer when my partner gets distracted ..</div><div> </div>