Posts

Advanced Java Session 2 (Conecpt of IOC And Dependency Injection And Maven)

1.What is IOC Inversion of control means the program delegates control to someone else who will drive the flow. IOC (Inversion of control) is a general parent term while DI (Dependency injection) is a subset of IOC. IOC is a container responsible to instantiate, configure and assemble the objects. The IoC container gets informations from the XML file and works accordingly. The main tasks performed by IoC container are: to instantiate the application class to configure the object to assemble the dependencies between the objects There are two types of IoC containers. They are: 1.       BeanFactory 2.       ApplicationContext       2.Difference between BeanFactory and the ApplicationContext The org.springframework.beans.factory. BeanFactory  and the org.springframework.context. ApplicationContext  interfaces acts as the IoC container. The ApplicationContext interface is built o...

Advanced Java Session 1 (Concept of Web Application Basics And Advantages of Spring)

Image
Web application Structure -Applications can run on multiple machine at same time are called web application. -Web application contains Client server architecture. -Client (browser) (google chrome, firefox) -Server (apache tomcat, glassfish, websphere, weblogic) -After creating web application, you upload that application to server (means keeping project folder in web app folder of tomcat software folder). -Start server from ide. -Goto browser and hit the application url, then your application will run on browser.       HTTP Protocol Basics -This is request response protocol, widely used.   Protocol : Protocol means, a system of rules that allows two or more hosts for communications.   Stateless protocol: When web client send the request to web server, then the web server, process the request and send the response to the web client, and after this connection is closed, this is called http transaction, then again at next request sent by webclient to webserver, the...

What is model version in pom file, and How to check maven version of our project ?

What is model version in pom file ? model version is  the version of project descriptor your POM compatible to . It needs to be included and is set. The value 4.0. 0 just indicated that it is compatible Maven 3. How to check maven version of project ? In eclipse, right click on the project->run as->run configurations – select project in Maven Build  section on the left, give project name in name, project workspace in base directory, give –verison in goals, and click on run,   This gives me the following output: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11 10T11:41:47-05:00) Maven home: C:\Program Files\Java\apache-maven-3.3.9 Java version: 1.7.0_80, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_80\jre Default locale: en_US, platform encoding: UTF-8 OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows" ...