Bug 236621 - Add EJB metadata to DD automatically
Summary: Add EJB metadata to DD automatically
Status: NEW
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: 3.4.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords: helpwanted
: 242737 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-11 09:34 EDT by Chemi CLA
Modified: 2012-10-05 10:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chemi CLA 2008-06-11 09:34:12 EDT
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.
Comment 1 Kaloyan Raev CLA 2008-06-11 11:10:27 EDT
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?
Comment 2 Chemi CLA 2008-06-11 14:07:24 EDT
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.
Comment 3 Kaloyan Raev CLA 2008-06-12 07:21:55 EDT
(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.

Comment 4 Kaloyan Raev CLA 2008-07-31 11:53:10 EDT
*** Bug 242737 has been marked as a duplicate of this bug. ***
Comment 5 kiril mitov CLA 2008-08-14 03:38:57 EDT
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.
Comment 6 Chemi CLA 2012-10-05 10:01:25 EDT
Any chance to have this implemented in the near future?
Thanks!