Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 241668

Summary: Singleton session beans
Product: [WebTools] WTP EJB Tools Reporter: Kaloyan Raev <kaloyan>
Component: jst.ejbAssignee: Kaloyan Raev <kaloyan>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: enhancement    
Priority: P3 CC: ludo, raccah
Version: unspecifiedKeywords: plan
Target Milestone: 3.2 M6   
Hardware: All   
OS: All   
Whiteboard: JavaEE6
Bug Depends on:    
Bug Blocks: 241666    
Attachments:
Description Flags
patch none

Description Kaloyan Raev CLA 2008-07-22 10:16:13 EDT
The EJB 3.1 specification introduces new types of session beans - Singleton. 
The Session Bean wizard should be updated to create Singleton session beans well.
Comment 1 Kaloyan Raev CLA 2009-02-02 04:49:23 EST
Decommitting Java EE 6 support for WTP 3.1
Comment 2 ludo CLA 2009-12-17 21:36:52 EST
We've added this on the GlassFish plugin (as well as the capability of adding local EJBs inside a Web Application Project).
Once this is done at the WTP level, we can simplify our plugin. Feel free to ask for testing on our plugin adapter for GlassFish v3.
Comment 3 Kaloyan Raev CLA 2009-12-23 09:00:48 EST
ludo, raccah, do you wish to contribute to WTP the modification of the Session Bean wizard that enables generation of Singleton beans? I see this is implemented in the Glassfish server adapter.
Comment 4 raccah CLA 2009-12-23 12:51:10 EST
Yes, we would like to do so if possible.  We are investigating the details on our side and hope to have a decision in the beginning of the new year.
Comment 5 Kaloyan Raev CLA 2010-02-09 11:57:50 EST
Created attachment 158608 [details]
patch

I attach a patch that implements the enhancement. The 'Singleton' option is added to the 'State type' drop-down list. If 'Singleton' is selected for EJB projects with version lower than 3.1, then a validation error is shown and the wizard cannot finish.
Comment 6 Kaloyan Raev CLA 2010-02-09 12:01:32 EST
The patch is committed to HEAD and the change will be available with this week's I-build.

ludo, raccah, I will appreciate if you test the I-build and give your feedback.