Ref tag and Ref attribute Example

If there is a dependency between two objects then in the spring bean configuration file we use a tag "ref" to specify the dependencies. For example there are two objects Address and Person. Every person has an address. So we define Address object in the Person class. The way to define the dependencies between these two objects is given in the below RefTagExample.java example.
First create an Address bean under src as shown below. File: com.ram.beans.Address.java
package com.ram.beans;

public class Address {
 private String street;
 private String city;
 private String state;
 
 public String getStreet() {
  return street;
 }
 public void setStreet(String street) {
  this.street = street;
 }
 public String getCity() {
  return city;
 }
 public void setCity(String city) {
  this.city = city;
 }
 public String getState() {
  return state;
 }
 public void setState(String state) {
  this.state = state;
 }
 
 
}

Next create a Person bean under src as shown below. File: com.ram.beans.Person.java
package com.ram.beans;

public class Person {
 private String pid;
 private String name;
 private Address address;
 
 public String getPid() {
  return pid;
 }
 public void setPid(String pid) {
  this.pid = pid;
 }
 public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 public Address getAddress() {
  return address;
 }
 public void setAddress(Address address) {
  this.address = address;
 }
 
}


Next create applicationContext.xml file under src. The file is given below.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
 
 <bean id="addr" class="com.ram.beans.Address">
  <property name="street" value="Richmond"></property>
  <property name="city" value="Melbourne"></property>
  <property name="state" value="Victoria"></property>
 </bean>
 
 <bean id="person" class="com.ram.beans.Person">
  <property name="pid" value="1"></property>
  <property name="name" value="Ram"></property>
  <property name="address">
   <ref bean="addr"/>
  </property>
 </bean>
 
</beans>
Next create a main class under src as shown. File: com.ram.app.RefTagExample.java
package com.ram.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ram.beans.Address;
import com.ram.beans.Person;

public class RefTagExample {
 public static void main(String[] args) {
  ApplicationContext container = new ClassPathXmlApplicationContext("applicationContext.xml");
  Person person = container.getBean("person", Person.class);
  
  System.out.println("Person Id = "+person.getPid());  
  System.out.println("Person Name = "+person.getName());
  System.out.println("Street = "+person.getAddress().getStreet());
  System.out.println("City = "+person.getAddress().getCity());
  System.out.println("State = "+person.getAddress().getState());
 }
}

Execute RefTagExample.java file. Output is given below.
Instead of "ref" tag we can use ref attribute as shown below:
<property name="address" ref="addr"><property>

lazy-init concept

Whenever the spring container object is created based on application context it creates all the spring beans and establish the dependencies for all the beans whose scope attribute is default/singleton.

lazy-init:

This attribute takes either of the two values "true" or "false". By default it uses "false". When we specify lazy-init="false" and scope="singleton", the spring container creates the spring bean object immediately. If lazy-init="true" and scope="singleton", whenever the spring container object is created it will not create the spring bean object. It does this work whenever we call the getBean() method.
The way to define lazy-init and scope is given in the below applicationContext.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
 
 <bean id="addr" class="com.ram.beans.Address" lazy-init="true" scope="singleton">
  <property name="street" value="Richmond"></property>
  <property name="city" value="Melbourne"></property>
  <property name="state" value="Victoria"></property>
 </bean>
 
</beans>
 <bean id="addr" class="com.ram.beans.Address" lazy-init="true" scope="prototype">
 ...
</beans>

Note: If scope="prototype" then lazy-init is ineffective, that means whatever may be the value of lazy-int, spring bean object will be created.

ClassPathXmlApplicationContext Example

As part of org.springframework.context package spring has provided an interface called ApplicationContext. This interface inherits the properties of BeanFactory interface. Two classes provide the implementation of ApplicationContext interface. They are
  1. ClassPathXmlApplicationContext
  2. FileSystemXmlApplicationContext
The hierarchy of ApplicationContext interface is given in the below fig(a).
Points to ponder: Question: What is the difference between BeanFactory and ApplicationContext?
Answer: ApplicationContext is much the same as a BeanFactory. Both ApplicationContext and BeanFactory load bean definitions, wire beans together and dispatch beans when requested. But since ApplicationContext is a complete superset of BeanFactory, all the capabilities and behavior of BeanFactory apply to ApplicationContext. In addition ApplicationContext has the below features over BeanFactory.
  • Application context support internationalization (I18N).
  • Application context provides a generic way to load file resources, such as images.
  • Application context instantiate bean when container is started (if scope is set to "Singleton"), it doesn't wait for getBean to be called.
Below is a simple example of Spring ClassPathXmlApplicationContext.
First create an Address bean under src as shown below. File: com.ram.beans.Address.java
package com.ram.beans;

public class Address {
 private String street;
 private String city;
 private String state;
 
 public String getStreet() {
  return street;
 }
 public void setStreet(String street) {
  this.street = street;
 }
 public String getCity() {
  return city;
 }
 public void setCity(String city) {
  this.city = city;
 }
 public String getState() {
  return state;
 }
 public void setState(String state) {
  this.state = state;
 }
 
 
}

Next create applicationContext.xml file under src. The file is given below.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
 
 <bean id="addr" class="com.ram.beans.Address">
  <property name="street" value="Richmond"></property>
  <property name="city" value="Melbourne"></property>
  <property name="state" value="Victoria"></property>
 </bean>
 
</beans>
Next create a main class under src as shown. File: com.ram.app.ClassPathXmlAppContextExample.java
package com.ram.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ram.beans.Address;

public class ClassPathXmlAppContextExample {
 public static void main(String[] args) {
  ApplicationContext container = new ClassPathXmlApplicationContext("applicationContext.xml");
  Address address = container.getBean("addr", Address.class);
  
  System.out.println("Street = "+address.getStreet());
  System.out.println("City = "+address.getCity());
  System.out.println("State = "+address.getState());
 }
}


Execute ClassPathXmlAppContextExample.java file. Output is given below.

FileSystemResource Example

Below is a simple example of Spring FileSystemResource.
First create an Address bean under src as shown below. File: com.ram.beans.Address.java
package com.ram.beans;

public class Address {
 private String street;
 private String city;
 private String state;
 
 public String getStreet() {
  return street;
 }
 public void setStreet(String street) {
  this.street = street;
 }
 public String getCity() {
  return city;
 }
 public void setCity(String city) {
  this.city = city;
 }
 public String getState() {
  return state;
 }
 public void setState(String state) {
  this.state = state;
 }
 
 
}

Next create applicationContext.xml file under src. The file is given below.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
 
 <bean id="addr" class="com.ram.beans.Address">
  <property name="street" value="Richmond"></property>
  <property name="city" value="Melbourne"></property>
  <property name="state" value="Victoria"></property>
 </bean>
 
</beans>
Next create a main class under src as shown. File: com.ram.app.FileSystemResourceExample.java
package com.ram.app;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import com.ram.beans.Address;

public class FileSystemResourceExample {
 public static void main(String[] args){
  Resource resource = new FileSystemResource("F:\\Blogger\\applicationContext.xml");
  BeanFactory container = new XmlBeanFactory(resource);
  Object obj = container.getBean("addr");
  
  Address address = (Address) obj;
  System.out.println("Street = "+address.getStreet());
  System.out.println("City = "+address.getCity());
  System.out.println("State = "+address.getState());
 }
}

Execute FileSystemResourceExample.java file. Output is given below.

Bean Factory Example

BeanFactory is the root interface for accessing a spring bean container. The BeanFactory is the actual container which instantiates, configures, and manages a number of beans. XmlBeanFactory is a class which provides the implementation of BeanFactory interface.
Whenever we create the object to XmlBeanFactory we consider that spring container object is created. In spring we have an interface resource available in a package org.springframework.core.io package. This interface is used to deal with the resources. The classes ClassPathResource and FileSystemResource, as shown in the below Fig(a), provide the implementation of Resource interface.

FileSystemResource

FileSystemResource is a class which is used to read the contents from any resource available in the file system. A simple example on how to use FileSystemResource can be found here FileSystemResource Example

ClassPathResource

ClassPathResource is a class which is used to read the contents from the resources available in classpath of our project. An example of ClassPathResource is given below.
Below is a simple example of Spring BeanFactory.
First create an Address bean under src as shown below. File: com.ram.bean.Address.java
package com.ram.bean;

public class Address {
 private String street;
 private String city;
 private String state;
 
 public String getStreet() {
  return street;
 }
 public void setStreet(String street) {
  this.street = street;
 }
 public String getCity() {
  return city;
 }
 public void setCity(String city) {
  this.city = city;
 }
 public String getState() {
  return state;
 }
 public void setState(String state) {
  this.state = state;
 }
 
}
Next create applicationContext.xml file under src. The file is given below.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xmlns:p="http://www.springframework.org/schema/p"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
 
 <bean id="addr" class="com.ram.bean.Address">
  <property name="street" value="Richmond"></property>
  <property name="city" value="Melbourne"></property>
  <property name="state" value="Victoria"></property>
 </bean>
 
</beans>
Next create a main class under src as shown. File: com.ram.app.BeanFactoryExample.java
package com.ram.app;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import com.ram.bean.Address;

public class BeanFactoryExample {
 public static void main(String[] args){
  Resource resource = new ClassPathResource("applicationContext.xml");
  BeanFactory container = new XmlBeanFactory(resource);
  Object obj = container.getBean("addr");
  
  Address address = (Address) obj;
  System.out.println("Street = "+address.getStreet());
  System.out.println("City = "+address.getCity());
  System.out.println("State = "+address.getState());
 }
}

When we call getBean() method, spring container takes the id and creates the object of spring bean and establishes the dependencies and return the object. Execute BeanFactoryExample.java file. Output is given below.
If we call getBean() method for multiple times, spring container checks the scope attribute. If scope is not defined in the "applicationContext.xml" file, then by default the scope value is "singleton". What this means is, spring container will create the object once and every time returns the reference of same object.
If we would like to create an object every time a getBean() method is called, then specify scope="prototype" attribute. The following are the values of the scope.
  • singleton
  • prototype
  • request
  • session

Spring Architecture

Before explaining the architecture of spring and its modules lets have a look at the below diagram fig(a). According to the diagram, Module Y is dependent on Module X. The meaning of Module Y dependent on Module X is that the Module Y internal code is using the classes of Module X.
Spring framework is divided into many modules. The below two diagrams are the architecture diagrams of spring framework. The spring framework is divided into 20 different modules. Some of the main modules are Core, AOP, DAO, ORM, Context, Web and MVC module.

Core Container

Core container consists of Beans, Core, Context, Expression Language modules. IOC and Dependency Injection are covered by Beans and Core modules. The implementation of BeanFactory is provided by Bean module. Context module is dependent on Beans and Core module. The advantage of using context module is it supports internationalization. Expression Language module is used to deal with scoped variables. This Expression Language is more sophisticated than JSP expression Language expressions.

Data Access Integration

This module is used to interact with the database server by using JDBC. When we use spring DAO module, we don't need to write tedious JDBC code. Using JDBC template we can connect to the data base. Spring ORM module supports all the ORM tools. Spring ORM module has given pre-defined classes like hibernate template, JPA template etc. The OXM module provides an abstraction layer that supports Object/XML mapping implementations for JAXB, Castor, XMLBeans, JiBX and XStream. The Java Messaging Service (JMS) module contains features for producing and consuming messages. The Transaction module supports programmatic and declarative transaction management for classes that implement special interfaces and for all your POJOs (plain old Java objects).

Web

This module is divided into 4 sub modules and they are web, web-servlet, web-sturts, web-portlets. Web modile is responsible to create IoC container or Spring Container. Web-Servlet module uses MVC2 architecture. This gives the clear separation of model, view and containers. In this module we can use different view components. For example Jasper Reports, PDF generation, Excel generation etc. Web-Struts module supports integration of struts with spring. Web-portlet is a technology which is used to club multiple projects into a single view.

Test

The Test module supports the testing of Spring components with JUnit or TestNG. It provides consistent loading of Spring ApplicationContexts and caching of those contexts. It also provides mock objects that you can use to test your code in isolation.

Spring Introduction

What is Spring? Spring is an open source framework, which is light weight. It resolves commonly and repeatedly occurred problems. Spring is famous for its modularity, which means we can use only those parts of spring that we need to build our application. Rest of the parts can be ignored. Spring is more flexible when compared to Struts, because struts is a framework which is used to develop only web based applications. Whereas spring framework can be used to develop both stand alone applications as well as web based applications. Spring framework uses MVC (Model-View-Controller) architecture.
Below are the main concepts on which spring was built.

Inversion of control (IoC)

Inversion of control or IoC is the core of spring framework. As the name suggests IoC manages java objects from construction to destruction. In other words it manages the life cycle of the object. For example, a person X is supposed to do a work. Instead of person X, person Y has done the work. The outcome of the person Y work is used by person X. We call this as "Inversion of Control". In struts we create the DAO object and call the methods. If we use spring IoC, spring is responsible to create DAO class object. Developer is responsible to call the methods of DAO.

Dependency Injection (DI)

Dependency Injection (DI) is a flavor of Inversion of Control. The inversion of control is more general concept and dependency injection is a concrete form of IoC. Dependency is a process whereby objects define their dependency. There are two ways using which dependency injection can be achieved in spring. One is Setter method injection and the other is using Constructor injection.

Aspect Oriented Programming (AOP)

In simple words Aspect Oriented Programming (AOP) concept is similar to the triggers concept in data base. Using aspects Spring can add additional functionality to a method execution. This additional functionality could be before a method execution or after method execution.

Spring tutorial


Thomas Alva Edison

The Biography of Thomas Alva Edison
Edison was born -on Feb. 11, 1847 - to middle-class parents. Edison, who was the last of seven children in his family, did not learn to talk until he was almost four years of age. Immediately thereafter, he began pleading with every adult he met to explain the workings of just about everything he encountered. If they said they didn't know, he would look them straight in the eye with his deeply set and vibrant blue-green eyes and ask them "Why?" He spent only 12 weeks in a school, where his teacher lost his patience with the child’s persistent questioning and seemingly self-centered behavior. His mother became aware of the situation, she promptly withdrew him from school and began to "home-teach" him.
As a youngster he developed deep interest in world history and English literature. Due to his fondness for Shakespeare's plays, he briefly considered to become an actor. He soon gave up the idea because of his extreme shyness before every audience. He was a voracious reader. His parents taught him how to use the resources of the library. Starting from the last book on the bottom of the shelf he read every book.
At age 16, after working in a variety of telegraph offices, where he performed numerous "moonlight" experiments, he finally came up with his first authentic invention. Called an "automatic repeater," it transmitted telegraph signals between unmanned stations, allowing virtually anyone to easily and accurately translate code at their own speed and convenience. A beautifully constructed electric vote-recording machine was the first to be patented by Tom. As the machine was too advanced in those days, people could not understand its importance and hence tom could not market it. He was very disappointed by this event that he vowed he would never waste time inventing things that people would not want to buy.
During his free time, Edison soon resumed his habit of "moonlighting" with the telegraph, the quadruplex transmitter, the stock-ticker, etc. Shortly thereafter, he was absolutely astonished - in fact he nearly fainted - when a corporation paid him $40,000 for all of his rights to the latter device. In 1879, he invented the first commercially practical incandescent electric light bulb.
He has set up the world’s first full-fledged research and development center in West Orange, New Jersey. In 1890 he has developed the first vitascope or the first silent motion picture. At the turn-of-the-century, Edison invented the first practical dictaphone, mimeograph, and storage battery. After creating the "kinetiscope" and the first silent film in 1904, he went on to introduce The Great Train Robbery in 1903, which was a ten minute clip that was his first attempt to blend audio with silent moving images to produce "talking pictures." When World War I began, he was asked by the U. S. Government to focus his genius upon creating defensive devices for submarines and ships. During this time, he also perfected a number of important inventions relating to the enhanced use of rubber, concrete, and ethanol.
Edison holds 1,093 US patents in his name, as well as many patents in the United Kingdom, France, and Germany. Thomas Edison died On Oct. 18th, 1931 in New Jersey. He was 84 years of age. Shortly before passing away, he awoke from a coma and quietly whispered to his very religious and faithful wife Mina, who had been keeping a vigil all night by his side: "It is very beautiful over there...". Recognizing that his death marked the end of an era in the progress of civilization, countless individuals, communities, and corporations throughout the world dimmed their lights and, or, briefly turned off their electric power in his honor on the evening of the day he was laid to rest at his beautiful estate at Glenmont, New Jersey.
Some of the famous quotes by Edison:
  1. "Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time."
  2. "I have not failed. I've just found 10,000 ways that won't work."
  3. "Many of life's failures are people who did not realize how close they were to success when they gave up."
  4. "Genius is one percent inspiration and ninety-nine percent perspiration."
  5. "There is no substitute for hard work."
  6. "If we all did the things we are really capable of doing, we would literally astound ourselves...."

Oprah Winfrey

The Biography of Oprah Winfrey – “Believe in yourself”
She was a neglected child but went on to became an icon. She had an abusive childhood, numerous career setbacks, but we all are witness to this success story of one of the richest and most successful women in the world. Yes, we are talking about ‘Oprah Winfrey’.
Oprah Gail Winfrey was born on January 29, 1954 in a rural town to an unwed teenage mother. Initially Oprah had to stay with her grandmother as Oprah's mother moved North to find work. Her grandmother taught her to how to read at the age of three. At the very young age she started reciting poems and Bible verses in local churches. Soon the church, and the entire neighborhood knew she had a gift and was nicknamed, "The Little Speaker". When she was enrolled in school she was often promoted several grades ahead of her age because she was able to read and write at an early age.
At the age of six, Oprah was sent to live with her father but later she came back to her mother when she found out that her mother was pregnant. When Oprah was nine she was raped by her cousin. She was sexually abused by their family friend, mother’s boyfriend, her uncle and this continued for four years. She could not stand any more with the years abuse and finally at the age of thirteen she tried to run away, but she was sent to a juvenile detention home, only to be denied admission because all the beds were filled. At fourteen she became pregnant and gave birth to a child. The child died shortly after birth.
She was emotionally devastated by abuse and later the death of her child. Oprah took the death of her son as she was given a second chance in life. She has decided to get her life back on track. She was good at studies and her interest was public speaking and hence she concentrated on both of them. She again went to live with her father. Her father was very strict and made education the number-one priority for Oprah. When Oprah attended high school she knew she was certain her career would be with speaking or drama. Oprah was also elected school president as she was part of public speaking classes. One day when she was rehearsing with her drama class when a local radio station spotted her and asked her if she would like to read on radio. She readily accepted the job. Later she participated in public speaking contest and won the grand prize of scholarship in a university.
Before she completed her graduation, she was offered another job as reporter in a television channel. Very soon she was fired from her job because she was unfit for TV. This did not discourage her, as she believed in herself and she always knew she was destined for greatness. Oprah's boss set her up as a talk show host on a morning talk show called, "People Are Talking". After continuing this job for seven years, she landed in a job hosting A.M. Chicago. Very soon she changed the name of the show to “The Oprah Winfrey Show” which received higher ratings. Through her show she promoted many things on her show such as books, movie releases all of which people were eager to know what her opinions were of them. Apart from the show, she started releasing monthly magazines O:The Oprah Magazine, Oprah's Book Club (her collection of books), O at Home etc. She made her acting debut with the film “The Color Purple” directed by Steven Spielberg.
She received many awards including multiple Day Time Emmy Awards, an achievement Award from the National Academy of Television Arts and Sciences, a Jean Hersholt Humanitarian Award from the Academy Of Motion Pictures Arts And Sciences, to name a few. Oprah helped broaden not just woman's point of view and significance, but she helped to realize that every human has an importance in this world. She is inspiring millions of people across the world, discussing significant issues on her show such as equal rights toward genders, racism, poverty, and many others. She brought herself to where she is today due to her belief and willpower. Winfrey is a world icon and is one of the most successful women in the world.
Some of the famous quotes by Oprah Winfrey:
  1. "Be thankful for what you have; you'll end up having more. If you concentrate on what you don't have, you will never, ever have enough."
  2. "The more you praise and celebrate your life, the more there is in life to celebrate."
  3. "Where there is no struggle, there is no strength."
  4. "If you want your life to be more rewarding, you have to change the way you think."
  5. "Doing the best at this moment puts you in the best place for the next moment."
  6. "Whatever you fear most has no power - it is your fear that has the power. Facing the truth really will set you free."
  7. "Turn your wounds into wisdom."
  8. "You CAN have it all. You just can't have it all at once."

Michael Jordan

The Biography of Michael Jordan
Michael Jeffrey Jordan also known as “Air Jordan”, “Your Royal Airness”, “Ready For Takeoff”, “Le Wilde Bulle”, “Sir Altitude”, “MJ”, was born in Brooklyn, New York on February 17, 1963. He was the fourth of five children born to James and Deloris. His parents decided to move the family to Wilmington, North Carolina as the streets of Brooklyn were unsafe to raise a family. Michael developed interest in sports as a youngster. His father loved baseball, so Michael used to play catch in the yard with his father. Jordan developed a competitive edge at an early age. He wanted to win every game he played. As his father James later noted, "What he does have is a competition problem. He was born with that ... the person he tries to outdo most of the time is himself."
Michael idolized his older brother, Larry and followed his footsteps and started playing basketball. At Laney High School, as a sophomore, he decided to try out for the varsity team but was cut because he was raw and undersized ( 5'11" (1.80 m), he was deemed too short to play at that level). Michael went home, locked himself in his room and cried. Motivated to prove his worth, the following summer, he grew four inches and practiced tirelessly. The hard work paid off as he averaged 25 points per game in his last two years and was selected to the McDonald's All-American Team as a senior. His height is now 6 ft 6 in (1.98 m).
Following high school, he earned a basketball scholarship from North Carolina University where he would play under legendary coach Dean Smith. In his first year, he was named ACC Freshman of the Year. He would help lead the Tarheels to the 1982 NCAA Championship, making the game-winning shot. After winning the Naismith College Player of the Year award in 1984, Jordan decided to leave North Carolina to enter the NBA draft. Although he decided to leave college early, he would later return to the university in 1986 to complete his degree in geography. Drafted by the Chicago Bulls, he soon proved himself on the court. He helped the team make it to the playoffs and scored an average of 28.2 points per game that season. For his efforts, Jordan received the NBA Rookie of the Year Award and was selected for the All-Star Game. This would just be the beginning of a career filled with awards and accolades. He has won five regular season MVP awards, six NBA championships, six NBA finals MVP awards, three All-Star game MVP awards, and a defensive player of the year award.
During the 1986-1987 season, he became the first player since Wilt Chamberlin to score more than 3,000 points in a single season. The following season, Jordan received his first Most Valuable Player Award from NBA—an honor he would earn four more times in 1991, 1992, 1996, and 1998. In 1993, his father was murdered by two locals who robbed him shot him in the chest and threw his body in a swamp. After this incident, Jordan announced his retirement from basketball citing that "he no longer had the desire to play. In 1995 Jordan, sent two important words to media sources everywhere: "I'm Back". He celebrated his return to the NBA by doing what he always did best: winning. Although the Bulls would lose in the playoffs to the Orlando Magic, it was obvious that Jordan was still the same superstar player. He would go on to lead the Bulls to three more consecutive NBA championships and etch his place in the history as the "NBA's greatest player of all-time".
Some of the famous quotes by Michael Jordan:
  1. I've missed more than 9000 shots in my career. I've lost almost 300 games. 26 times, I've been trusted to take the game winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed.
  2. If you're trying to achieve, there will be roadblocks. I've had them; everybody has had them. But obstacles don't have to stop you. If you run into a wall, don't turn around and give up. Figure out how to climb it, go through it, or work around it.
  3. "If you accept the expectations of others, especially negative ones, then you never will change the outcome."
  4. "I can accept failure, everyone fails at something. But I can't accept not trying."
  5. "Some people want it to happen, some wish it would happen, others make it happen."
  6. "I've always believed that if you put in the work, the results will come."
  7. "The game has its ups and downs, but you can never lose focus of your individual goals and you can't let yourself be beat because of lack of effort."
  8. "Talent wins games, but teamwork and intelligence wins championships."

Walt Disney

The Biography of Walt Disney – “Never give up attitude”
We all know about Walt Disney as we grew up watching cartoons created by him. Like every human being he too had to face many obstacles in life, but he gained success by hard work and determination. Here is a short biography of Walt Disney which motivates us to do better in our day to day chores of life.
Walter Elias Disney was born on December 5, 1901 in Chicago Illinois. Walt was interested in art and drawing at a very early age. He sold some of his drawings and sketches to his neighbors when he was just seven. He attended McKinley High School where his interests were divided between drawing and photography. He also contributed to the school paper with his drawings. Walt wanted to improve his drawing abilities, so he attended night classes at Academy of Fine Arts. He wanted to join army at the age of sixteen and hence he dropped out of the school. But to his dismay he was rejected for being underage. Rejection by the army made him join red cross and he was sent to France. He had to drive ambulance for one year. He had to return from France after the World War I ended. Walt was under the dilemma whether to become an actor or a newspaper artist. He decided to pursue a career as a newspaper artist. He was fired from a newspaper because he lacked imagination and had no original ideas. Nobody wanted to hire him as either an artist or even as an ambulance driver.
With his brothers help he was a able to get a temporary job at a studio. Later he has decided to start his own commercial company (Laugh-O-Grams) along with a friend after their time at temporary job at studio expired. Walt produced short animated films and one such film was “The Alice Comedies”. He could not finish the project as he ran out of money and hence his company went bankrupted. He never gave up.
Failure has made him strong and he was not afraid of failure anymore. He packed his bags with his unfinished Alice project and went to Hollywood to start a new business. It was risky as he was just twenty two years old by that time. His brother has come to his rescue again by lending him some money. They had set up a shop in their uncle’s garage. Soon they received orders from New York for an animation project. He has the endless drive to perfect the art of animation. His enthusiasm and faith in himself and others took him straight to the top of Hollywood society. He wanted to open an amusement park where children with their parents can come and enjoy the rides and meet the animated characters they know and all this in a clean and safe environment. This dream has come true in the year 1955 as a Disneyland Park. It was another great success. Famous Disney characters are Mickey Mouse, Goofy, Pluto, Donald Duck, Aladdin, Cinderella, characters in Duck Tales, characters in Tales Spin, The Jungle Book etc.
Walt Disney, along with members of his staff, received more than 950 honors and citations from every nation in the world, including 48 Academy Awards and 7 Emmys in his lifetime. Walt Disney's personal awards included honorary degrees from Harvard, Yale, the University of Southern California and UCLA; the Presidential Medal of Freedom; France's Legion of Honor and Officer d'Academie decorations; Thailand's Order of the Crown; Brazil's Order of the Southern Cross; Mexico's Order of the Aztec Eagle; and the Showman of the World Award from the National Association of Theatre Owners.
Some of the famous quotes by Walt Disney:
  1. "All our dreams can come true, if we have the courage to pursue them."
  2. "The way to get started is to quit talking and begin doing."
  3. "When you believe in a thing, believe in it all the way, implicitly and unquestionable."
  4. "You reach a point where you don't work for money."
  5. "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths."
  6. "All the adversity I've had in my life, all my troubles and obstacles, have strengthened me... You may not realize it when it happens, but a kick in the teeth may be the best thing in the world for you."
  7. "It’s kind of fun to do the impossible."

Inspiration and Motivation stories

I have started the "Inspiration and Motivation" series when I was working for Infosys. I have received a good feedback back then and now I would like to continue the series here in my blog. Every month a new inspiring and motivating story with quotations would be published.
Enjoy reading :)

Home