• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to make a WAR file for EJB project in WSAD

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41878
909
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic