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

Summary: hint for incorrect @EJB usage with 2.1 beans
Product: javaee Reporter: Vince Kraemer <vkraemer>
Component: EditorAssignee: Tomasz Slota <tslota>
Status: NEW ---    
Severity: blocker CC: sahoo
Priority: P2    
Version: 5.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

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