Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Jar cannot be deployed?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
During a job interview i've said to the interviewer that we can deploy ear, war and jar files into an application server, but he had correct me saying that jars are not deployed.
Why?
Jar contains enterprise java beans class files and EJB deployment descriptor, so why my answer is judged incorrect?
 
Saloon Keeper
Posts: 13864
313
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because application servers do not directly run .jar files. EJB and web modules are bundled in .ear files when deployed. An exception are .war files, which can also be deployed by themselves in web containers.

Now, the question is a bit ambiguous, because technically .war and .ear files are JAR files with different extensions.
 
Luk Cora
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So if i need to deploy a jar i have to "convert" it in ear ?
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd say it depends on the context and what is meant by "deployment". Containers like Vert.x do support deployment of a module packaged as .jar file, as do OSGi containers. Traditional JEE/Servlet containers, not so much.
 
Luk Cora
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jelle Klap wrote:I'd say it depends on the context and what is meant by "deployment". Containers like Vert.x do support deployment of a module packaged as .jar file, as do OSGi containers. Traditional JEE/Servlet containers, not so much.


Suppose to use traditional application server, such weblogic or glassfish
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic