Community
Participate
Working Groups
When you create an EJB 3.0 with the wizards, the EJB is automatically generated using annotations. I think there are several scenarios where it could be very interesting to have the EJB also described in the DD. So my suggestion is to add some kind of option in the EJB creation wizard so a developer can choose to generate just annotations in the code, just entries in the DD or both. Some scenarios could be: - An administrator or a deployer who need to modify or adapt some details and they don't know Java. - A developer who receives a new app to maintain without a tool like WTP. A quick look at a DD can offer you an idea of the number of EJBs, their type, etc... I think it also could be useful to add an already generated EJB to the DD just in case you forgot to use that possible option when using the wizard (but this is already commented in Bug: 196271) Regards, Chemi.
Not sure if this enhancement could qualify for the maintenance release (it could be considered as a significant UI change), but I target it to 3.0.1 since we still don't have a target for the Io release. I would suggest that this enhancement is introduced in the Session Bean and Message-Driven Bean wizards as a couple of checkboxes: - Add metadata as Java annotations - Add metadata in the ejb-jar.xml By default, the first checkbox is selected, the second - not. The user can select both checkboxes, but cannot leave both unchecked. I find their place to be more suitable on the second wizard page, because it would be not an often use case. Chemi, can you share your opinion on this suggestion?
I think the check boxes are ok. I would like to suggest too, a section in the Preferences of the Workbench so a developer can define the defaults for his projects. For example, define that both check boxes should be checked always by default.
(In reply to comment #2) > I would like to suggest too, a section in the Preferences of the Workbench so a > developer can define the defaults for his projects. For example, define that > both check boxes should be checked always by default. Agree.
*** Bug 242737 has been marked as a duplicate of this bug. ***
Hi Kaloyan, This bug looks very similar to bug 196271. I think they are not duplicated, since this bug suggests also an option in the wizard while bug 196271 suggests an action for generating deployment descriptor from annotation. But there is for sure a connection between both bugs. At least the functionality will be the same.
Any chance to have this implemented in the near future? Thanks!