Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about @EJB in JBOSS

 
Victor Maehira
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning!
I am running the source code samples of o'reilly book. In the exercises about Session Beans, javax.annotation.EJB is imported. I could not find it in any JBOSS' jars. I've used java.ejb.EJB instead. The EJB annotation can be found in jboss-ejb3x.jar. Apparently, it is an author's mistake. However, probably the same code should run in another application server. Has anyone had the same problem?
Thanks!
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use

javaee.jar
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be java.ejb.EJB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic