If my Spring app is deployed in an application server like WAS or JBoss, and in it I have a servlet with the following code...
Since this servlet is always running, will Spring create a new instance of the Job bean or does it maintain a pool of beans from which it serves?
ServletContext servletContext =this.getServletContext();
WebApplicationContext applicationContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
Job job = (Job) applicationContext.getBean("oracleJob");
Also this specific bean is for Spring Batch but I do not think that should just change how the Spring container treats it.
Thanks in advance for any help.