Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

EJB package

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Felix Uzoukwu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 40913
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Felix Uzoukwu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic