Bug 241667 - Optional local business interfaces for EJB 3.1 beans
Summary: Optional local business interfaces for EJB 3.1 beans
Status: RESOLVED FIXED
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard: JavaEE6
Keywords: plan
Depends on:
Blocks: 241666
  Show dependency tree
 
Reported: 2008-07-22 10:14 EDT by Kaloyan Raev CLA
Modified: 2010-04-01 13:35 EDT (History)
2 users (show)

See Also:


Attachments
patch - warning for no business interface (9.62 KB, patch)
2009-12-23 08:10 EST, Kaloyan Raev CLA
no flags Details | Diff
No-interface checkbox (34.59 KB, patch)
2010-02-23 04:12 EST, Kaloyan Raev CLA
no flags Details | Diff
Context help documentation (10.82 KB, patch)
2010-02-23 05:10 EST, Kaloyan Raev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-07-22 10:14:01 EDT
EJB 3.1 introduces the no-interface client view - the client can look-up the bean class without using local business interfaces. 
The Session Bean wizard should ensure that this is possible. 

Article: http://blogs.sun.com/kensaks/entry/optional_local_business_interfaces
Comment 1 Kaloyan Raev CLA 2009-02-02 04:48:04 EST
Decommitting Java EE 6 support for WTP 3.1
Comment 2 raccah CLA 2009-12-18 17:24:04 EST
We've added this on the GlassFish plugin.
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 08:10:26 EST
Created attachment 154964 [details]
patch - warning for no business interface

As a matter a fact, until now there was no check in the wizard that validates if there is any business interfaces configured for the bean. 

This patch added such validation for EJB 3.0 project. The message "No business interface configured. Clients will not be able to access this bean. " appears if there is no business interfaces selected. This validation is not active for EJB 3.1 projects.
Comment 4 Kaloyan Raev CLA 2009-12-23 08:12:57 EST
Committed to HEAD and released to build.
Comment 5 Kaloyan Raev CLA 2009-12-23 08:32:07 EST
Forgot to resolve the bug.
Comment 6 Kaloyan Raev CLA 2009-12-23 08:44:10 EST
Reopening this bug. 

I have just compared the current solution with the one implemented in the Glassfish server adapter. I see that I missed to consider section 4.9.8 (Session Bean's No-Interface View) from the EJB 3.1 specification. More specifically the @LocalBean annotation and its usage. 

Nevetheless, the committed patch with the warning is still valid.
Comment 7 Kaloyan Raev CLA 2009-12-23 08:45:33 EST
raccah, do you wish to contribute the No-interface checkbox to the WTP Session Bean wizard and the logic for generating the @LocalBean annotation in the bean's source code?
Comment 8 raccah CLA 2009-12-23 12:50:31 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 9 Kaloyan Raev CLA 2010-02-23 04:12:41 EST
Created attachment 159894 [details]
No-interface checkbox

This patch introduces a new checkbox - No-interface. If checked, it includes the @LocalBean annotation in the generated bean stub. There is also appropriate validation implemented in the wizard.
Comment 10 Kaloyan Raev CLA 2010-02-23 05:10:55 EST
Created attachment 159902 [details]
Context help documentation

This patch updates the context help of the session bean wizard.
Comment 11 Kaloyan Raev CLA 2010-02-23 05:17:32 EST
All patches committed and released to HEAD.
Comment 12 ludo CLA 2010-04-01 13:35:37 EDT
adding cc