• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a ejb-jar file?

 
Stephen Lee
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
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
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.
 
Erik Dark
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
 
zb cong
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic