• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it wrong to place EJB jars in a WAR file?

 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have a web application that uses EJB's, should I place the EJB in an EAR file and add the web application -- as a WAR -- to the EAR?
SAF
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct. You also need the XML file that describes the war and EJBs so the appserver can find them when it wants them.
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your EAR File should look like this:
1).EAR File
1a) .WAR File
1b) .JAR File

Thanks & Bye,
Tualha Khan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic