This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi, I have been developing jsps and servlets for past 7-8 months.That's how I got introduced to java.For the past 2 days I have started learning Spring...and I feel I am bogged down by terminologies like IoC and AOP. Could somebody explain me in layman's terms?My ultimate aim is to develop Web based Spring applications which employ Hibernate to interact with the database. To start with I tried to write Spring aware servlets. I wasn't successful.
I get the following exception: message
I have put the interface file, implementation file, .xml file and the servlet file in the same package in WEB-INF Is this the correct approach? I am using JDK 6, Tomcat 6 and Spring 2.0 Thanks,
Well most examples you will find on the web makes the use of SpringMVC and it's single DispatcherServlet to handle all requests, and not too much at all using your own Servlet. But Spring does have a Servlet class that you can extend and in the init method you would override and create/setup your ApplicationContext. I recommend using an ApplicationContext instead of a BeanFactory. An ApplicationContext is an extension of BeanFactory plus a bit more, and is how Spring apps are built today.
I don't remember the exact class name of the Spring Servlet class that you can extend. I think it might be this one