This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 74061 - hint for incorrect @EJB usage with 2.1 beans
Summary: hint for incorrect @EJB usage with 2.1 beans
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 00:01 UTC by Vince Kraemer
Modified: 2007-09-17 20:33 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2006-03-28 00:01:33 UTC
The spec for EJB 3.0 says that a user can inject the LocalHome or Home into a
client.

I did not read the spec and jumped to the conclusion that injection would work
for the Local or Remote interface, since that way a client of a 2.1 EJB local
interface would have the same code as the client of a 3.0 EJB business interface.

It would be nice to see the editor catch this and provide a hint to use the
Home/LocalHome instead of the Remote/Local interface...

I marked this as P2 because I think there are lots of users who are as lazy as I
am.  I would like the container to have done the lookup and create for my 2.1
bean reference, not just the lookup... Lazy container

spec x-reference: JSR 220, section 3.6.1 (page 49 of the 12/18/05 draft)
Comment 1 Jiri Prox 2007-09-17 20:33:42 UTC
Obsolete milestone, please reevaluate