Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a WAR file for EJB project in WSAD

 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm porting an iPlanet project to Websphere. The project has an EJB and a servlet. So I created an EJB project in WSAD and ported both EJB code and servlet in it. However, I can't export a WAR file out of EJB project. I can only export an EJB JAR file. How can I make a WAR file out of an EJB project in WSAD?
Thanks,
Jenny
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to create an EJB project for your EJB, a WAR project for your servlet, then create an EAR project and associate the EJB and WAR projects in the EAR project. You then deploy the EAR project.
Dave
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David, do you mean WAR project or Web project. (I think it's called a web project in the pulldown.)
Jenny, I don't think you can put an EJB in a WAR (web application archive) file. You can put in an EAR (enterprise application archive) file for deployment. A WAR file is for JSPs and Servlets. An EAR file is for EJBs, ... WSAD includes a WAR file along with the EJB jars inside the EAR.
EAR
-WAR
-EJB jar one
-EJB jar two
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic