[forge-dev] ejb plugin: FORGE-610

JFlower fiorenzino at gmail.com
Tue Aug 7 19:12:05 EDT 2012


Hi,

i would contribute to jboss-forge, starting from:
https://issues.jboss.org/browse/FORGE-610

I wrote some initial code to model my idea:
https://github.com/fiorenzino/core/blob/FORGE-610/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/ejb/EJBPlugin.java

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 ..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120808/78e74044/attachment.html 


More information about the forge-dev mailing list