Hi,
i would contribute to jboss-forge, starting from:
I wrote some initial code to model my idea:
On default, with new-ejb command you can create an ejb en defining little information (name, package, type):
for me the default ejb created is stateless-localbean.
And after you could add to ejb created some properties:
new-local-interface [@Local()], new-remote-interface [@Remote()}, new interface [ implements.. ], new superclass [ extends...], transaction attribute, inject some class...
[i tried inspiration and i copied some code from jpa plugin]
What do you think about my idea for ejb plugin?
And some question in general:
1) is it possibile to add some superclass using org.jboss.forge.parser.java.JavaClass? how i can do this?
2) how can i add some complex annotation to mdb like:
@MessageDriven(name = "AddressFileParserMDB", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = AppConstants.ADDRESS_FILE_RESOLVER_Q),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),
@ActivationConfigProperty(propertyName = "transactionTimeout", propertyValue = "10800"),
@ActivationConfigProperty(propertyName = "dLQMaxResent", propertyValue = "0")
})
Best Regards,
Fiorenzo
PS: in this period i'm on vacation and i use the computer when my partner gets distracted ..