Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@Autowired needs Application Server?  RSS feed

 
Mimmo Ludovico
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the use of the application server mandatory to use the Annotation @Autowired?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15952
86
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you do not need an application server for @Autowired to work. You do need to properly initialize a Spring application context, however.
 
Mimmo Ludovico
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring application context can work outside the Apllication Server? in case of yes then when it is needed the Application Server?
 
Mohammed Sardar.
Ranch Hand
Posts: 120
1
Java jQuery Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we want our application to communicate with browser we want Application Server.

1. If we want to receive a URL Request from browser and dispatch it to a Front End Controller we want Application Server.

2. If we want our Spring enabled application wants to response back we need Server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!