| Author |
Annotation packaging
|
Alexandre Fradin
Greenhorn
Joined: Jul 29, 2008
Posts: 11
|
|
Hi, I'm using "Enterprise JavaBeans 3.0" (O'reilly). It's a good study boook, but I think there are some mistakes on annotation's package name. We can found : javax.annotation.PostConstruct and javax.ejb.PostConstructjavax.annotation.EJB and javax.ejb.EJB Owing to me, only the following annotations are correct : javax.annotation.PostConstructjavax.ejb.EJB Is it right?
|
SCJP
|
 |
Michael Wiezik
Ranch Hand
Joined: Mar 19, 2004
Posts: 70
|
|
Google says you are right. It also mentions some versions of JBoss use the non-standard packages (but it is reported as JBoss bug). "Enterprise JavaBeans 3.0" was written by the guy working on JBoss and all the code examples are given using JBoss container, so this is probably the reason you could find non-standard packages there.
|
SCJP 1.4 - 88%
SCBCD 5.0 - 90%
SCEA - 81%
|
 |
Sergio Tridente
Ranch Hand
Joined: Mar 22, 2007
Posts: 329
|
|
It is just a misprint. Take a look at the book's errata: http://oreilly.com/catalog/9780596009786/errata (it is under unconfirmed). [ August 20, 2008: Message edited by: Sergio Tridente ]
|
SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
|
 |
 |
|
|
subject: Annotation packaging
|
|
|