Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we include one EAR file into other EAR file  RSS feed

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have created one application named "abc.war" and integrated that into "myApp.ear". I know that we can include as many WARS in EARS file.My question is :

"Can we include one EAR file into other EAR file or can we only be able to include only WAR and JAR file in EAR file."

Thanks
Ram
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram,
No, you cannot include a .ear file within another .ear file. You can include it's contents (jars and wars) and merge the application.xml to produce a similar effect.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Ram,
No, you cannot include a .ear file within another .ear file. You can include it's contents (jars and wars) and merge the application.xml to produce a similar effect.


Literally speaking, it would work out since they are all just zip files but as Jeanne mentioned it is of no practical use. You should merge the application XML or if you just want to use the application's library, copy the jar file into the ear file and update the manifest entries.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Meyers:
Literally speaking, it would work out since they are all just zip files

True. Of course literally speaking, you could shove a .NET file in there too
 
Konstantin Chikarev
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you can include .sar file into .ear
 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all.

So what i understand is that We cannot include an EAR into other EAR.

Am i right.?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ram gaurav:
So what i understand is that We cannot include an EAR into other EAR.

Am i right.?

You are right. Sorry for the tangent after that...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!