This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to make a ejb-jar file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to make a ejb-jar file?" Watch "How to make a ejb-jar file?" New topic

How to make a ejb-jar file?

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149

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.

An IDE is no substitute for an Intelligent Developer.
Erik Dark
Ranch Hand

Joined: Jan 28, 2002
Posts: 107
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
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
put your jar file under the "deploy" directory within the jboss,it will deploy your ejb automatically!
I agree. Here's the link:
subject: How to make a ejb-jar file?
It's not a secret anymore!