[forge-dev] ejb plugin: FORGE-610

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


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 =
@ActivationConfigProperty(propertyName = "destination", propertyValue =
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue =
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),
@ActivationConfigProperty(propertyName = "transactionTimeout",
propertyValue = "10800"),
@ActivationConfigProperty(propertyName = "dLQMaxResent", propertyValue =

Best Regards,


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