| Author |
EJB package
|
Felix Uzoukwu
Greenhorn
Joined: Mar 20, 2007
Posts: 5
|
|
Could anybody tell me where I can find the package that contains "javax.ejb.Stateful" and other anotations. I could not find them in the "javax.ejb.*" package. This is what is standing between me and compiling my first EJB 3.0 program. I'll be grateful for any input. Felix
|
 |
Sumit Malik
Ranch Hand
Joined: Jan 05, 2007
Posts: 84
|
|
Hey Felix Uzoukwu if you are using Jboss then drill down to installation directory and then move to client folder and there you will find jboss-annotations-ejb3x.jar In this jar you will get javax.ejb.Stateful class as well other required classes. I hope this would solve you purpose. Cheers !!! Sumit Malik
|
If at first you don't succeed, don't try skydiving
|
 |
Felix Uzoukwu
Greenhorn
Joined: Mar 20, 2007
Posts: 5
|
|
Thank you for the input but regretably I've combed all the directories inside JBOSS_HOME without finding this jar file(jboss-annotations-ejb3x.jar). I exteded my search to the server directory too but no luck. I have "jboss-4.0.5.GA" version.
|
 |
Sumit Malik
Ranch Hand
Joined: Jan 05, 2007
Posts: 84
|
|
Well, I dont have any experience with this version but i would say this jar must be lying in client folder of jboss installation and might be they have given some other name to this jar. Try to look through all ejb3.x jar present there.... Cheers !!! Sumit Malik
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
Felix, You might want to also look for a file named j2ee.jar. This is what WebSphere calls it as their jar contains all the J2EE classes, not just the EJB classes. I realize WebSphere isn't JBoss, but it's worth a shot when looking. [ March 31, 2007: Message edited by: Jeanne Boyarsky ]
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Felix Uzoukwu
Greenhorn
Joined: Mar 20, 2007
Posts: 5
|
|
|
Thank you all very much for the attempt to help. I finally stumbled on the solution. The file is "javaee.jar". This is the file that must be imported if you intend to use "javax.ejb.Stateless, @Remote, @Local, etc" in your EJB3.0 program. It is in the lib directory of J2EE 5.0.
|
 |
Debu Panda
author
Ranch Hand
Joined: Jan 21, 2007
Posts: 100
|
|
I'm no JBoss expert but I've been trying to port code examples of my book to JBoss and I think I can help you out here. Look at %JBOSS_HOME%\server\default\deploy\ejb3.deployer jboss-ejb3x.jar --> contains all EJB 3 javax.ejb.*, javax.annotation.* and javax.interceptor classes regards Debu
|
Author: EJB 3 In Action (http://manning.com/panda)
|
 |
 |
|
|
subject: EJB package
|
|
|