This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

What does Application Server do exactly?  RSS feed

 
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I have studied, Application Server provides support to perform Dependency Injection, Security etc to an Enterprise Application.

I developed a demo project and did not install any application server but i installed Tomcat server. I used Spring framework and added Spring Jars for support in my project and performed dependency injection as well. So how come dependencies have been injected without even installing any application server?
Did Tomcat do this? or Jars are the application container?
thanks in advance
 
Saloon Keeper
Posts: 4745
117
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some unclearly defined concepts in this area. For example, Tomcat can act as an application server, it's just not a JEE application server (which needs to implement all of the JEE spec). See https://coderanch.com/wiki/659767/Web-Application-Server for a more thorough discussion on this.

As to dependency injection in particular, it doesn't need a JEE application server, nor in fact any application server - it works just fine in Java SE applications.
 
Saloon Keeper
Posts: 9234
177
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring provides its own dependency injection framework. It's not the same as CDI, which is the dependency injection framework used by JEE application servers. You can also use CDI in web application containers that don't fully support JEE, such as Tomcat, by adding a CDI implementation such as Weld.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!