This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to make a ejb-jar file?  RSS feed

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie of EJB.
I am now reading a book called Mastering EJB. I am following the example in the chapter 3 of the book to generate a ejb-jar file.
I have created all the java files and a deployment descriptor, and put all of them in a folder. In the book, it says that "if you're using a development environment supporting EJB, the development environment may contain an automated way to generate the Ejb-jar file for you" by the command "jar cf HelloWorld.jar *". However, after I have run this command, only the HelloWorld.jar is created. How can I set my computer to be an environment supporting EJB? Thanks!
PS: I have set JBoss in my computer successfully and my platform is Windows ME.
Stephen
 
Bartender
Posts: 19735
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you've created the EJB jar, you have to give a copy of it to JBoss. You'll have to read the JBoss manual to get the details - I don't remember them.
And, of course, you write a client app to test the EJB.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I studied EJB basics I found Sun's J2EE Tutorial very usefull.
Don't know anything about JBoss, deployed everything with the (in the j2sdkee included) deploytool...
Erik Dark
 
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put your jar file under the "deploy" directory within the jboss,it will deploy your ejb automatically!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!