├── .brackets.json ├── .gitignore ├── 404.html ├── CNAME ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── _config.yml ├── _data └── courselist.yml ├── _includes ├── step.html └── youtube.html ├── _layouts ├── blank.html ├── blog-post.html ├── in_progress.html ├── post_only.html └── quiz.html ├── _posts ├── content │ ├── blog │ │ └── 2014-01-01-new-site.markdown │ ├── hibernate_intro │ │ ├── 2011-06-16-Introduction-To-Hibernate.markdown │ │ ├── 2011-06-17-Hibernate-Tutorial-02---Setting-Up-Hibernate.markdown │ │ ├── 2011-06-18-Hibernate-Tutorial-03-Part-1--Writing-a-Hibernate-Application.markdown │ │ ├── 2011-06-19-Hibernate-Tutorial-03-Part-2--Writing-the-Model-Class-with-Annotations.markdown │ │ ├── 2011-06-20-Hibernate-Tutorial-03-Part-3--Saving-Objects-using-Hibernate-APIs.markdown │ │ ├── 2011-06-21-Hibernate-Tutorial-04---hbm2ddl-Configuration-and-Name-Annotations.markdown │ │ ├── 2011-07-12-Hibernate-Tutorial-05---More-Annotations.markdown │ │ ├── 2011-07-13-Hibernate-Tutorial-06---Retrieving-Objects-using-session.get.markdown │ │ ├── 2011-07-14-Hibernate-Tutorial-07---Primary-Keys.markdown │ │ ├── 2011-07-15-Hibernate-Tutorial-08---Value-Types-and-Embedding-Objects.markdown │ │ ├── 2011-07-16-Hibernate-Tutorial-09---AttributeOverrides-and-Embedded-Object-Keys.markdown │ │ ├── 2011-07-17-Hibernate-Tutorial-10---Saving-Collections.markdown │ │ ├── 2011-07-18-Hibernate-Tutorial-11---Configuring-Collections-and-Adding-Keys.markdown │ │ ├── 2011-07-19-Hibernate-Tutorial-12---Proxy-Objects-and-Eager-and-Lazy-Fetch-Types.markdown │ │ ├── 2011-07-20-Hibernate-Tutorial-13---One-To-One-Mapping.markdown │ │ ├── 2011-07-21-Hibernate-Tutorial-14---One-To-Many-Mapping.markdown │ │ ├── 2011-07-22-Hibernate-Tutorial-15---mappedBy-and-Many-To-Many-Mapping.markdown │ │ ├── 2011-07-23-Hibernate-Tutorial-16---CascadeTypes-and-Other-Things.markdown │ │ ├── 2011-07-24-Hibernate-Tutorial-17---Implementing-Inheritance.markdown │ │ ├── 2011-07-25-Hibernate-Tutorial-18---Implementing-Inheritance---Single-Table-Strategy.markdown │ │ ├── 2011-07-26-Hibernate-Tutorial-19---Implementing-Inheritance-With-Table-Per-Class-St....markdown │ │ └── 2011-07-27-Hibernate-Tutorial-20---Implementing-Inheritance-With-Joined-Strategy.markdown │ ├── hibernate_run │ │ ├── 2011-07-12-Hibernate-Tutorial-21---CRUD-Operations.markdown │ │ ├── 2011-07-13-Hibernate-Tutorial-22---Transient,-Persistent-and-Detached-Objects.markdown │ │ ├── 2011-07-14-Hibernate-Tutorial-23---Understanding-State-Changes.markdown │ │ ├── 2011-07-15-Hibernate-Tutorial-24---Persisting-Detached-Objects.markdown │ │ ├── 2011-07-16-Hibernate-Tutorial-25---Introducing-HQL-and-the-Query-Object.markdown │ │ ├── 2011-07-17-Hibernate-Tutorial-26---Select-and-Pagination-in-HQL.markdown │ │ ├── 2011-07-18-Hibernate-Tutorial-27---Understanding-Parameter-Binding-and-SQL-Injection.markdown │ │ ├── 2011-07-19-Hibernate-Tutorial-28---Named-Queries.markdown │ │ ├── 2011-07-20-Hibernate-Tutorial-29---Introduction-to-Criteria-API.markdown │ │ ├── 2011-07-21-Hibernate-Tutorial-30---Understanding-Restrictions.markdown │ │ ├── 2011-07-22-Hibernate-Tutorial-31---Projections-and-Query-By-Example.markdown │ │ ├── 2011-07-23-Hibernate-Tutorial-32---Cacheing-in-Hibernate.markdown │ │ ├── 2011-07-24-Hibernate-Tutorial-33---Configuring-Second-Level-Cache.markdown │ │ └── 2011-07-25-Hibernate-Tutorial-34---Using-Query-Cache.markdown │ ├── javaee_jaxrs │ │ ├── 2014-08-30-Introduction.markdown │ │ ├── 2014-10-03-REST-and-HTTP.markdown │ │ ├── 2014-10-04-Quiz-REST-and-HTTP.markdown │ │ ├── 2014-10-05-Answers-REST-and-HTTP.markdown │ │ ├── 2014-10-12-Designing-Resource-URIs.markdown │ │ ├── 2014-10-13-Quiz-Designing-Resource-URIs copy.markdown │ │ ├── 2014-10-14-Answers-Designing-Resource-URIs.markdown │ │ ├── 2014-10-28-RESTful-URI-types.markdown │ │ ├── 2014-10-29-Quiz-RESTful-URI-types.markdown │ │ ├── 2014-10-30-Answers-RESTful-URI-types.markdown │ │ ├── 2014-11-07-HTTP-Methods.markdown │ │ ├── 2014-11-08-Quiz-HTTP-Methods.markdown │ │ ├── 2014-11-09-Answers-HTTP-Methods.markdown │ │ └── 2016-01-01-Coming-Soon.markdown │ ├── javaee_jaxws │ │ ├── 2013-06-16-Introduction-to-Web-Services.markdown │ │ ├── 2013-06-17-Web-Service-Jargon.markdown │ │ ├── 2013-06-21-Writing-a-Web-service-Client:-Stub-generation.markdown │ │ ├── 2013-06-22-Writing-a-Web-service-Client:-Calling-the-Service.markdown │ │ ├── 2013-06-24-Setting-up-Java-EE-7-SDK.markdown │ │ ├── 2013-07-04-Writing-a-Web-Service:-Eclipse-setup.markdown │ │ ├── 2013-07-05-Writing-a-Web-Service:-Code-and-Deploy.markdown │ │ ├── 2013-07-20-Adding-Input-Arguments.markdown │ │ ├── 2013-08-09-Service-First-and-Contract-First-Web-Services.markdown │ │ ├── 2013-08-17-Understanding-the-WSDL.markdown │ │ ├── 2013-08-19-Customizing-the-WSDL.markdown │ │ ├── 2013-08-21-Schema-Types-and-Binding-Styles.markdown │ │ ├── 2013-09-07-Service-Interface-and-Custom-Types.markdown │ │ ├── 2013-09-08-Using-JAXB-Annotations-Part-1.markdown │ │ ├── 2013-09-09-Using-JAXB-Annotations---Part-2.markdown │ │ ├── 2013-09-25-Handling-Faults.markdown │ │ ├── 2013-10-18-Using-SoapUI.markdown │ │ ├── 2014-01-01-Using-Web-Service-explorer.md │ │ ├── 2014-01-02-Using-Endpoint.md │ │ └── 2014-01-03-wsimport-revisited.md │ ├── jsps_intro │ │ ├── 2011-06-03-JSPs-and-Servlets-Tutorial-10---Hello-JSP.markdown │ │ ├── 2011-06-04-JSPs-and-Servlets-Tutorial-11---Understanding-the-JSP.markdown │ │ ├── 2011-06-05-JSPs-and-Servlets-Tutorial-12---JSP-Page-Directives.markdown │ │ ├── 2011-06-06-JSPs-and-Servlets-Tutorial-13---Scopes-in-JSP-and-the-PageContext-object.markdown │ │ ├── 2011-06-07-JSPs-and-Servlets-Tutorial-14---Using-jspInit-and-InitParams.markdown │ │ ├── 2011-06-08-JSPs-and-Servlets-Tutorial-15---Understanding-the-MVC-Pattern.markdown │ │ ├── 2011-06-09-JSPs-and-Servlets-Tutorial-16-Part-1--Writing-an-MVC-Application.markdown │ │ ├── 2011-06-10-JSPs-and-Servlets-Tutorial-16-Part-2--Writing-an-MVC-Application.markdown │ │ ├── 2011-06-11-JSPs-and-Servlets-Tutorial-16-Part-3--Using-Model-object-in-the-MVC-Application.markdown │ │ ├── 2011-06-12-JSPs-and-Servlets-Tutorial-16-Part-4--Using-RequestDispatcher-in-the-MVC-Application.markdown │ │ ├── 2011-06-13-JSPs-and-Servlets-Tutorial-17---Introduction-to-JSTL-and-the-useBean-tag.markdown │ │ └── 2011-06-14-JSPs-and-Servlets-Tutorial-18---Request-Parameters-with-the-setProperty-tag.markdown │ ├── maven_intro │ │ ├── 2011-06-03-Maven-Tutorial-01-Part-1--Introduction-and-Setting-up.markdown │ │ ├── 2011-06-04-Maven-Tutorial-01-Part-2--Introduction-and-Setting-up.markdown │ │ ├── 2011-06-05-Maven-Tutorial-02--Understanding-Archetypes-and-pom.xml.markdown │ │ ├── 2011-06-06-Maven-Tutorial-03--Maven-Build-Phases.markdown │ │ ├── 2011-06-16-Maven-Tutorial-04---Adding-a-Dependency.markdown │ │ ├── 2011-06-17-Maven-Tutorial-05---A-Web-Application-Using-Maven.markdown │ │ ├── 2011-06-18-Maven-Tutorial-06---Introduction-to-Plugins-with-the-Maven-Compiler-Plugin.markdown │ │ ├── 2011-06-19-Maven-Tutorial-07---Using-the-Jetty-Plugin.markdown │ │ └── 2011-06-20-Maven-Tutorial-08---Eclipse-Plugin-for-Maven-and-Maven-Plugin-for-Eclipse.markdown │ ├── servlets_intro │ │ ├── 2011-06-03-JSPs-and-Servlets-Tutorial-01---Setting-up.markdown │ │ ├── 2011-06-04-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-1.markdown │ │ ├── 2011-06-05-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-2.markdown │ │ ├── 2011-06-06-JSPs-and-Servlets-Tutorial-03---Understanding-the-Servlet.markdown │ │ ├── 2011-06-07-JSPs-and-Servlets-Tutorial-04---Servlet-XML-Configuration.markdown │ │ ├── 2011-06-08-JSPs-and-Servlets-Tutorial-05---The-POST-Method-and-Passing-Parameters.markdown │ │ ├── 2011-06-09-JSPs-and-Servlets-Tutorial-06---Passing-More-Parameters.markdown │ │ ├── 2011-06-10-JSPs-and-Servlets-Tutorial-07---Understanding-GET-and-POST.markdown │ │ ├── 2011-06-11-JSPs-and-Servlets-Tutorial-08---Request,-Session-and-Context.markdown │ │ └── 2011-06-12-JSPs-and-Servlets-Tutorial-09---Understanding-init,-service-and-ServletConfig.markdown │ ├── spring_aop │ │ ├── 2012-01-31-Spring-Tutorial-24---Introduction-to-AOP.markdown │ │ ├── 2012-01-31-Spring-Tutorial-25---Setting-Up-AOP-Dependencies.markdown │ │ ├── 2012-01-31-Spring-Tutorial-26---Writing-Our-First-Aspect-Part-1.markdown │ │ ├── 2012-01-31-Spring-Tutorial-27---Writing-Our-First-Aspect-Part-2.markdown │ │ ├── 2012-01-31-Spring-Tutorial-28---Pointcuts-and-Wildcard-Expressions.markdown │ │ ├── 2012-01-31-Spring-Tutorial-29---A-Few-More-Pointcut-Expressions.markdown │ │ ├── 2012-01-31-Spring-Tutorial-30---JoinPoints-and-Advice-Arguments.markdown │ │ ├── 2012-01-31-Spring-Tutorial-31---After-Advice-Types.markdown │ │ ├── 2012-01-31-Spring-Tutorial-32---Around-Advice-Type.markdown │ │ ├── 2012-01-31-Spring-Tutorial-33---Naming-Conventions-and-Custom-Advice-Annotations.markdown │ │ ├── 2012-01-31-Spring-Tutorial-34---AOP-XML-configuration.markdown │ │ └── 2012-01-31-Spring-Tutorial-35---Understanding-AOP-Proxies.markdown │ ├── spring_core │ │ ├── 2011-08-11-Spring-Tutorial-17---Coding-To-Interfaces.markdown │ │ ├── 2011-08-11-Spring-Tutorial-18---Introduction-to-Annotations-and-the-Required-Annota....markdown │ │ ├── 2011-08-11-Spring-Tutorial-19---The-Autowired-Annotation.markdown │ │ ├── 2011-08-11-Spring-Tutorial-20---Some-JSR-250-Annotations.markdown │ │ ├── 2011-08-11-Spring-Tutorial-21---Component-and-Stereotype-Annotations.markdown │ │ ├── 2011-08-11-Spring-Tutorial-22---Using-MessageSource-To-Get-Text-From-Property-Files.markdown │ │ ├── 2011-08-11-Spring-Tutorial-23---Event-Handling-in-Spring.markdown │ │ ├── 2013-05-18-Setting-Up.markdown │ │ ├── 2013-05-19-Understanding-Spring-Bean-Factory.markdown │ │ ├── 2013-05-20-ApplicationContext-and-Property-Initialization.markdown │ │ ├── 2013-05-20-Bean-Autowiring.markdown │ │ ├── 2013-05-20-Bean-Definition-Inheritance.markdown │ │ ├── 2013-05-20-Initializing-Collections.markdown │ │ ├── 2013-05-20-Injecting-Objects.markdown │ │ ├── 2013-05-20-Inner-Beans,-Aliases-and-idref.markdown │ │ ├── 2013-05-20-Lifecycle-Callbacks.markdown │ │ ├── 2013-05-20-Understanding-Bean-Scopes.markdown │ │ ├── 2013-05-20-Using-ApplicationContextAware.markdown │ │ ├── 2013-05-20-Using-Constructor-Injection.markdown │ │ ├── 2013-05-20-Writing-Code-Using-the-Bean-Factory.markdown │ │ ├── 2013-05-20-Writing-a-BeanFactoryPostProcessor.markdown │ │ ├── 2013-05-20-Writing-a-BeanPostProcessor.markdown │ │ └── 2013-06-15-Understanding-Dependency-Injection.markdown │ ├── spring_data │ │ ├── 2012-01-31-Spring-Tutorial-36---Introduction-to-Spring-Data-and-Setting-Up.markdown │ │ ├── 2012-01-31-Spring-Tutorial-37---Using-JDBC-without-Spring.markdown │ │ ├── 2012-01-31-Spring-Tutorial-38---Adding-Spring-and-DataSource-Configuration.markdown │ │ ├── 2012-01-31-Spring-Tutorial-39---Using-JdbcTemplate.markdown │ │ ├── 2012-01-31-Spring-Tutorial-40---Returning-Other-Datatypes-from-JdbcTemplate.markdown │ │ ├── 2012-01-31-Spring-Tutorial-41---Implementing-RowMapper.markdown │ │ ├── 2012-01-31-Spring-Tutorial-42---Performing-Write-Operations-with-JdbcTemplate.markdown │ │ ├── 2012-01-31-Spring-Tutorial-43---Named-Parameter-JDBC-Template.markdown │ │ ├── 2012-01-31-Spring-Tutorial-44---DAO-Support-Classes.markdown │ │ └── 2012-01-31-Spring-Tutorial-45---Using-Hibernate-with-Spring.markdown │ └── struts2_intro │ │ ├── 2012-01-31-Struts-2-Tutorial-01---Introduction-To-MVC.markdown │ │ ├── 2012-01-31-Struts-2-Tutorial-02---Introduction-to-Struts-2.markdown │ │ ├── 2012-02-09-Struts-2-Tutorial-04-Part-1---Writing-a-Struts-2-Application.markdown │ │ ├── 2012-02-09-Struts-2-Tutorial-04-Part-2---Writing-a-Struts-2-Application.markdown │ │ ├── 2012-02-14-Struts-2-Tutorial-05---Understanding-Namespaces.markdown │ │ ├── 2012-02-20-Struts-2-Tutorial-03---Setting-Up.markdown │ │ ├── 2012-04-08-Struts-2-Tutorial-06---A-Tag-And-A-Business-Service.markdown │ │ ├── 2012-04-15-Struts-2-Tutorial-07---The-ValueStack.markdown │ │ ├── 2012-07-17-Struts-2-Tutorial-08---Accessing-Input-Parameters.markdown │ │ ├── 2012-07-17-Struts-2-Tutorial-09---Post-requests-to-actions.markdown │ │ ├── 2012-07-17-Struts-2-Tutorial-10---Login-Action-and-Best-Practices.markdown │ │ ├── 2012-07-17-Struts-2-Tutorial-11---Login-Action-and-Best-Practices-Part-2.markdown │ │ ├── 2012-07-28-Struts-2-Tutorial-12---Action-Wildcards.markdown │ │ ├── 2012-09-01-Struts-2-Tutorial-13---The-ActionSupport-Class.markdown │ │ ├── 2012-10-02-Struts-2-Tutorial-14---Configuring-methods-in-Action-mappings.markdown │ │ ├── 2012-10-30-Struts-2-Tutorial-15---Using-Model-Objects.markdown │ │ ├── 2013-02-05-Struts-2-Tutorial-16---Introducing-Interceptors.markdown │ │ ├── 2013-03-31-Struts-2-Tutorial-17---Configuring-Interceptors.markdown │ │ └── 2013-04-15-Anatomy-of-an-Interceptor.markdown └── tutorials │ ├── blog │ └── 2014-01-01-new-site.markdown │ ├── hibernate_intro │ ├── 2011-06-16-Introduction-To-Hibernate.markdown │ ├── 2011-06-17-Hibernate-Tutorial-02---Setting-Up-Hibernate.markdown │ ├── 2011-06-18-Hibernate-Tutorial-03-Part-1--Writing-a-Hibernate-Application.markdown │ ├── 2011-06-19-Hibernate-Tutorial-03-Part-2--Writing-the-Model-Class-with-Annotations.markdown │ ├── 2011-06-20-Hibernate-Tutorial-03-Part-3--Saving-Objects-using-Hibernate-APIs.markdown │ ├── 2011-06-21-Hibernate-Tutorial-04---hbm2ddl-Configuration-and-Name-Annotations.markdown │ ├── 2011-07-12-Hibernate-Tutorial-05---More-Annotations.markdown │ ├── 2011-07-13-Hibernate-Tutorial-06---Retrieving-Objects-using-session.get.markdown │ ├── 2011-07-14-Hibernate-Tutorial-07---Primary-Keys.markdown │ ├── 2011-07-15-Hibernate-Tutorial-08---Value-Types-and-Embedding-Objects.markdown │ ├── 2011-07-16-Hibernate-Tutorial-09---AttributeOverrides-and-Embedded-Object-Keys.markdown │ ├── 2011-07-17-Hibernate-Tutorial-10---Saving-Collections.markdown │ ├── 2011-07-18-Hibernate-Tutorial-11---Configuring-Collections-and-Adding-Keys.markdown │ ├── 2011-07-19-Hibernate-Tutorial-12---Proxy-Objects-and-Eager-and-Lazy-Fetch-Types.markdown │ ├── 2011-07-20-Hibernate-Tutorial-13---One-To-One-Mapping.markdown │ ├── 2011-07-21-Hibernate-Tutorial-14---One-To-Many-Mapping.markdown │ ├── 2011-07-22-Hibernate-Tutorial-15---mappedBy-and-Many-To-Many-Mapping.markdown │ ├── 2011-07-23-Hibernate-Tutorial-16---CascadeTypes-and-Other-Things.markdown │ ├── 2011-07-24-Hibernate-Tutorial-17---Implementing-Inheritance.markdown │ ├── 2011-07-25-Hibernate-Tutorial-18---Implementing-Inheritance---Single-Table-Strategy.markdown │ ├── 2011-07-26-Hibernate-Tutorial-19---Implementing-Inheritance-With-Table-Per-Class-St....markdown │ └── 2011-07-27-Hibernate-Tutorial-20---Implementing-Inheritance-With-Joined-Strategy.markdown │ ├── hibernate_run │ ├── 2011-07-12-Hibernate-Tutorial-21---CRUD-Operations.markdown │ ├── 2011-07-13-Hibernate-Tutorial-22---Transient,-Persistent-and-Detached-Objects.markdown │ ├── 2011-07-14-Hibernate-Tutorial-23---Understanding-State-Changes.markdown │ ├── 2011-07-15-Hibernate-Tutorial-24---Persisting-Detached-Objects.markdown │ ├── 2011-07-16-Hibernate-Tutorial-25---Introducing-HQL-and-the-Query-Object.markdown │ ├── 2011-07-17-Hibernate-Tutorial-26---Select-and-Pagination-in-HQL.markdown │ ├── 2011-07-18-Hibernate-Tutorial-27---Understanding-Parameter-Binding-and-SQL-Injection.markdown │ ├── 2011-07-19-Hibernate-Tutorial-28---Named-Queries.markdown │ ├── 2011-07-20-Hibernate-Tutorial-29---Introduction-to-Criteria-API.markdown │ ├── 2011-07-21-Hibernate-Tutorial-30---Understanding-Restrictions.markdown │ ├── 2011-07-22-Hibernate-Tutorial-31---Projections-and-Query-By-Example.markdown │ ├── 2011-07-23-Hibernate-Tutorial-32---Cacheing-in-Hibernate.markdown │ ├── 2011-07-24-Hibernate-Tutorial-33---Configuring-Second-Level-Cache.markdown │ └── 2011-07-25-Hibernate-Tutorial-34---Using-Query-Cache.markdown │ ├── javaee_jaxrs │ ├── 2014-08-30-Introduction.markdown │ ├── 2014-10-03-REST-and-HTTP.markdown │ ├── 2014-10-04-Quiz-REST-and-HTTP.markdown │ ├── 2014-10-05-Answers-REST-and-HTTP.markdown │ ├── 2014-10-12-Designing-Resource-URIs.markdown │ ├── 2014-10-13-Quiz-Designing-Resource-URIs.markdown │ ├── 2014-10-14-Answers-Designing-Resource-URIs.markdown │ ├── 2014-10-28-RESTful-URI-types.markdown │ ├── 2014-10-29-Quiz-RESTful-URI-types.markdown │ ├── 2014-10-30-Answers-RESTful-URI-types.markdown │ ├── 2014-11-07-HTTP-Methods.markdown │ ├── 2014-11-08-Quiz-HTTP-Methods.markdown │ ├── 2014-11-09-Answers-HTTP-Methods.markdown │ └── 2016-01-01-Coming-Soon.markdown │ ├── javaee_jaxws │ ├── 2013-06-16-Introduction-to-Web-Services.markdown │ ├── 2013-06-17-Web-Service-Jargon.markdown │ ├── 2013-06-21-Writing-a-Web-service-Client:-Stub-generation.markdown │ ├── 2013-06-22-Writing-a-Web-service-Client:-Calling-the-Service.markdown │ ├── 2013-06-24-Setting-up-Java-EE-7-SDK.markdown │ ├── 2013-07-04-Writing-a-Web-Service:-Eclipse-setup.markdown │ ├── 2013-07-05-Writing-a-Web-Service:-Code-and-Deploy.markdown │ ├── 2013-07-20-Adding-Input-Arguments.markdown │ ├── 2013-08-09-Service-First-and-Contract-First-Web-Services.markdown │ ├── 2013-08-17-Understanding-the-WSDL.markdown │ ├── 2013-08-19-Customizing-the-WSDL.markdown │ ├── 2013-08-21-Schema-Types-and-Binding-Styles.markdown │ ├── 2013-09-07-Service-Interface-and-Custom-Types.markdown │ ├── 2013-09-08-Using-JAXB-Annotations-Part-1.markdown │ ├── 2013-09-09-Using-JAXB-Annotations---Part-2.markdown │ ├── 2013-09-25-Handling-Faults.markdown │ ├── 2013-10-18-Using-SoapUI.markdown │ ├── 2014-01-01-Using-Web-Service-explorer.md │ ├── 2014-01-02-Using-Endpoint.md │ └── 2014-01-03-wsimport-revisited.md │ ├── jsps_intro │ ├── 2011-06-03-JSPs-and-Servlets-Tutorial-10---Hello-JSP.markdown │ ├── 2011-06-04-JSPs-and-Servlets-Tutorial-11---Understanding-the-JSP.markdown │ ├── 2011-06-05-JSPs-and-Servlets-Tutorial-12---JSP-Page-Directives.markdown │ ├── 2011-06-06-JSPs-and-Servlets-Tutorial-13---Scopes-in-JSP-and-the-PageContext-object.markdown │ ├── 2011-06-07-JSPs-and-Servlets-Tutorial-14---Using-jspInit-and-InitParams.markdown │ ├── 2011-06-08-JSPs-and-Servlets-Tutorial-15---Understanding-the-MVC-Pattern.markdown │ ├── 2011-06-09-JSPs-and-Servlets-Tutorial-16-Part-1--Writing-an-MVC-Application.markdown │ ├── 2011-06-10-JSPs-and-Servlets-Tutorial-16-Part-2--Writing-an-MVC-Application.markdown │ ├── 2011-06-11-JSPs-and-Servlets-Tutorial-16-Part-3--Using-Model-object-in-the-MVC-Application.markdown │ ├── 2011-06-12-JSPs-and-Servlets-Tutorial-16-Part-4--Using-RequestDispatcher-in-the-MVC-Application.markdown │ ├── 2011-06-13-JSPs-and-Servlets-Tutorial-17---Introduction-to-JSTL-and-the-useBean-tag.markdown │ └── 2011-06-14-JSPs-and-Servlets-Tutorial-18---Request-Parameters-with-the-setProperty-tag.markdown │ ├── maven_intro │ ├── 2011-06-03-Maven-Tutorial-01-Part-1--Introduction-and-Setting-up.markdown │ ├── 2011-06-04-Maven-Tutorial-01-Part-2--Introduction-and-Setting-up.markdown │ ├── 2011-06-05-Maven-Tutorial-02--Understanding-Archetypes-and-pom.xml.markdown │ ├── 2011-06-06-Maven-Tutorial-03--Maven-Build-Phases.markdown │ ├── 2011-06-16-Maven-Tutorial-04---Adding-a-Dependency.markdown │ ├── 2011-06-17-Maven-Tutorial-05---A-Web-Application-Using-Maven.markdown │ ├── 2011-06-18-Maven-Tutorial-06---Introduction-to-Plugins-with-the-Maven-Compiler-Plugin.markdown │ ├── 2011-06-19-Maven-Tutorial-07---Using-the-Jetty-Plugin.markdown │ └── 2011-06-20-Maven-Tutorial-08---Eclipse-Plugin-for-Maven-and-Maven-Plugin-for-Eclipse.markdown │ ├── servlets_intro │ ├── 2011-06-03-JSPs-and-Servlets-Tutorial-01---Setting-up.markdown │ ├── 2011-06-04-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-1.markdown │ ├── 2011-06-05-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-2.markdown │ ├── 2011-06-06-JSPs-and-Servlets-Tutorial-03---Understanding-the-Servlet.markdown │ ├── 2011-06-07-JSPs-and-Servlets-Tutorial-04---Servlet-XML-Configuration.markdown │ ├── 2011-06-08-JSPs-and-Servlets-Tutorial-05---The-POST-Method-and-Passing-Parameters.markdown │ ├── 2011-06-09-JSPs-and-Servlets-Tutorial-06---Passing-More-Parameters.markdown │ ├── 2011-06-10-JSPs-and-Servlets-Tutorial-07---Understanding-GET-and-POST.markdown │ ├── 2011-06-11-JSPs-and-Servlets-Tutorial-08---Request,-Session-and-Context.markdown │ └── 2011-06-12-JSPs-and-Servlets-Tutorial-09---Understanding-init,-service-and-ServletConfig.markdown │ ├── spring_aop │ ├── 2012-01-31-Spring-Tutorial-24---Introduction-to-AOP.markdown │ ├── 2012-01-31-Spring-Tutorial-25---Setting-Up-AOP-Dependencies.markdown │ ├── 2012-01-31-Spring-Tutorial-26---Writing-Our-First-Aspect-Part-1.markdown │ ├── 2012-01-31-Spring-Tutorial-27---Writing-Our-First-Aspect-Part-2.markdown │ ├── 2012-01-31-Spring-Tutorial-28---Pointcuts-and-Wildcard-Expressions.markdown │ ├── 2012-01-31-Spring-Tutorial-29---A-Few-More-Pointcut-Expressions.markdown │ ├── 2012-01-31-Spring-Tutorial-30---JoinPoints-and-Advice-Arguments.markdown │ ├── 2012-01-31-Spring-Tutorial-31---After-Advice-Types.markdown │ ├── 2012-01-31-Spring-Tutorial-32---Around-Advice-Type.markdown │ ├── 2012-01-31-Spring-Tutorial-33---Naming-Conventions-and-Custom-Advice-Annotations.markdown │ ├── 2012-01-31-Spring-Tutorial-34---AOP-XML-configuration.markdown │ └── 2012-01-31-Spring-Tutorial-35---Understanding-AOP-Proxies.markdown │ ├── spring_core │ ├── 2011-08-11-Spring-Tutorial-17---Coding-To-Interfaces.markdown │ ├── 2011-08-11-Spring-Tutorial-18---Introduction-to-Annotations-and-the-Required-Annota....markdown │ ├── 2011-08-11-Spring-Tutorial-19---The-Autowired-Annotation.markdown │ ├── 2011-08-11-Spring-Tutorial-20---Some-JSR-250-Annotations.markdown │ ├── 2011-08-11-Spring-Tutorial-21---Component-and-Stereotype-Annotations.markdown │ ├── 2011-08-11-Spring-Tutorial-22---Using-MessageSource-To-Get-Text-From-Property-Files.markdown │ ├── 2011-08-11-Spring-Tutorial-23---Event-Handling-in-Spring.markdown │ ├── 2013-05-18-Setting-Up.markdown │ ├── 2013-05-19-Understanding-Spring-Bean-Factory.markdown │ ├── 2013-05-20-ApplicationContext-and-Property-Initialization.markdown │ ├── 2013-05-20-Bean-Autowiring.markdown │ ├── 2013-05-20-Bean-Definition-Inheritance.markdown │ ├── 2013-05-20-Initializing-Collections.markdown │ ├── 2013-05-20-Injecting-Objects.markdown │ ├── 2013-05-20-Inner-Beans,-Aliases-and-idref.markdown │ ├── 2013-05-20-Lifecycle-Callbacks.markdown │ ├── 2013-05-20-Understanding-Bean-Scopes.markdown │ ├── 2013-05-20-Using-ApplicationContextAware.markdown │ ├── 2013-05-20-Using-Constructor-Injection.markdown │ ├── 2013-05-20-Writing-Code-Using-the-Bean-Factory.markdown │ ├── 2013-05-20-Writing-a-BeanFactoryPostProcessor.markdown │ ├── 2013-05-20-Writing-a-BeanPostProcessor.markdown │ └── 2013-06-15-Understanding-Dependency-Injection.markdown │ ├── spring_data │ ├── 2012-01-31-Spring-Tutorial-36---Introduction-to-Spring-Data-and-Setting-Up.markdown │ ├── 2012-01-31-Spring-Tutorial-37---Using-JDBC-without-Spring.markdown │ ├── 2012-01-31-Spring-Tutorial-38---Adding-Spring-and-DataSource-Configuration.markdown │ ├── 2012-01-31-Spring-Tutorial-39---Using-JdbcTemplate.markdown │ ├── 2012-01-31-Spring-Tutorial-40---Returning-Other-Datatypes-from-JdbcTemplate.markdown │ ├── 2012-01-31-Spring-Tutorial-41---Implementing-RowMapper.markdown │ ├── 2012-01-31-Spring-Tutorial-42---Performing-Write-Operations-with-JdbcTemplate.markdown │ ├── 2012-01-31-Spring-Tutorial-43---Named-Parameter-JDBC-Template.markdown │ ├── 2012-01-31-Spring-Tutorial-44---DAO-Support-Classes.markdown │ └── 2012-01-31-Spring-Tutorial-45---Using-Hibernate-with-Spring.markdown │ └── struts2_intro │ ├── 2012-01-31-Struts-2-Tutorial-01---Introduction-To-MVC.markdown │ ├── 2012-01-31-Struts-2-Tutorial-02---Introduction-to-Struts-2.markdown │ ├── 2012-02-09-Struts-2-Tutorial-04-Part-1---Writing-a-Struts-2-Application.markdown │ ├── 2012-02-09-Struts-2-Tutorial-04-Part-2---Writing-a-Struts-2-Application.markdown │ ├── 2012-02-14-Struts-2-Tutorial-05---Understanding-Namespaces.markdown │ ├── 2012-02-20-Struts-2-Tutorial-03---Setting-Up.markdown │ ├── 2012-04-08-Struts-2-Tutorial-06---A-Tag-And-A-Business-Service.markdown │ ├── 2012-04-15-Struts-2-Tutorial-07---The-ValueStack.markdown │ ├── 2012-07-17-Struts-2-Tutorial-08---Accessing-Input-Parameters.markdown │ ├── 2012-07-17-Struts-2-Tutorial-09---Post-requests-to-actions.markdown │ ├── 2012-07-17-Struts-2-Tutorial-10---Login-Action-and-Best-Practices.markdown │ ├── 2012-07-17-Struts-2-Tutorial-11---Login-Action-and-Best-Practices-Part-2.markdown │ ├── 2012-07-28-Struts-2-Tutorial-12---Action-Wildcards.markdown │ ├── 2012-09-01-Struts-2-Tutorial-13---The-ActionSupport-Class.markdown │ ├── 2012-10-02-Struts-2-Tutorial-14---Configuring-methods-in-Action-mappings.markdown │ ├── 2012-10-30-Struts-2-Tutorial-15---Using-Model-Objects.markdown │ ├── 2013-02-05-Struts-2-Tutorial-16---Introducing-Interceptors.markdown │ ├── 2013-03-31-Struts-2-Tutorial-17---Configuring-Interceptors.markdown │ └── 2013-04-15-Anatomy-of-an-Interceptor.markdown ├── about.html ├── blog.html ├── bower_components └── bootstrap-sass-official │ └── assets │ └── fonts │ └── bootstrap │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── courses.html ├── courses ├── hibernate.json ├── javaee.json ├── maven.json ├── servlets.json ├── spring.json └── struts2.json ├── data └── javaee_jaxrs │ └── quiz │ ├── designing-resource-uris.json │ ├── http-methods.json │ ├── rest-and-http.json │ └── restful-uri-types.json ├── fonts ├── Flat-UI-Icons.ttf ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf └── glyphicons-halflings-regular.woff ├── hibernate.html ├── images ├── cross.39f706da.png ├── logo.68a1f4a6.png ├── logo_bkp.a7dfc284.png ├── menu.7e146029.png └── yeoman.d2754b85.png ├── index.html ├── javaee.html ├── maven.html ├── quiz-format.json ├── robots.txt ├── scripts ├── ace.bfe78535.js ├── oldieshim.ff90b0fb.js ├── scripts.600614e2.js ├── scripts.d53f7a18.js ├── scripts.fee97393.js └── vendor.7d9cade9.js ├── servlets.html ├── spring.html ├── struts2.html ├── styles ├── main.7007f404.css ├── main.f6875fae.css └── syntax.css └── views ├── about.html ├── course.html ├── courses.html ├── directives └── global-menu.html ├── includes ├── disqus.html └── footer.html ├── main.html ├── quiz.html └── tutorial.html /.brackets.json: -------------------------------------------------------------------------------- 1 | { 2 | "jscodehints.detectedExclusions": [ 3 | "/Users/koushik/code/javabrains-site/_site/scripts/vendor.7d9cade9.js" 4 | ] 5 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _site/ -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | javabrains.koushik.org 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | gem 'github-pages' 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | javabrains-site 2 | =============== 3 | 4 | Java Brains Website 5 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | name: Java Brains 2 | markdown: redcarpet 3 | highlighter: pygments 4 | relative_permalinks: false 5 | permalink: /:categories/:title.html 6 | gems: 7 | - jekyll-redirect-from 8 | -------------------------------------------------------------------------------- /_includes/step.html: -------------------------------------------------------------------------------- 1 |
2 | Step {{include.step}}: 3 | 4 | {{include.title}} 5 | 6 |
7 | -------------------------------------------------------------------------------- /_includes/youtube.html: -------------------------------------------------------------------------------- 1 | 5 | 24 | 25 |
26 |
27 | 28 |
29 |
30 | -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-16-Introduction-To-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction To Hibernate 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-01-introduction-to.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll understand the mismatch between object and relational models and what ORM is. 11 | 12 | {% include youtube.html param="Yv2xctJxE-w" %} 13 | -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-17-Hibernate-Tutorial-02---Setting-Up-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting Up Hibernate 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-02-setting-up.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll download Hibernate and set it up in our development environment by configuring it in Eclipse. 11 | 12 | {% include youtube.html param="bzPkebUXxn0" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-18-Hibernate-Tutorial-03-Part-1--Writing-a-Hibernate-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Hibernate Application 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-03-part-1-writing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this first of a three part video on writing a simple Hibernate application from the scratch, we'll learn how to write the Hibernate configuration XML file, hibernate.cfg.xml. 11 | 12 | {% include youtube.html param="N2F1zCAf_NU" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-19-Hibernate-Tutorial-03-Part-2--Writing-the-Model-Class-with-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing the Model Class with Annotations 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-03-part-2-writing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll now create a Model class and configure it as an Entity using Annotations. 11 | 12 | {% include youtube.html param="3eXjpve0QaI" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-20-Hibernate-Tutorial-03-Part-3--Saving-Objects-using-Hibernate-APIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Saving Objects using Hibernate APIs 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-03-part-3-saving.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll learn how to instantiate Entity objects and save them to the database using Hibernate APIs. 11 | 12 | {% include youtube.html param="FFMOZY4z6bE" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-06-21-Hibernate-Tutorial-04---hbm2ddl-Configuration-and-Name-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: hbm2ddl Configuration and Name Annotations 4 | comments: false 5 | unused: 2011/06/hibernate-tutorial-04-hbm2ddl.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll look at the schema generation options in Hibernate. We'll also learn some annotations to change the default name generated by Hibernate for entities. 11 | 12 | {% include youtube.html param="iaSd_yK9xaw" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-12-Hibernate-Tutorial-05---More-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: More Annotations 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-05-more-annotations.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll try out a few more annotations to configure our entity class. 11 | 12 | {% include youtube.html param="I8YmYFI5D_E" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-13-Hibernate-Tutorial-06---Retrieving-Objects-using-session.get.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Retrieving Objects using session.get 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-06-retrieving.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll look at one of the several ways we can fetch data from the database using Hibernate: the `session.get` method. 11 | 12 | {% include youtube.html param="3FV1yv7fvDQ" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-14-Hibernate-Tutorial-07---Primary-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Primary Keys 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-07-primary-keys.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Here we'll learn how to configure the primary key in our entity class using the `@Id` annotation. 11 | 12 | {% include youtube.html param="Xuofihmkl_k" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-15-Hibernate-Tutorial-08---Value-Types-and-Embedding-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Value Types and Embedding Objects 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-08-value-types-and.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll learn the difference between Entity type objects and Value type objects. We'll use the `@Embeddable` annotation to embed a value type object into our Entity class. 11 | 12 | {% include youtube.html param="c2abcy0Q1a0" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-16-Hibernate-Tutorial-09---AttributeOverrides-and-Embedded-Object-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: AttributeOverrides and Embedded Object Keys 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-09.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this video, we'll learn how to override configuration inside embedded objects, and we'll also explore object keys. 11 | 12 | {% include youtube.html param="X8t6oYp0Uk8" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-17-Hibernate-Tutorial-10---Saving-Collections.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Saving Collections 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-10-saving.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll now learn how to save value types that are collection objects. 11 | 12 | {% include youtube.html param="hofWx5_ZN9c" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-18-Hibernate-Tutorial-11---Configuring-Collections-and-Adding-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Configuring Collections and Adding Keys 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-11-configuring.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | More configuration options for collections, including configuring primary keys. 11 | 12 | {% include youtube.html param="kk207HAym_I" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-19-Hibernate-Tutorial-12---Proxy-Objects-and-Eager-and-Lazy-Fetch-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Proxy Objects and Eager and Lazy Fetch Types 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-12-proxy-objects-and.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Hibernate manages data fetching and optimizations using proxy objects. In this tutorial, we'll learn what they are and how lazy initialization works. 11 | 12 | {% include youtube.html param="RmnrgocuivQ" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-20-Hibernate-Tutorial-13---One-To-One-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: One To One Mapping 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-13-one-to-one.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | One to one mapping of entities. 11 | 12 | {% include youtube.html param="Of7qR-WagYk" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-21-Hibernate-Tutorial-14---One-To-Many-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: One To Many Mapping 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-14-one-to-many.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | One To Many mapping of entities. 11 | 12 | {% include youtube.html param="4mANZ4MMbD4" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-22-Hibernate-Tutorial-15---mappedBy-and-Many-To-Many-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: mappedBy and Many To Many Mapping 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-15-mappedby-and-many.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Many to Many mapping of entities. 11 | 12 | {% include youtube.html param="jAi8bY-H_ek" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-23-Hibernate-Tutorial-16---CascadeTypes-and-Other-Things.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: CascadeTypes and Other Things 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-16-cascadetypes-and.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll look at some concepts like CascadeType which can be configured for entity relationships. 11 | 12 | {% include youtube.html param="K2Id3WLZWJI" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-24-Hibernate-Tutorial-17---Implementing-Inheritance.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Implementing Inheritance 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-17-implementing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | We'll understand how to configure entity classes that have an inheritance hierarchy. 11 | 12 | {% include youtube.html param="Zj1mRWfhx_Y" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-25-Hibernate-Tutorial-18---Implementing-Inheritance---Single-Table-Strategy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Single Table Strategy 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-18-implementing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Single table inheritance strategy. 11 | 12 | {% include youtube.html param="M5YrLtAHtOo" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-26-Hibernate-Tutorial-19---Implementing-Inheritance-With-Table-Per-Class-St....markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Implementing Inheritance With Table Per Class Strategy 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-19-implementing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Table per class inheritance strategy. 11 | 12 | {% include youtube.html param="qIdM4KQOtH8" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_intro/2011-07-27-Hibernate-Tutorial-20---Implementing-Inheritance-With-Joined-Strategy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Implementing Inheritance With Joined Strategy 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-20-implementing.html 6 | tags: hibernate intro 7 | categories: content hibernate_intro 8 | --- 9 | 10 | Joined inheritance strategy. 11 | 12 | {% include youtube.html param="o1b3HFIlDS0" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-12-Hibernate-Tutorial-21---CRUD-Operations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: CRUD Operations 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-21-crud-operations.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | Writing code to Create, Read, Update and Delete entities in the database. 11 | 12 | {% include youtube.html param="hDBQy-dWC0A" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-13-Hibernate-Tutorial-22---Transient,-Persistent-and-Detached-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Transient, Persistent and Detached Objects 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-22-transient.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | This tutorial discusses three important entity object states in Hibernate: Transient, Persistent and Detached. 11 | 12 | {% include youtube.html param="kZpRyEABnms" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-14-Hibernate-Tutorial-23---Understanding-State-Changes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding State Changes 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-23-understanding.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | We'll understand some of the different ways in which entity objects change from one state to another. 11 | 12 | {% include youtube.html param="sjZGFHEdD4M" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-15-Hibernate-Tutorial-24---Persisting-Detached-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Persisting Detached Objects 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-24-persisting.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | This tutorial explores a special case of object state change: from detached to persistent. 11 | 12 | {% include youtube.html param="T02FicxK_aY" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-16-Hibernate-Tutorial-25---Introducing-HQL-and-the-Query-Object.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introducing HQL and the Query Object 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-25-introducing-hql.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | Introducing HQL and using HQL to run queries on the database. 11 | 12 | {% include youtube.html param="Em4M2tUn1bU" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-17-Hibernate-Tutorial-26---Select-and-Pagination-in-HQL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Select and Pagination in HQL 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-26-select-and.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | In this tutorial we'll learn Hibernate's support for pagination. We'll also learn how to write select queries to retrieve only certain columns. 11 | 12 | {% include youtube.html param="WVHFpp8X5z0" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-18-Hibernate-Tutorial-27---Understanding-Parameter-Binding-and-SQL-Injection.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding Parameter Binding and SQL Injection 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-27-understanding.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | We'll understand how appending parameters to SQL queries causes SQL injection, and will learn how to use the Parameter Binding feature in Hibernate. 11 | 12 | {% include youtube.html param="PiahhQ0Qkak" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-19-Hibernate-Tutorial-28---Named-Queries.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Named Queries 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-28-named-queries.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | We'll learn about named queries and how to write and access named queries. We'll also write and execute a NamedNativeQuery. 11 | 12 | {% include youtube.html param="o_P-p2b_k6w" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-20-Hibernate-Tutorial-29---Introduction-to-Criteria-API.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to Criteria API 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-29-introduction-to.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | This tutorial is an introduction to the Criteria API. Yet another way to work with data in Hibernate. 11 | 12 | {% include youtube.html param="4fVlAobgQGI" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-21-Hibernate-Tutorial-30---Understanding-Restrictions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding Restrictions 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-30-understanding.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | Understanding how to apply restrictions to our queries when using Criteria. 11 | 12 | {% include youtube.html param="MzrzsKSJBt0" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-22-Hibernate-Tutorial-31---Projections-and-Query-By-Example.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Projections and Query By Example 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-31-projections-and.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn how to use Projections to fine tune the results of the Criteria API. We'll also use Query By Example (QBE) to easily specify multiple where clauses in a single example object. 11 | 12 | {% include youtube.html param="2DXjdl8gzOo" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-23-Hibernate-Tutorial-32---Cacheing-in-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Cacheing in Hibernate 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-32-cacheing-in.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn about Hibernate's cache support: both first level (Session) and second level cache. 11 | 12 | {% include youtube.html param="ISi_OkmuQbs" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-24-Hibernate-Tutorial-33---Configuring-Second-Level-Cache.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Configuring Second Level Cache 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-33-configuring.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | We'll configure EHCache as our second level cache, and then put it to work. We'll fetch an object across two sessions, and we'll see how Hibernate's second level cache comes into play to save a database query. 11 | 12 | {% include youtube.html param="TMZZg-HEjiE" %} -------------------------------------------------------------------------------- /_posts/content/hibernate_run/2011-07-25-Hibernate-Tutorial-34---Using-Query-Cache.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using Query Cache 4 | comments: false 5 | unused: 2011/07/hibernate-tutorial-34-using-query-cache.html 6 | tags: hibernate run 7 | categories: content hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn how to cache results that are fetched from the Query object. 11 | 12 | {% include youtube.html param="iwCdyr0bdkw" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-04-Quiz-REST-and-HTTP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: quiz 3 | title: Quiz 4 | comments: false 5 | categories: content javaee_jaxrs quiz 6 | dataFile: ./data/javaee_jaxrs/quiz/rest-and-http.json 7 | video: http://www.youtube.com/embed/RuICubxGvj4 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-05-Answers-REST-and-HTTP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Answers 4 | categories: content javaee_jaxrs 5 | --- 6 | 7 | REST and HTTP - Quiz Answers 8 | 9 | **Q1. What does REST stand for?** 10 | 11 | Answer: Representational State Transfer 12 | 13 | **Q2. Who coined the term REST?** 14 | 15 | Answer: Roy Fielding 16 | 17 | **Q3. Which one of these HTTP methods would you use to make the client request data from the server?** 18 | 19 | Answer: `GET` 20 | 21 | **Q4. Which one of these HTTP methods would you use to make the client submit data to the server?** 22 | 23 | Answer: `POST` 24 | 25 | **Q5. Let's say you handle a request in your web service and there is an error while you process it on the server. Which status code would you return?** 26 | 27 | Answer: `500` 28 | 29 | **Q6. Let's say you get a request for an item that's not available in the database. Which status code would you return?** 30 | 31 | Answer: `404` 32 | 33 | **Q7. When returning response in XML format, what would be the content type header value you'd need to set in the response?** 34 | 35 | Answer: `text/xml` 36 | 37 | **Q8. When returning response in JSON format, what would be the content type header value you'd need to set in the response?** 38 | 39 | Answer: `application/json` -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-13-Quiz-Designing-Resource-URIs copy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: quiz 3 | title: Quiz 4 | comments: false 5 | categories: content javaee_jaxrs quiz 6 | dataFile: ./data/javaee_jaxrs/quiz/designing-resource-uris.json 7 | video: http://www.youtube.com/embed/NjpKwiRORI4 8 | --- 9 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-14-Answers-Designing-Resource-URIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Answers 4 | categories: content javaee_jaxrs 5 | --- 6 | 7 | Designing RESTful URIs - Quiz Answers 8 | 9 | **Q1. Type in a RESTful URI for a Category with ID {categoryId}.** 10 | 11 | Answer: `/categories/{categoryId}` 12 | 13 | **Q2. What would be a good RESTful URI for a product with ID 25?** 14 | 15 | Answer: `/products/25` 16 | 17 | **Q3. What would be a RESTful URI for Product if it were a sub-resource of Category?** 18 | 19 | Answer: `/categories/{categoryId}/products/{productId}` 20 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-29-Quiz-RESTful-URI-types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: quiz 3 | title: Quiz 4 | comments: false 5 | categories: content javaee_jaxrs quiz 6 | dataFile: ./data/javaee_jaxrs/quiz/restful-uri-types.json 7 | video: http://www.youtube.com/embed/gYKJqUZXuBw 8 | --- 9 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-10-30-Answers-RESTful-URI-types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Answers 4 | categories: content javaee_jaxrs 5 | --- 6 | 7 | Collection URIs - Quiz Answers 8 | 9 | **Q1. Type in a RESTful URI that refers to all categories.** 10 | 11 | Answer: `/categories` 12 | 13 | **Q2. What would be a good RESTful URI for all products?** 14 | 15 | Answer: `/products` 16 | 17 | **Q3. What would be a RESTful URI for all Products if it were a sub-resource of Category?** 18 | 19 | Answer: `/categories/{categoryId}/products` 20 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-11-08-Quiz-HTTP-Methods.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: quiz 3 | title: Quiz 4 | comments: false 5 | categories: content javaee_jaxrs quiz 6 | dataFile: ./data/javaee_jaxrs/quiz/http-methods.json 7 | video: http://www.youtube.com/embed/AK6TulIASgQ 8 | --- 9 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxrs/2014-11-09-Answers-HTTP-Methods.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Answers 4 | categories: content javaee_jaxrs 5 | --- 6 | 7 | HTTP Methods - Quiz Answers 8 | 9 | 10 | **Q1. Which of these is a good choice for getting a list of Categories?** 11 | 12 | Answer: `GET -> /categories` 13 | 14 | **Q2. Which of these is a good choice for deleting a Product instance?** 15 | 16 | Answer: `DELETE -> /products/id` 17 | 18 | **Q3. Which of these is a good choice for updating a Product instance?** 19 | 20 | Answer: `PUT -> /products/id` 21 | 22 | **Q4. Which of these is a good choice for creating a new Product?** 23 | 24 | Answer: `POST -> /products` 25 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-06-17-Web-Service-Jargon.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Web Service Jargon 4 | comments: false 5 | unused: 2013/06/web-service-jargon.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | Let us understand few of the most important concepts and terminologies used in web service technology. 11 | 12 | {% include youtube.html param="C53G6R5EVys" %} 13 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-06-21-Writing-a-Web-service-Client:-Stub-generation.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Web service Client - Stub generation 4 | comments: false 5 | unused: 2013/06/writing-web-service-client-stub.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this video, we'll learn how to use the wsimport utility to create stubs that can be used to make web service calls. 11 | 12 | {% include youtube.html param="6hqDMS-oJ9k" %} 13 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-06-22-Writing-a-Web-service-Client:-Calling-the-Service.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Web service Client - Calling the Service 4 | comments: false 5 | unused: 2013/06/writing-web-service-client-calling.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll use the stubs generated by wsimport and implement a client application. Our IPServiceLocator program takes IP address as an input argument and makes a call to the web service to display the country name to the console. 11 | 12 | {% include youtube.html param="KFlDdb65w3U" %} 13 | 14 | **Download the code:** Click here 15 | -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-06-24-Setting-up-Java-EE-7-SDK.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting up Java EE 7 SDK 4 | comments: false 5 | unused: 2013/06/setting-up-java-ee-7-sdk.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll walk through the steps to install the Java EE 7 SDK which includes the Glassfish 4 application server installation. We'll learn some basics of how to start, stop and manage Glassfish. 11 | 12 | {% include youtube.html param="Zx6NuO6niFI" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-07-04-Writing-a-Web-Service:-Eclipse-setup.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Web Service - Eclipse setup 4 | comments: false 5 | unused: 2013/07/download-soap-web-services-06-writing.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll setup the new Eclipse Kepler, configure Glassfish and start writing the web application with which we intend to create a web service. 11 | 12 | {% include youtube.html param="9kb0iLpqKY4" %} 13 | 14 | **Download:** 15 | http://www.eclipse.org/downloads/ 16 | Make sure you choose the **Eclipse IDE for Java EE Developers** download. -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-07-05-Writing-a-Web-Service:-Code-and-Deploy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Web Service - Code and Deploy 4 | comments: false 5 | unused: 2013/07/writing-web-service-code-and-deploy.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | We'll now convert the simple Java class in the previous tutorial into a web service, deploy it to Glassfish, and test it by submitting a SOAP request to get a SOAP response. 11 | 12 | {% include youtube.html param="u5cQkVgq6jE" %} 13 | 14 | **Download the code:** Click here -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-07-20-Adding-Input-Arguments.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Adding Input Arguments 4 | comments: false 5 | unused: 2013/07/adding-input-arguments.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | We'll add an operation to our web service that takes input arguments to achieve both sending and receiving data from the web service. 11 | 12 | {% include youtube.html param="HLzM92ZnisY" %} 13 | 14 | **Download the code:** Click here -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-08-09-Service-First-and-Contract-First-Web-Services.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Service First and Contract First Web Services 4 | comments: false 5 | unused: 2013/08/service-first-and-contract-first-web.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll understand the two common methodologies for designing and writing web services - the service first (or code first) and the contract first (or WSDL first) approaches. 11 | 12 | {% include youtube.html param="S0zdMGNrxr0" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-08-17-Understanding-the-WSDL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding the WSDL 4 | comments: false 5 | unused: 2013/08/understanding-wsdl.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | Now it's time to understand what's going on in the WSDL. We'll simplify our web service code to just one method, generate the WSDL for it and understand the different elements that are generated. 11 | 12 | {% include youtube.html param="E76xW1JTVXY" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-08-19-Customizing-the-WSDL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Customizing the WSDL 4 | comments: false 5 | unused: 2013/08/customizing-wsdl.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | Having understood the important elements of the WSDL, we'll now learn some annotations that help us configure and override the various defaults that are used when the WSDL is generated. 11 | 12 | {% include youtube.html param="xq2zi_UWzUE" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-08-21-Schema-Types-and-Binding-Styles.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Schema Types and Binding Styles 4 | comments: false 5 | unused: 2013/08/schema-types-and-binding-styles.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll understand how types are handled in the WSDL. We'll also explore the two styles we can choose from for our WSDL - Document style and RPC style. 11 | 12 | {% include youtube.html param="rHJ1v1jsAao" %} -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-09-07-Service-Interface-and-Custom-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Service Interface and Custom Types 4 | comments: false 5 | unused: 2013/08/service-interface-and-custom-types.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | We'll make a couple of changes to the sample web service we've been developing all along. First, we will see what happens when a custom Java data type needs to be exchanged as a part of a web service operation. Then, we'll create a web service endpoint interface that our class implements. 11 | 12 | {% include youtube.html param="QFq4Ue_jExY" %} 13 | 14 | **Update:** You cannot take every annotation property in the impl class and include it in the interface. Some annotation properties should be used on the impl class and are not allowed on endpoint interfaces. And vice-versa, some are to be used only on the interface. 15 | 16 | Refer to the Java Docs for WebService and WebMethod annotations to find out which to use where. 17 | 18 | WebService page 19 | 20 | WebMethod page 21 | 22 | Thanks to Anupama for looking that up and letting me know in the comments. See next tutorial for more details. -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-09-08-Using-JAXB-Annotations-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using JAXB Annotations Part 1 4 | comments: false 5 | unused: 2013/09/using-jaxb-annotations-part-1.html 6 | tags: javaee jaxws 7 | categories: content javaee_jaxws 8 | --- 9 | 10 | In this tutorial we'll understand how an XML binding framework like JAXB works to help convert our object instances to XML. 11 | 12 | {% include youtube.html param="wireYD00xkw" %} 13 | 14 | **Update:** You cannot take every annotation property in the impl class and include it in the interface. Some annotation properties should be used on the impl class and are not allowed on endpoint interfaces. And vice-versa, some are to be used only on the interface. 15 | 16 | Refer to the Java Docs for WebService and WebMethod annotations to find out which to use where. 17 | 18 | WebService page 19 | 20 | WebMethod page 21 | 22 | Thanks to Anupama for looking that up and letting me know in the comments. -------------------------------------------------------------------------------- /_posts/content/javaee_jaxws/2013-10-18-Using-SoapUI.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using SoapUI 4 | unused: 2013/10/using-soapui.html 5 | tags: javaee jaxws 6 | categories: content javaee_jaxws 7 | 8 | --- 9 | 10 | This is a quick introduction to a web service testing tool called SoapUI. We use this tool to test our web service without having to use the Glassfish tester page. In this video, you'll learn how to install the SoapUI plugin in eclipse, create a new project and make a SOAP web service call from it. 11 | 12 | {% include youtube.html param="CAHMJFerXps" %} 13 | -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-03-JSPs-and-Servlets-Tutorial-10---Hello-JSP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Hello JSP 4 | date: 2011-06-03 04:58:34 UTC 5 | updated: 2011-06-03 04:58:34 UTC 6 | comments: false 7 | unused: 2011/05/jsps-and-servlets-tutorial-10-hello-jsp.html 8 | tags: servlets_jsps 9 | categories: content jsps_intro 10 | --- 11 | 12 | We'll write and execute our first JSP file. 13 | 14 | {% include youtube.html param="WCbwBHXUx0k" %} 15 | -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-04-JSPs-and-Servlets-Tutorial-11---Understanding-the-JSP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding the JSP 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-11.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll understand what the JSP file is and how it gets converted to a servlet. 11 | 12 | {% include youtube.html param="Ycf_GQbPqKI" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-05-JSPs-and-Servlets-Tutorial-12---JSP-Page-Directives.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: JSP Page Directives 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-12-jsp-page.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll learn how to use some page directives and how they affect our JSP. 11 | 12 | {% include youtube.html param="qLpm1Zxytsg" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-06-JSPs-and-Servlets-Tutorial-13---Scopes-in-JSP-and-the-PageContext-object.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Scopes in JSP and the PageContext object 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-13-scopes-in.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll look at the implicit objects in JSP that provide scoped objects. We'll also look at the PageContext object and how to use it. 11 | 12 | {% include youtube.html param="W0JQ0TaeXAY" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-07-JSPs-and-Servlets-Tutorial-14---Using-jspInit-and-InitParams.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using jspInit and InitParams 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-14-using.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | Here we'll see how our understanding of the init concepts of servlets translates to JSPs. 11 | 12 | {% include youtube.html param="g15_vDp0HIg" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-08-JSPs-and-Servlets-Tutorial-15---Understanding-the-MVC-Pattern.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding the MVC Pattern 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-15.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | Introduction and explanation of the Model-View-Controller pattern. 11 | 12 | {% include youtube.html param="zk_zEp-mtvQ" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-09-JSPs-and-Servlets-Tutorial-16-Part-1--Writing-an-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing an MVC Application Part 1 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-16-part-1.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We now set out to write our own MVC application from the scratch. 11 | 12 | {% include youtube.html param="QOUIVsBN82Q" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-10-JSPs-and-Servlets-Tutorial-16-Part-2--Writing-an-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing an MVC Application Part 2 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-16-part-2.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | Calling a Business Service method from the controller. 11 | 12 | {% include youtube.html param="EOdvmGVdndA" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-11-JSPs-and-Servlets-Tutorial-16-Part-3--Using-Model-object-in-the-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using Model object in the MVC Application 4 | comments: false 5 | unused: 2011/06/jsps-and-servlets-tutorial-16-part-3.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll introduce the Model object to pass data between layers. 11 | 12 | {% include youtube.html param="WxeY-LxMIbE" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-12-JSPs-and-Servlets-Tutorial-16-Part-4--Using-RequestDispatcher-in-the-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using RequestDispatcher in the MVC Application 4 | comments: false 5 | unused: 2011/06/jsps-and-servlets-tutorial-16-part-4.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | The RequestDispatcher object helps us transfer the request from the controller to the view. 11 | 12 | {% include youtube.html param="3ZTxMDDmBqg" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-13-JSPs-and-Servlets-Tutorial-17---Introduction-to-JSTL-and-the-useBean-tag.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to JSTL and the useBean tag 4 | comments: false 5 | unused: 2011/06/jsps-and-servlets-tutorial-17.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll learn what is JSTL and why it is used. We'll also use the useBean tag. 11 | 12 | {% include youtube.html param="-mjYAf0ILZs" %} -------------------------------------------------------------------------------- /_posts/content/jsps_intro/2011-06-14-JSPs-and-Servlets-Tutorial-18---Request-Parameters-with-the-setProperty-tag.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Request Parameters with the setProperty tag 4 | comments: false 5 | unused: 2011/06/jsps-and-servlets-tutorial-18-request.html 6 | tags: servlets_jsps 7 | categories: content jsps_intro 8 | --- 9 | 10 | We'll learn JSTL's support for the request parameters and the setProperty tag. 11 | 12 | {% include youtube.html param="4GAJ5pxQ-3c" %} -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-03-Maven-Tutorial-01-Part-1--Introduction-and-Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction and Setting up Part 1 4 | comments: false 5 | unused: 2011/06/maven-tutorial-01-part-1-introduction.html 6 | categories: content maven_intro 7 | --- 8 | 9 | In this tutorial, we'll download and install Maven in our development environment. 10 | 11 | {% include youtube.html param="al7bRZzz4oU" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-04-Maven-Tutorial-01-Part-2--Introduction-and-Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction and Setting up Part 2 4 | comments: false 5 | unused: 2011/06/maven-tutorial-01-part-2-introduction.html 6 | categories: content maven_intro 7 | --- 8 | 9 | In this tutorial, we'll have our first look at pom.xml and we'll compile our project. 10 | 11 | {% include youtube.html param="KlIM897RGwc" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-05-Maven-Tutorial-02--Understanding-Archetypes-and-pom.xml.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding Archetypes and pom.xml 4 | comments: false 5 | unused: 2011/06/maven-tutorial-02-understanding.html 6 | categories: content maven_intro 7 | --- 8 | 9 | We'll now understand what happens when we run the archetype:generate command and how that affects the pom.xml. 10 | 11 | {% include youtube.html param="AI8Kjag1vGk" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-06-Maven-Tutorial-03--Maven-Build-Phases.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Maven Build Phases 4 | comments: false 5 | unused: 2011/06/maven-tutorial-03-maven-build-phases.html 6 | categories: content maven_intro 7 | --- 8 | 9 | We'll now learn what the build process in Maven consists of, the build phases and we'll run commands to execute some phases. 10 | 11 | {% include youtube.html param="IYRYbPR5Gek" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-16-Maven-Tutorial-04---Adding-a-Dependency.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Adding a Dependency 4 | comments: false 5 | unused: 2011/06/maven-tutorial-04-adding-dependency.html 6 | categories: content maven_intro 7 | --- 8 | 9 | In this tutorial we'll learn about dependencies by adding one. We'll write code to use the slf4j logging framework, and we'll modify our pom.xml to specify the dependency to Maven. 10 | 11 | {% include youtube.html param="IRKu8_l5YiQ" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-17-Maven-Tutorial-05---A-Web-Application-Using-Maven.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: A Web Application Using Maven 4 | comments: false 5 | unused: 2011/06/maven-tutorial-05-web-application-using.html 6 | categories: content maven_intro 7 | --- 8 | 9 | We'll use the web application archetype to create a barebones web application. We'll then package, deploy in Tomcat and access this application. 10 | 11 | {% include youtube.html param="mpNnbBmh5J4" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-18-Maven-Tutorial-06---Introduction-to-Plugins-with-the-Maven-Compiler-Plugin.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to Plugins with the Maven Compiler Plugin 4 | comments: false 5 | unused: 2011/06/maven-tutorial-06-introduction-to.html 6 | categories: content maven_intro 7 | --- 8 | 9 | In this tutorial, we'll add the Maven compiler plugin configuration to the pom.xml. 10 | 11 | {% include youtube.html param="OQLBcd8QrWk" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-19-Maven-Tutorial-07---Using-the-Jetty-Plugin.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using the Jetty Plugin 4 | comments: false 5 | unused: 2011/06/maven-tutorial-07-using-jetty-plugin.html 6 | categories: content maven_intro 7 | --- 8 | 9 | There are some Maven plugins that are full Servlet containers. We'll look at an example: the Jetty plugin, and we'll see how it makes developing web applications easier. 10 | 11 | {% include youtube.html param="6sIhJuaZhF0" %} 12 | -------------------------------------------------------------------------------- /_posts/content/maven_intro/2011-06-20-Maven-Tutorial-08---Eclipse-Plugin-for-Maven-and-Maven-Plugin-for-Eclipse.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Eclipse Plugin for Maven and Maven Plugin for Eclipse 4 | comments: false 5 | unused: 2011/06/maven-tutorial-08-eclipse-plugin-for.html 6 | categories: content maven_intro 7 | --- 8 | 9 | More plugins! We'll use the Maven's Eclipse plugin to get our Maven project into the Eclipse IDE. We'll also download and install the m2eclipse plugin of Eclipse to bring Maven functionality into the Eclipse GUI. 10 | 11 | {% include youtube.html param="xE2F4Z_wKCU" %} 12 | -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-03-JSPs-and-Servlets-Tutorial-01---Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting up 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-01-setting.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll set up and configure Eclipse and Tomcat in our development environment. 11 | 12 | {% include youtube.html param="b42CJ0r-1to" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-04-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: First Servlet Part 1 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-02-first.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | Using Eclipse wizards to create a Dynamic Web Project. 11 | 12 | {% include youtube.html param="oX2rw5pAdxw" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-05-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: First Servlet Part 2 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-02-first_29.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | Creating and running our first Servlet. 11 | 12 | {% include youtube.html param="gU0RebsaFzQ" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-06-JSPs-and-Servlets-Tutorial-03---Understanding-the-Servlet.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding the Servlet 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-03.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll understand how our servlet intercepts HTTP requests, and the methods it runs. 11 | 12 | {% include youtube.html param="YxuCG0f14hM" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-07-JSPs-and-Servlets-Tutorial-04---Servlet-XML-Configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Servlet XML Configuration 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-04-servlet.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll learn how to configure our servlets using XML instead of annotations. 11 | 12 | {% include youtube.html param="w6YPK9xunCk" %} 13 | -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-08-JSPs-and-Servlets-Tutorial-05---The-POST-Method-and-Passing-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: The POST Method and Passing Parameters 4 | comments: false 5 | unused: 2011/04/jsps-and-servlets-tutorial-05-post.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | Now we'll understand how to intercept GET and POST requests using the `doGet` and the `doPost` methods. We also look at how parameters are passed in HTTP requests. 11 | 12 | {% include youtube.html param="MnUJl3NYRRc" %} 13 | -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-09-JSPs-and-Servlets-Tutorial-06---Passing-More-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Passing More Parameters 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-06-passing.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | We'll look at few other options in the types of parameters that can be passed to the servlet. 11 | 12 | {% include youtube.html param="0WPfqrSCb6c" %} 13 | -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-10-JSPs-and-Servlets-Tutorial-07---Understanding-GET-and-POST.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding GET and POST 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-07.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | We'll look at the GET and POST methods in more detail, and we'll learn when to do what. We'll also have a sneak peek at Apache Tomcat's implementation of the `doGet` and `doPost` methods. 11 | 12 | {% include youtube.html param="yzC4oDXfkl0" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-11-JSPs-and-Servlets-Tutorial-08---Request,-Session-and-Context.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Request, Session and Context 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-08-request.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | This two part tutorial introduces scopes and the Request, Session and Context objects. 11 | 12 | Part 1: 13 | 14 | {% include youtube.html param="GbvuAIhLUZU" %} 15 | 16 | 17 | Part 2: 18 | 19 | {% include youtube.html param="sHpUrCJmCWs" %} -------------------------------------------------------------------------------- /_posts/content/servlets_intro/2011-06-12-JSPs-and-Servlets-Tutorial-09---Understanding-init,-service-and-ServletConfig.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding init, service and ServletConfig 4 | comments: false 5 | unused: 2011/05/jsps-and-servlets-tutorial-09.html 6 | tags: servlets_jsps 7 | categories: content servlets_intro 8 | --- 9 | 10 | In this three part tutorial, we understand how a servlet is initialized, the methods that get called and the objects used on initialization and execution. 11 | 12 | Part 1: {% include youtube.html param="ji_N8pspwn0" %} 13 | 14 | Part 2: {% include youtube.html param="KPh1nPWB9ac" %} 15 | 16 | Part 3: {% include youtube.html param="cv1lp_uCtQc" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-24---Introduction-to-AOP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to AOP 4 | date: 2012-01-31 02:01:35 UTC 5 | unused: 2011/08/spring-tutorial-24-introduction-to-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | This video provides a brief introduction to Aspect Oriented Programming concepts. 13 | 14 | {% include youtube.html param="QdyLsX0nG30" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-25---Setting-Up-AOP-Dependencies.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting Up AOP Dependencies 4 | date: 2012-01-31 02:02:35 UTC 5 | unused: 2011/08/spring-tutorial-25-setting-up-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | In this tutorial, we'll add the additional dependencies required for Spring AOP and we'll configure our project's class path with these dependencies. 13 | 14 | {% include youtube.html param="4P0TME-AbSw" %} 15 | 16 | The links for the dependencies are: 17 | 18 | AspectJ: [http://www.eclipse.org/aspectj/downloads.php] (http://www.eclipse.org/aspectj/downloads.php) 19 | 20 | AOP Alliance: [http://aopalliance.sourceforge.net/] (http://aopalliance.sourceforge.net/) 21 | 22 | CGILIB: [http://cglib.sourceforge.net/] (http://cglib.sourceforge.net/) 23 | 24 | Spring 3 ASM: [http://asm.ow2.org/] (http://asm.ow2.org/) -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-26---Writing-Our-First-Aspect-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing Our First Aspect Part 1 4 | date: 2012-01-31 02:03:35 UTC 5 | unused: 2011/08/spring-tutorial-26-writing-our-first.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | In this first part of the tutorial, we'll create a Spring project that forms the basis for our Aspect. This is a good refresher of some of the core Spring concepts, and it also give us an opportunity to introduce a service layer in our code that we'll build on in the subsequent tutorials. 13 | 14 | {% include youtube.html param="D0ekfQNGgpY" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-27---Writing-Our-First-Aspect-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing Our First Aspect Part 2 4 | date: 2012-01-31 02:04:35 UTC 5 | unused: 2011/08/spring-tutorial-27-writing-our-first.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | Now that we have a basic Spring application, we'll implement the Logging aspect. We'll learn how to create a new Aspect using annotations and configure an advice to run before a getter method. 13 | 14 | {% include youtube.html param="4-z-YsRfSF0" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-28---Pointcuts-and-Wildcard-Expressions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Pointcuts and Wildcard Expressions 4 | date: 2012-01-31 02:05:35 UTC 5 | unused: 2011/08/spring-tutorial-28-pointcuts-and.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | We'll now learn what a Pointcut is, the Pointcut annotation and how to apply advice to multiple pointcuts. 13 | 14 | {% include youtube.html param="h7IdaLybg9A" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-29---A-Few-More-Pointcut-Expressions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: A Few More Pointcut Expressions 4 | date: 2012-01-31 02:06:35 UTC 5 | unused: 2011/08/spring-tutorial-29-few-more-pointcut.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | In this tutorial, we'll learn about a few other Pointcut expressions that can be used to advice different methods. 13 | 14 | {% include youtube.html param="UxzTk57CJD8" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-30---JoinPoints-and-Advice-Arguments.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: JoinPoints and Advice Arguments 4 | date: 2012-01-31 02:07:35 UTC 5 | unused: 2011/09/spring-tutorial-30-joinpoints-and.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | We'll now learn about join points, and how we can use arguments in the advice methods to get information about join points. 13 | 14 | {% include youtube.html param="nrAN0E_A7fc" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-31---After-Advice-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: After Advice Types 4 | date: 2012-01-31 02:08:35 UTC 5 | unused: 2011/10/spring-tutorial-31-after-advice-types.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | We'll learn about the After Advice types: `After` (finally), `AfterReturning` and `AfterThrowing`. 13 | 14 | {% include youtube.html param="tU6eQh9Hmqk" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-32---Around-Advice-Type.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Around Advice Type 4 | date: 2012-01-31 02:09:35 UTC 5 | unused: 2011/10/spring-tutorial-32-around-advice-type.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | This tutorial covers the Around advice type. We'll learn how to use it, and we'll also look at some of the unique and powerful features that are specific to this advice type. 13 | 14 | {% include youtube.html param="jwRwHOIwwdQ" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-33---Naming-Conventions-and-Custom-Advice-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Naming Conventions and Custom Advice Annotations 4 | date: 2012-01-31 02:10:35 UTC 5 | unused: 2011/10/spring-tutorial-33-naming-conventions.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | In this video, I share some thoughts on naming conventions, and how it helps in the case of writing aspects in Spring. We will also understand how to write our own custom annotations to apply advice to methods. 13 | 14 | {% include youtube.html param="Clz78J7SBKQ" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-34---AOP-XML-configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: AOP XML configuration 4 | date: 2012-01-31 02:11:35 UTC 5 | unused: 2011/10/spring-tutorial-34-aop-xml.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | We'll learn how to configure aspects, advice and pointcuts using the traditional XML way. 13 | 14 | {% include youtube.html param="ewWzxcNnI7k" %} -------------------------------------------------------------------------------- /_posts/content/spring_aop/2012-01-31-Spring-Tutorial-35---Understanding-AOP-Proxies.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding AOP Proxies 4 | date: 2012-01-31 02:12:35 UTC 5 | unused: 2011/10/spring-tutorial-35-understanding-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: content spring_aop 10 | --- 11 | 12 | In this video, we go where no Spring AOP tutorial has gone before! We'll understand how Spring AOP works and how it uses proxy classes to apply advice. And we'll do this by implementing our own simple factory service. The way Spring AOP works is much more complicated, but this simple implementation should give us a solid understanding of proxy objects and clarify the core concepts. 13 | 14 | {% include youtube.html param="yiinKulgm4U" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-17---Coding-To-Interfaces.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Coding To Interfaces 4 | date: 2011-08-10 00:57:10 UTC 5 | updated: 2011-08-11 04:23:07 UTC 6 | comments: false 7 | categories: content spring_core 8 | unused: 2011/08/spring-tutorial-17-coding-to-interfaces.html 9 | --- 10 | 11 | When using Spring for dependency injection, it's a good practice to use interfaces for referencing dependencies. In this tutorial, we'll learn how to "code to interfaces". 12 | 13 | {% include youtube.html param="5IDIEMxdkC8" %} 14 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-18---Introduction-to-Annotations-and-the-Required-Annota....markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to Annotations and the Required Annotation 4 | date: 2011-08-10 00:58:10 UTC 5 | unused: 2011/08/spring-tutorial-18-introduction-to.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | Here we'll have our first look at Spring annotations. We'll understand and implement the Required annotation, and we'll also learn how it's actually a BeanPostProcessor that's working behind the scenes. 13 | 14 | {% include youtube.html param="Fs_IoEGSP-A" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-19---The-Autowired-Annotation.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: The Autowired Annotation 4 | date: 2011-08-10 00:59:10 UTC 5 | unused: 2011/08/spring-tutorial-19-autowired-annotation.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | In this tutorial, we'll use the Autowired annotation to wire up dependencies. We'll learn how to add dependencies by type and name. We'll also use Qualifiers to narrow down dependency contenders. 13 | 14 | {% include youtube.html param="IVIhVJJGo68" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-20---Some-JSR-250-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Some JSR-250 Annotations 4 | date: 2011-08-10 01:00:10 UTC 5 | unused: 2011/08/spring-tutorial-20-some-jsr-250.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | We'll learn and implement three JSR-250 annotations that Spring supports:Resource, PostConstruct and PreDestroy. 13 | 14 | {% include youtube.html param="apTEbKPW3ow" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-21---Component-and-Stereotype-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Component and Stereotype Annotations 4 | date: 2011-08-10 01:01:10 UTC 5 | unused: 2011/08/spring-tutorial-21-component-and.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | We'll now use the Component annotation to define Spring beans. We'll also look at some Stereotype annotations. 13 | 14 | {% include youtube.html param="oTcSW4-_1Ew" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-22---Using-MessageSource-To-Get-Text-From-Property-Files.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using MessageSource To Get Text From Property Files 4 | date: 2011-08-10 01:02:10 UTC 5 | unused: 2011/08/spring-tutorial-22-using-messagesource.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | In this tutorial, we'll use the MessageSource interface to retrieve messages out of property files. 13 | 14 | {% include youtube.html param="cUqquQDZR-c" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2011-08-11-Spring-Tutorial-23---Event-Handling-in-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Event Handling in Spring 4 | date: 2011-08-10 01:03:10 UTC 5 | unused: 2011/08/spring-tutorial-23-event-handling-in.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring_core 10 | --- 11 | 12 | We'll now look at Spring's support for Event Handling. We'll write an event listener in this tutorial. I'll also show you how to write custom events and publish them anywhere in the code. 13 | 14 | {% include youtube.html param="ZUe1Xz7DAcY" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-18-Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting Up 4 | date: 2011-08-10 00:42:10 UTC 5 | unused: 2011/08/spring-tutorial-02-setting-up.html 6 | updated: 2013-05-18 04:17:20 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn how to set up our Eclipse development environment to write Spring code. 15 | 16 | {% include youtube.html param="Z5gubdHLJIc" %} 17 | 18 | ###Summary 19 | 20 | In this tutorial, you will download the required software and binaries to set up your development environment. 21 | 22 | ####Step 1: Downloading the software 23 | 24 | Here are the links to download the required software and binaries. 25 | 26 | **Eclipse**: http://www.eclipse.org/downloads 27 | 28 | **Spring Binaries**: http://repo.springsource.org/release/org/springframework/spring/ 29 | 30 | **Apache Commons Logging**: http://commons.apache.org/logging 31 | 32 | 33 | ####Step 2: Installing Eclipse 34 | 35 | Go through the standard installation procedure for the Eclipse download based on your operating system. 36 | 37 | ####Step 3: Configuring Spring libraries 38 | 39 | Create a User library in Eclipse that contains all the required Spring jars. This library will come in handy when you need to start a Spring project. Just add this library to every project that you need to use Spring. 40 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Bean-Autowiring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Bean Autowiring 4 | date: 2011-08-10 00:50:10 UTC 5 | unused: 2011/08/spring-tutorial-10-bean-autowiring.html 6 | updated: 2013-05-20 22:14:20 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | We'll now look at a configuration feature provided by Spring to wire dependencies automatically: Bean Autowiring. We'll learn about different types of autowiring, and we'll write some code to implement bean autowiring by name. 15 | 16 | {% include youtube.html param="suiEGbKf21g" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Bean-Definition-Inheritance.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Bean Definition Inheritance 4 | date: 2011-08-10 00:53:10 UTC 5 | unused: 2011/08/spring-tutorial-13-bean-definition.html 6 | updated: 2013-05-20 22:34:35 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn what bean definition inheritance is, and how to configure a parent bean definition and have children beans inherit the bean definitions. 15 | 16 | {% include youtube.html param="LxRiFFEXs5I" %} 17 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Initializing-Collections.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Initializing Collections 4 | date: 2011-08-10 00:49:10 UTC 5 | unused: 2011/08/spring-tutorial-09-initializing.html 6 | updated: 2013-05-20 22:11:59 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll initialize a member variable that's a collection and each of the elements are references to other beans. 15 | 16 | {% include youtube.html param="MgYURkcYeDQ" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Injecting-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Injecting Objects 4 | date: 2011-08-10 00:47:10 UTC 5 | unused: 2011/08/spring-tutorial-07-injecting-objects.html 6 | updated: 2013-05-20 22:05:04 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll use dependency injection to inject an object dependency to a Spring bean. 15 | 16 | {% include youtube.html param="g15RcFyEcrk" %} 17 | 18 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Inner-Beans,-Aliases-and-idref.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Inner Beans, Aliases and idref 4 | date: 2011-08-10 00:48:10 UTC 5 | unused: 2011/08/spring-tutorial-08-inner-beans-aliases.html 6 | updated: 2013-05-20 22:09:49 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll look at some concepts related to bean naming and usage like alias and idref. We'll also understand how to write inner beans. 15 | 16 | {% include youtube.html param="TW51XsixMqA" %} 17 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Lifecycle-Callbacks.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Lifecycle Callbacks 4 | date: 2011-08-10 00:54:10 UTC 5 | unused: 2011/08/spring-tutorial-14-lifecycle-callbacks.html 6 | updated: 2013-05-20 22:39:24 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | We'll use two different ways to run methods on initialization and destruction of beans. 15 | 16 | {% include youtube.html param="8LCpo4sfdQU" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Understanding-Bean-Scopes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding Bean Scopes 4 | date: 2011-08-10 00:51:10 UTC 5 | unused: 2011/08/spring-tutorial-11-understanding-bean.html 6 | updated: 2013-05-20 22:16:27 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | This tutorial covers the concepts of Bean Scopes in Spring. We'll understand when beans are created and how to configure different scopes for the beans. 15 | 16 | {% include youtube.html param="NnNvDknQJt0" %} -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Using-ApplicationContextAware.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using ApplicationContextAware 4 | date: 2011-08-10 00:52:10 UTC 5 | unused: 2011/08/spring-tutorial-12-using.html 6 | updated: 2013-05-20 22:27:56 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | We'll provide our beans with access to the ApplicationContext object by implementing the ApplicationContextAware interface. We'll also use BeanNameAware interface to get the name of the bean configured in the Spring XML. 15 | 16 | {% include youtube.html param="WUqyoH_G4Ko" %} 17 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Using-Constructor-Injection.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using Constructor Injection 4 | date: 2011-08-10 00:46:10 UTC 5 | unused: 2011/08/spring-tutorial-06-using-constructor.html 6 | updated: 2013-05-20 22:00:04 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | We'll now use constructors to set the member variable values for our Spring beans. We'll also look at some techniques to resolve conflicts in the case of overloaded constructors. 15 | 16 | {% include youtube.html param="IOZzxmJVus0" %} 17 | 18 | -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Writing-a-BeanFactoryPostProcessor.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a BeanFactoryPostProcessor 4 | date: 2011-08-10 00:56:10 UTC 5 | unused: 2011/08/spring-tutorial-16-writing.html 6 | updated: 2013-05-20 23:03:17 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn about and write our own BeanFactoryPostProcessor. We'll also try out a handy BeanFactoryPostProcessor that comes with Spring: the PropertyPlaceholderConfigurer. 15 | 16 | {% include youtube.html param="szNWTBlewQI" %} 17 | 18 | Note: As of Spring 3.1, it is recommended to use PropertySourcesPlaceholderConfigurer instead as mentioned in the Java Docs: http://static.springsource.org/spring/docs/3.1.4.RELEASE/javadoc-api/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.html. *Thanks Fredrik!* -------------------------------------------------------------------------------- /_posts/content/spring_core/2013-05-20-Writing-a-BeanPostProcessor.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a BeanPostProcessor 4 | date: 2011-08-10 00:55:10 UTC 5 | unused: 2011/08/spring-tutorial-15-writing.html 6 | updated: 2013-05-20 22:41:52 UTC 7 | comments: false 8 | tags: spring core 9 | categories: content spring 10 | topic: core 11 | categories: content spring_core 12 | --- 13 | 14 | In this tutorial, we'll understand what a BeanPostProcessor is. We'll also write a BeanPostProcessor that prints a message upon initializing each and every bean in the Spring XML. 15 | 16 | {% include youtube.html param="ycOZTpMkow" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-36---Introduction-to-Spring-Data-and-Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to Spring Data and Setting Up 4 | date: 2012-01-31 02:01:24 UTC 5 | unused: 2011/10/spring-tutorial-36-introduction-to.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | This tutorial serves as an introduction to Spring Data support. We'll also install a lightweight database Apache Derby that we'll use in subsequent tutorials. We'll learn how to start Derby in Network server mode, and how to connect and run SQL queries using the ij client tool. 13 | 14 | {% include youtube.html param="eR_JFtqyNL4" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-37---Using-JDBC-without-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using JDBC without Spring 4 | date: 2012-01-31 02:02:24 UTC 5 | unused: 2011/10/spring-tutorial-37-using-jdbc-without.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll now implement a simple DAO class that fetches data from the database using JDBC. We'll look at all the boilerplate code we need to write to establish connections, execute queries, close objects and handle exceptions. 13 | 14 | {% include youtube.html param="B3gEbC37DAM" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-38---Adding-Spring-and-DataSource-Configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Adding Spring and DataSource Configuration 4 | date: 2012-01-31 02:03:24 UTC 5 | unused: 2011/10/spring-tutorial-38-adding-spring-and.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll now add the Spring framework to our JDBC project. We'll add dependency injection to our Main and DAO class. We'll also learn how to configure DataSource as a Spring bean and supply connection parameters to it in the XML file. 13 | 14 | {% include youtube.html param="f-k823MZ02Q" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-39---Using-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using JdbcTemplate 4 | date: 2012-01-31 02:04:24 UTC 5 | unused: 2011/10/spring-tutorial-39-using-jdbctemplate.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll use the JdbcTemplate class provided by Spring to implement a DAO method. We'll see how using the template class makes the DAO methods simple, and how it takes care of much of the boilerplate code we'd have to write otherwise. 13 | 14 | {% include youtube.html param="0LYqy0wvS20" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-40---Returning-Other-Datatypes-from-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Returning Other Datatypes from JdbcTemplate 4 | date: 2012-01-31 02:05:24 UTC 5 | unused: 2011/10/spring-tutorial-40-returning-other.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We returned an integer datatype result from our query in the previous tutorial. In this tutorial, we'll learn how to return other datatypes. We'll implement a method that returns a String query output. 13 | 14 | {% include youtube.html param="QrU6UI_bSbU" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-41---Implementing-RowMapper.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Implementing RowMapper 4 | date: 2012-01-31 02:06:24 UTC 5 | unused: 2011/10/spring-tutorial-41-implementing.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | In this tutorial, we implement a custom RowMapper class to map our domain objects. We then use this class to write fetch methods that return custom model objects. 13 | 14 | {% include youtube.html param="i-_CUlER3z8" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-42---Performing-Write-Operations-with-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Performing Write Operations with JdbcTemplate 4 | date: 2012-01-31 02:07:24 UTC 5 | unused: 2011/11/spring-tutorial-42-performing-write.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll now implement some database write operations. We'll write a DAO method to update a value in the database, as well as use the execute() method to run a DDL SQL query. 13 | 14 | {% include youtube.html param="BiSIAzSZHpY" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-43---Named-Parameter-JDBC-Template.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Named Parameter JDBC Template 4 | date: 2012-01-31 02:08:24 UTC 5 | unused: 2011/11/spring-tutorial-43-named-parameter-jdbc.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll use the NamedParameterJdbcTemplate class to run queries with named placeholders. 13 | 14 | {% include youtube.html param="W_9DJYXuhwk" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-44---DAO-Support-Classes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: DAO Support Classes 4 | date: 2012-01-31 02:09:24 UTC 5 | unused: 2011/11/spring-tutorial-44-dao-support-classes.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | We'll wrap up discussion on the Spring JDBC support by using the DAO support classes that Spring provides out of the box. We'll see how this makes our DAO classes cleaner than ever. 13 | 14 | {% include youtube.html param="UOyjFjilPIo" %} -------------------------------------------------------------------------------- /_posts/content/spring_data/2012-01-31-Spring-Tutorial-45---Using-Hibernate-with-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using Hibernate with Spring 4 | date: 2012-01-31 02:10:24 UTC 5 | unused: 2011/12/spring-tutorial-45-using-hibernate-with.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: content spring_data 10 | --- 11 | 12 | In this video, we'll learn how to integrate the Hibernate framework in our Spring application. We'll create a SessionFactory as a Spring singleton and use that in our DAO class to work with the database. 13 | 14 | {% include youtube.html param="0lqlg5tnDag" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-01-31-Struts-2-Tutorial-01---Introduction-To-MVC.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction To MVC 4 | date: 2012-01-31 02:39:36 UTC 5 | updated: 2012-01-31 02:39:36 UTC 6 | unused: 2011/12/struts-2-tutorial-01-introduction-to.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In this video, we'll learn about the MVC architectural pattern. We'll learn what the Model, View and Controller roles are with a real world example. 14 | 15 | {% include youtube.html param="f46WEeM8HTA" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-01-31-Struts-2-Tutorial-02---Introduction-to-Struts-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introduction to Struts 2 4 | date: 2012-01-31 02:40:36 UTC 5 | updated: 2012-01-31 02:39:36 UTC 6 | unused: 2012/01/struts-2-tutorial-02-introduction-to.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll try to understand what an MVC framework should typically do, and what components any such framework should have. We'll then have a high level look at some of the core Struts 2 modules. 14 | 15 | {% include youtube.html param="9BvQpf7JcOI" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-02-09-Struts-2-Tutorial-04-Part-1---Writing-a-Struts-2-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Struts 2 Application Part 1 4 | date: 2012-02-09 18:49:51 UTC 5 | updated: 2012-02-09 18:49:51 UTC 6 | unused: 2012/02/struts-2-tutorial-04-part-1-writing.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll begin to write a simple Struts 2 project. We'll create the Struts XML and an action class, and also configure a mapping. 14 | 15 | {% include youtube.html param="u4Pn1rdv5Is" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-02-09-Struts-2-Tutorial-04-Part-2---Writing-a-Struts-2-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Writing a Struts 2 Application Part 2 4 | date: 2012-02-09 18:50:51 UTC 5 | updated: 2012-02-09 18:49:51 UTC 6 | unused: 2012/02/struts-2-tutorial-04-part-2-writing.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In the second part of this two part video, we'll continue with our Struts 2 application by adding result mapping to JSPs, Struts 2 filters, and complete the request response flow. 14 | 15 | {% include youtube.html param="1rDnWURZOWI" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-02-14-Struts-2-Tutorial-05---Understanding-Namespaces.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Understanding Namespaces 4 | date: 2012-02-14 08:26:05 UTC 5 | updated: 2012-02-14 08:26:05 UTC 6 | unused: 2012/02/struts-2-tutorial-05-understanding.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll understand the concept of namespaces when mapping Struts 2 actions. We'll configure a namespace, and also understand the default "/" namespace. 14 | 15 | {% include youtube.html param="BlFHGscURC4" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-02-20-Struts-2-Tutorial-03---Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Setting Up 4 | date: 2012-01-31 02:41:36 UTC 5 | updated: 2012-02-20 23:10:06 UTC 6 | unused: 2012/01/struts-2-tutorial-02-setting-up.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll set up our development environment to use Struts 2. We'll download the Struts 2 distribution, configure a user library and create a blank web application. 14 | 15 | {% include youtube.html param="LhjEgxJ080g" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-04-08-Struts-2-Tutorial-06---A-Tag-And-A-Business-Service.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: A Tag And A Business Service 4 | date: 2012-04-08 19:39:09 UTC 5 | updated: 2012-04-08 19:39:09 UTC 6 | unused: 2012/04/struts-2-tutorial-06-tag-and-business.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll quickly recap the concepts we've learnt so far by creating a new Struts 2 application. We'll then add an sample business service, and take our first look at Struts 2 tags, starting with s:property tag. 14 | 15 | {% include youtube.html param="nrYLnbGZ_4E" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-04-15-Struts-2-Tutorial-07---The-ValueStack.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: The ValueStack 4 | date: 2012-04-15 04:07:07 UTC 5 | updated: 2012-04-15 04:07:07 UTC 6 | unused: 2012/04/struts-2-tutorial-07-valuestack.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll now look at how data from the action class is made available to Struts 2 tags. We'll understand a few core concepts of the framework. This will also be our first look at the ValueStack object. 14 | 15 | {% include youtube.html param="EZpwBJ6EfDw" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-07-17-Struts-2-Tutorial-08---Accessing-Input-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Accessing Input Parameters 4 | date: 2012-07-17 02:09:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | unused: 2012/06/struts-2-tutorial-08-accessing-input.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll now try passing input parameters to our Struts 2 application and learn how we can capture that in our Action class. 14 | 15 | {% include youtube.html param="hBljGA8wyv0" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-07-17-Struts-2-Tutorial-09---Post-requests-to-actions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Post requests to actions 4 | date: 2012-07-17 02:10:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | unused: 2012/06/struts-tutorial-09-post-requests-to.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll now learn how to make POST requests to actions, using both HTML forms and Struts 2 tags. 14 | 15 | {% include youtube.html param="cG7FNgD11iE" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-07-17-Struts-2-Tutorial-10---Login-Action-and-Best-Practices.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Login Action and Best Practices 4 | date: 2012-07-17 02:11:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | unused: 2012/06/struts-2-tutorial-10-login-action-and.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | In this video, we'll learn how to implement a very common use case: basic login functionality using Struts 2 framework. In the next tutorial, we'll enhance this code with some best practices. 14 | 15 | {% include youtube.html param="Oo9lMGfis1c" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-07-17-Struts-2-Tutorial-11---Login-Action-and-Best-Practices-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Login Action and Best Practices Part 2 4 | date: 2012-07-17 02:12:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | unused: 2012/06/struts-2-tutorial-11-login-action-and.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | 11 | --- 12 | 13 | We'll continue looking at the login action and learn about some best practices that we can implement in our Struts 2 application. 14 | 15 | {% include youtube.html param="7yYs39-ZDOE" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-07-28-Struts-2-Tutorial-12---Action-Wildcards.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Action Wildcards 4 | date: 2012-07-28 21:07:14 UTC 5 | updated: 2012-07-28 21:07:14 UTC 6 | unused: 2012/07/struts-2-tutorial-12-action-wildcards.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | We'll now learn how to use wildcards when mapping Struts 2 Actions. Wildcards let us map multiple Action names with a single Action mapping. This simplifies the XML mapping configuration, especially if your application uses some sort of standard naming conventions for the Action and JSP names. 13 | 14 | {% include youtube.html param="gBhGREQyeFk" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-09-01-Struts-2-Tutorial-13---The-ActionSupport-Class.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: The ActionSupport Class 4 | date: 2012-09-01 01:28:29 UTC 5 | updated: 2012-09-01 01:28:29 UTC 6 | unused: 2012/08/struts-2-tutorial-13-actionsupport-class.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | This video introduces the ActionSupport class and one of the features of the class, validation. We'll look at the validate() method and how we can implement simple form validations in Struts 2. 13 | 14 | {% include youtube.html param="R6n511ZC50Q" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-10-02-Struts-2-Tutorial-14---Configuring-methods-in-Action-mappings.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Configuring methods in Action mappings 4 | date: 2012-10-02 01:29:38 UTC 5 | updated: 2012-10-02 01:29:38 UTC 6 | unused: 2012/10/struts-2-tutorial-14-configuring.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | This tutorial explores the method attribute in action mappings and how we can have multiple methods in a single Action class run for different URL mappings. 13 | 14 | {% include youtube.html param="toCQ_CSXpgw" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2012-10-30-Struts-2-Tutorial-15---Using-Model-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Using Model Objects 4 | date: 2012-10-30 02:35:43 UTC 5 | updated: 2012-10-30 02:35:43 UTC 6 | unused: 2012/10/struts-2-tutorial-15-using-model-objects.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | In this tutorial, we'll learn a few techniques for using model objects in Struts 2 actions. We'll also learn about the ModelDriven interface. 13 | 14 | {% include youtube.html param="ATLP7ZimjVU" %} -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2013-02-05-Struts-2-Tutorial-16---Introducing-Interceptors.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Introducing Interceptors 4 | date: 2013-02-05 21:39:20 UTC 5 | updated: 2013-02-05 21:39:20 UTC 6 | unused: 2013/02/struts-2-tutorial-16-introducing.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | In this tutorial, we'll discuss one of the most important concepts in Struts 2: Interceptors. We will understand what interceptors are and how they've been working all along in our Struts 2 application. 13 | 14 | {% include youtube.html param="DjeAqwW_J2U" %} 15 | 16 | View the presentation online here: http://prezi.com/bteb_edyc2di/interceptors/?kw=view-bteb_edyc2di&rc=ref-17278314 17 | 18 | -------------------------------------------------------------------------------- /_posts/content/struts2_intro/2013-03-31-Struts-2-Tutorial-17---Configuring-Interceptors.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post_only 3 | title: Configuring Interceptors 4 | date: 2013-03-31 00:10:28 UTC 5 | updated: 2013-03-31 00:10:28 UTC 6 | unused: 2013/03/how-does-default-interceptor.html 7 | comments: false 8 | tags: struts2 9 | categories: content struts2_intro 10 | --- 11 | 12 | How does the default interceptor configuration work? What is the necessary configuration to setup an interceptor in Struts 2? We answer these questions in this tutorial. 13 | 14 | {% include youtube.html param="Kkn_8BcmopA" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-16-Introduction-To-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction To Hibernate 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-01-introduction-to.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll understand the mismatch between object and relational models and what ORM is. 11 | 12 | {% include youtube.html param="Yv2xctJxE-w" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-17-Hibernate-Tutorial-02---Setting-Up-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting Up Hibernate 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-02-setting-up.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll download Hibernate and set it up in our development environment by configuring it in Eclipse. 11 | 12 | {% include youtube.html param="bzPkebUXxn0" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-18-Hibernate-Tutorial-03-Part-1--Writing-a-Hibernate-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Hibernate Application 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-03-part-1-writing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this first of a three part video on writing a simple Hibernate application from the scratch, we'll learn how to write the Hibernate configuration XML file, hibernate.cfg.xml. 11 | 12 | {% include youtube.html param="N2F1zCAf_NU" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-19-Hibernate-Tutorial-03-Part-2--Writing-the-Model-Class-with-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing the Model Class with Annotations 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-03-part-2-writing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll now create a Model class and configure it as an Entity using Annotations. 11 | 12 | {% include youtube.html param="3eXjpve0QaI" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-20-Hibernate-Tutorial-03-Part-3--Saving-Objects-using-Hibernate-APIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Saving Objects using Hibernate APIs 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-03-part-3-saving.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll learn how to instantiate Entity objects and save them to the database using Hibernate APIs. 11 | 12 | {% include youtube.html param="FFMOZY4z6bE" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-06-21-Hibernate-Tutorial-04---hbm2ddl-Configuration-and-Name-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: hbm2ddl Configuration and Name Annotations 4 | comments: false 5 | redirect_from: 2011/06/hibernate-tutorial-04-hbm2ddl.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll look at the schema generation options in Hibernate. We'll also learn some annotations to change the default name generated by Hibernate for entities. 11 | 12 | {% include youtube.html param="iaSd_yK9xaw" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-12-Hibernate-Tutorial-05---More-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: More Annotations 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-05-more-annotations.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll try out a few more annotations to configure our entity class. 11 | 12 | {% include youtube.html param="I8YmYFI5D_E" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-13-Hibernate-Tutorial-06---Retrieving-Objects-using-session.get.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Retrieving Objects using session.get 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-06-retrieving.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll look at one of the several ways we can fetch data from the database using Hibernate: the `session.get` method. 11 | 12 | {% include youtube.html param="3FV1yv7fvDQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-14-Hibernate-Tutorial-07---Primary-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Primary Keys 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-07-primary-keys.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Here we'll learn how to configure the primary key in our entity class using the `@Id` annotation. 11 | 12 | {% include youtube.html param="Xuofihmkl_k" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-15-Hibernate-Tutorial-08---Value-Types-and-Embedding-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Value Types and Embedding Objects 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-08-value-types-and.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll learn the difference between Entity type objects and Value type objects. We'll use the `@Embeddable` annotation to embed a value type object into our Entity class. 11 | 12 | {% include youtube.html param="c2abcy0Q1a0" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-16-Hibernate-Tutorial-09---AttributeOverrides-and-Embedded-Object-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: AttributeOverrides and Embedded Object Keys 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-09.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this video, we'll learn how to override configuration inside embedded objects, and we'll also explore object keys. 11 | 12 | {% include youtube.html param="X8t6oYp0Uk8" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-17-Hibernate-Tutorial-10---Saving-Collections.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Saving Collections 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-10-saving.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll now learn how to save value types that are collection objects. 11 | 12 | {% include youtube.html param="hofWx5_ZN9c" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-18-Hibernate-Tutorial-11---Configuring-Collections-and-Adding-Keys.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Configuring Collections and Adding Keys 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-11-configuring.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | More configuration options for collections, including configuring primary keys. 11 | 12 | {% include youtube.html param="kk207HAym_I" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-19-Hibernate-Tutorial-12---Proxy-Objects-and-Eager-and-Lazy-Fetch-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Proxy Objects and Eager and Lazy Fetch Types 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-12-proxy-objects-and.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Hibernate manages data fetching and optimizations using proxy objects. In this tutorial, we'll learn what they are and how lazy initialization works. 11 | 12 | {% include youtube.html param="RmnrgocuivQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-20-Hibernate-Tutorial-13---One-To-One-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: One To One Mapping 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-13-one-to-one.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | One to one mapping of entities. 11 | 12 | {% include youtube.html param="Of7qR-WagYk" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-21-Hibernate-Tutorial-14---One-To-Many-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: One To Many Mapping 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-14-one-to-many.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | One To Many mapping of entities. 11 | 12 | {% include youtube.html param="4mANZ4MMbD4" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-22-Hibernate-Tutorial-15---mappedBy-and-Many-To-Many-Mapping.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: mappedBy and Many To Many Mapping 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-15-mappedby-and-many.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Many to Many mapping of entities. 11 | 12 | {% include youtube.html param="jAi8bY-H_ek" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-23-Hibernate-Tutorial-16---CascadeTypes-and-Other-Things.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: CascadeTypes and Other Things 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-16-cascadetypes-and.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | In this tutorial, we'll look at some concepts like CascadeType which can be configured for entity relationships. 11 | 12 | {% include youtube.html param="K2Id3WLZWJI" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-24-Hibernate-Tutorial-17---Implementing-Inheritance.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Implementing Inheritance 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-17-implementing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | We'll understand how to configure entity classes that have an inheritance hierarchy. 11 | 12 | {% include youtube.html param="Zj1mRWfhx_Y" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-25-Hibernate-Tutorial-18---Implementing-Inheritance---Single-Table-Strategy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Single Table Strategy 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-18-implementing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Single table inheritance strategy. 11 | 12 | {% include youtube.html param="M5YrLtAHtOo" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-26-Hibernate-Tutorial-19---Implementing-Inheritance-With-Table-Per-Class-St....markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Implementing Inheritance With Table Per Class Strategy 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-19-implementing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Table per class inheritance strategy. 11 | 12 | {% include youtube.html param="qIdM4KQOtH8" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_intro/2011-07-27-Hibernate-Tutorial-20---Implementing-Inheritance-With-Joined-Strategy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Implementing Inheritance With Joined Strategy 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-20-implementing.html 6 | tags: hibernate intro 7 | categories: tutorials hibernate_intro 8 | --- 9 | 10 | Joined inheritance strategy. 11 | 12 | {% include youtube.html param="o1b3HFIlDS0" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-12-Hibernate-Tutorial-21---CRUD-Operations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: CRUD Operations 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-21-crud-operations.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | Writing code to Create, Read, Update and Delete entities in the database. 11 | 12 | {% include youtube.html param="hDBQy-dWC0A" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-13-Hibernate-Tutorial-22---Transient,-Persistent-and-Detached-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Transient, Persistent and Detached Objects 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-22-transient.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | This tutorial discusses three important entity object states in Hibernate: Transient, Persistent and Detached. 11 | 12 | {% include youtube.html param="kZpRyEABnms" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-14-Hibernate-Tutorial-23---Understanding-State-Changes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding State Changes 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-23-understanding.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | We'll understand some of the different ways in which entity objects change from one state to another. 11 | 12 | {% include youtube.html param="sjZGFHEdD4M" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-15-Hibernate-Tutorial-24---Persisting-Detached-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Persisting Detached Objects 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-24-persisting.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | This tutorial explores a special case of object state change: from detached to persistent. 11 | 12 | {% include youtube.html param="T02FicxK_aY" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-16-Hibernate-Tutorial-25---Introducing-HQL-and-the-Query-Object.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introducing HQL and the Query Object 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-25-introducing-hql.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | Introducing HQL and using HQL to run queries on the database. 11 | 12 | {% include youtube.html param="Em4M2tUn1bU" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-17-Hibernate-Tutorial-26---Select-and-Pagination-in-HQL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Select and Pagination in HQL 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-26-select-and.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | In this tutorial we'll learn Hibernate's support for pagination. We'll also learn how to write select queries to retrieve only certain columns. 11 | 12 | {% include youtube.html param="WVHFpp8X5z0" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-18-Hibernate-Tutorial-27---Understanding-Parameter-Binding-and-SQL-Injection.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding Parameter Binding and SQL Injection 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-27-understanding.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | We'll understand how appending parameters to SQL queries causes SQL injection, and will learn how to use the Parameter Binding feature in Hibernate. 11 | 12 | {% include youtube.html param="PiahhQ0Qkak" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-19-Hibernate-Tutorial-28---Named-Queries.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Named Queries 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-28-named-queries.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | We'll learn about named queries and how to write and access named queries. We'll also write and execute a NamedNativeQuery. 11 | 12 | {% include youtube.html param="o_P-p2b_k6w" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-20-Hibernate-Tutorial-29---Introduction-to-Criteria-API.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to Criteria API 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-29-introduction-to.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | This tutorial is an introduction to the Criteria API. Yet another way to work with data in Hibernate. 11 | 12 | {% include youtube.html param="4fVlAobgQGI" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-21-Hibernate-Tutorial-30---Understanding-Restrictions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding Restrictions 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-30-understanding.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | Understanding how to apply restrictions to our queries when using Criteria. 11 | 12 | {% include youtube.html param="MzrzsKSJBt0" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-22-Hibernate-Tutorial-31---Projections-and-Query-By-Example.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Projections and Query By Example 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-31-projections-and.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn how to use Projections to fine tune the results of the Criteria API. We'll also use Query By Example (QBE) to easily specify multiple where clauses in a single example object. 11 | 12 | {% include youtube.html param="2DXjdl8gzOo" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-23-Hibernate-Tutorial-32---Cacheing-in-Hibernate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Cacheing in Hibernate 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-32-cacheing-in.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn about Hibernate's cache support: both first level (Session) and second level cache. 11 | 12 | {% include youtube.html param="ISi_OkmuQbs" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-24-Hibernate-Tutorial-33---Configuring-Second-Level-Cache.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Configuring Second Level Cache 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-33-configuring.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | We'll configure EHCache as our second level cache, and then put it to work. We'll fetch an object across two sessions, and we'll see how Hibernate's second level cache comes into play to save a database query. 11 | 12 | {% include youtube.html param="TMZZg-HEjiE" %} -------------------------------------------------------------------------------- /_posts/tutorials/hibernate_run/2011-07-25-Hibernate-Tutorial-34---Using-Query-Cache.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using Query Cache 4 | comments: false 5 | redirect_from: 2011/07/hibernate-tutorial-34-using-query-cache.html 6 | tags: hibernate run 7 | categories: tutorials hibernate_run 8 | --- 9 | 10 | In this tutorial, we'll learn how to cache results that are fetched from the Query object. 11 | 12 | {% include youtube.html param="iwCdyr0bdkw" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-08-30-Introduction.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-03-REST-and-HTTP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: REST and HTTP 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-04-Quiz-REST-and-HTTP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Quiz 4 | categories: tutorials javaee_jaxrs quiz 5 | dataFile: ./data/javaee_jaxrs/quiz/rest-and-http.json 6 | video: http://www.youtube.com/embed/RuICubxGvj4 7 | --- 8 | 9 | 10 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-05-Answers-REST-and-HTTP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Answers 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-12-Designing-Resource-URIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Designing Resource URIs 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-13-Quiz-Designing-Resource-URIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Quiz 4 | categories: tutorials javaee_jaxrs quiz 5 | dataFile: ./data/javaee_jaxrs/quiz/rest-and-http.json 6 | video: http://www.youtube.com/embed/RuICubxGvj4 7 | --- 8 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-14-Answers-Designing-Resource-URIs.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Answers 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-28-RESTful-URI-types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Collection URIs 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-29-Quiz-RESTful-URI-types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Quiz 4 | categories: tutorials javaee_jaxrs quiz 5 | dataFile: ./data/javaee_jaxrs/quiz/rest-and-http.json 6 | video: http://www.youtube.com/embed/RuICubxGvj4 7 | --- 8 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-10-30-Answers-RESTful-URI-types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Answers 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-11-07-HTTP-Methods.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: HTTP Methods 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-11-08-Quiz-HTTP-Methods.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Quiz 4 | comments: false 5 | categories: tutorials javaee_jaxrs quiz 6 | dataFile: ./data/javaee_jaxrs/quiz/http-methods.json 7 | video: http://www.youtube.com/embed/gYKJqUZXuBw 8 | --- 9 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxrs/2014-11-09-Answers-HTTP-Methods.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Answers 4 | categories: tutorials javaee_jaxrs 5 | --- 6 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-06-17-Web-Service-Jargon.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Web Service Jargon 4 | comments: false 5 | redirect_from: 2013/06/web-service-jargon.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | Let us understand few of the most important concepts and terminologies used in web service technology. 11 | 12 | {% include youtube.html param="C53G6R5EVys" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-06-21-Writing-a-Web-service-Client:-Stub-generation.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Web service Client - Stub generation 4 | comments: false 5 | redirect_from: 2013/06/writing-web-service-client-stub.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this video, we'll learn how to use the wsimport utility to create stubs that can be used to make web service calls. 11 | 12 | {% include youtube.html param="6hqDMS-oJ9k" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-06-22-Writing-a-Web-service-Client:-Calling-the-Service.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Web service Client - Calling the Service 4 | comments: false 5 | redirect_from: 2013/06/writing-web-service-client-calling.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll use the stubs generated by wsimport and implement a client application. Our IPServiceLocator program takes IP address as an input argument and makes a call to the web service to display the country name to the console. 11 | 12 | {% include youtube.html param="KFlDdb65w3U" %} 13 | 14 | **Download the code:** Click here 15 | -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-06-24-Setting-up-Java-EE-7-SDK.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting up Java EE 7 SDK 4 | comments: false 5 | redirect_from: 2013/06/setting-up-java-ee-7-sdk.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll walk through the steps to install the Java EE 7 SDK which includes the Glassfish 4 application server installation. We'll learn some basics of how to start, stop and manage Glassfish. 11 | 12 | {% include youtube.html param="Zx6NuO6niFI" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-07-04-Writing-a-Web-Service:-Eclipse-setup.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Web Service - Eclipse setup 4 | comments: false 5 | redirect_from: 2013/07/download-soap-web-services-06-writing.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll setup the new Eclipse Kepler, configure Glassfish and start writing the web application with which we intend to create a web service. 11 | 12 | {% include youtube.html param="9kb0iLpqKY4" %} 13 | 14 | **Download:** 15 | http://www.eclipse.org/downloads/ 16 | Make sure you choose the **Eclipse IDE for Java EE Developers** download. -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-07-05-Writing-a-Web-Service:-Code-and-Deploy.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Web Service - Code and Deploy 4 | comments: false 5 | redirect_from: 2013/07/writing-web-service-code-and-deploy.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | We'll now convert the simple Java class in the previous tutorial into a web service, deploy it to Glassfish, and test it by submitting a SOAP request to get a SOAP response. 11 | 12 | {% include youtube.html param="u5cQkVgq6jE" %} 13 | 14 | **Download the code:** Click here -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-07-20-Adding-Input-Arguments.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Adding Input Arguments 4 | comments: false 5 | redirect_from: 2013/07/adding-input-arguments.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | We'll add an operation to our web service that takes input arguments to achieve both sending and receiving data from the web service. 11 | 12 | {% include youtube.html param="HLzM92ZnisY" %} 13 | 14 | **Download the code:** Click here -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-08-09-Service-First-and-Contract-First-Web-Services.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Service First and Contract First Web Services 4 | comments: false 5 | redirect_from: 2013/08/service-first-and-contract-first-web.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll understand the two common methodologies for designing and writing web services - the service first (or code first) and the contract first (or WSDL first) approaches. 11 | 12 | {% include youtube.html param="S0zdMGNrxr0" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-08-17-Understanding-the-WSDL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding the WSDL 4 | comments: false 5 | redirect_from: 2013/08/understanding-wsdl.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | Now it's time to understand what's going on in the WSDL. We'll simplify our web service code to just one method, generate the WSDL for it and understand the different elements that are generated. 11 | 12 | {% include youtube.html param="E76xW1JTVXY" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-08-19-Customizing-the-WSDL.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Customizing the WSDL 4 | comments: false 5 | redirect_from: 2013/08/customizing-wsdl.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | Having understood the important elements of the WSDL, we'll now learn some annotations that help us configure and override the various defaults that are used when the WSDL is generated. 11 | 12 | {% include youtube.html param="xq2zi_UWzUE" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-08-21-Schema-Types-and-Binding-Styles.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Schema Types and Binding Styles 4 | comments: false 5 | redirect_from: 2013/08/schema-types-and-binding-styles.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial, we'll understand how types are handled in the WSDL. We'll also explore the two styles we can choose from for our WSDL - Document style and RPC style. 11 | 12 | {% include youtube.html param="rHJ1v1jsAao" %} -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-09-07-Service-Interface-and-Custom-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Service Interface and Custom Types 4 | comments: false 5 | redirect_from: 2013/08/service-interface-and-custom-types.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | We'll make a couple of changes to the sample web service we've been developing all along. First, we will see what happens when a custom Java data type needs to be exchanged as a part of a web service operation. Then, we'll create a web service endpoint interface that our class implements. 11 | 12 | {% include youtube.html param="QFq4Ue_jExY" %} 13 | 14 | **Update:** You cannot take every annotation property in the impl class and include it in the interface. Some annotation properties should be used on the impl class and are not allowed on endpoint interfaces. And vice-versa, some are to be used only on the interface. 15 | 16 | Refer to the Java Docs for WebService and WebMethod annotations to find out which to use where. 17 | 18 | WebService page 19 | 20 | WebMethod page 21 | 22 | Thanks to Anupama for looking that up and letting me know in the comments. See next tutorial for more details. -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-09-08-Using-JAXB-Annotations-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using JAXB Annotations Part 1 4 | comments: false 5 | redirect_from: 2013/09/using-jaxb-annotations-part-1.html 6 | tags: javaee jaxws 7 | categories: tutorials javaee_jaxws 8 | --- 9 | 10 | In this tutorial we'll understand how an XML binding framework like JAXB works to help convert our object instances to XML. 11 | 12 | {% include youtube.html param="wireYD00xkw" %} 13 | 14 | **Update:** You cannot take every annotation property in the impl class and include it in the interface. Some annotation properties should be used on the impl class and are not allowed on endpoint interfaces. And vice-versa, some are to be used only on the interface. 15 | 16 | Refer to the Java Docs for WebService and WebMethod annotations to find out which to use where. 17 | 18 | WebService page 19 | 20 | WebMethod page 21 | 22 | Thanks to Anupama for looking that up and letting me know in the comments. -------------------------------------------------------------------------------- /_posts/tutorials/javaee_jaxws/2013-10-18-Using-SoapUI.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using SoapUI 4 | redirect_from: 2013/10/using-soapui.html 5 | tags: javaee jaxws 6 | categories: tutorials javaee_jaxws 7 | 8 | --- 9 | 10 | This is a quick introduction to a web service testing tool called SoapUI. We use this tool to test our web service without having to use the Glassfish tester page. In this video, you'll learn how to install the SoapUI plugin in eclipse, create a new project and make a SOAP web service call from it. 11 | 12 | {% include youtube.html param="CAHMJFerXps" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-03-JSPs-and-Servlets-Tutorial-10---Hello-JSP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Hello JSP 4 | date: 2011-06-03 04:58:34 UTC 5 | updated: 2011-06-03 04:58:34 UTC 6 | comments: false 7 | redirect_from: 2011/05/jsps-and-servlets-tutorial-10-hello-jsp.html 8 | tags: servlets_jsps 9 | categories: tutorials jsps_intro 10 | --- 11 | 12 | We'll write and execute our first JSP file. 13 | 14 | {% include youtube.html param="WCbwBHXUx0k" %} 15 | -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-04-JSPs-and-Servlets-Tutorial-11---Understanding-the-JSP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding the JSP 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-11.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll understand what the JSP file is and how it gets converted to a servlet. 11 | 12 | {% include youtube.html param="Ycf_GQbPqKI" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-05-JSPs-and-Servlets-Tutorial-12---JSP-Page-Directives.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: JSP Page Directives 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-12-jsp-page.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll learn how to use some page directives and how they affect our JSP. 11 | 12 | {% include youtube.html param="qLpm1Zxytsg" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-06-JSPs-and-Servlets-Tutorial-13---Scopes-in-JSP-and-the-PageContext-object.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Scopes in JSP and the PageContext object 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-13-scopes-in.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll look at the implicit objects in JSP that provide scoped objects. We'll also look at the PageContext object and how to use it. 11 | 12 | {% include youtube.html param="W0JQ0TaeXAY" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-07-JSPs-and-Servlets-Tutorial-14---Using-jspInit-and-InitParams.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using jspInit and InitParams 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-14-using.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | Here we'll see how our understanding of the init concepts of servlets translates to JSPs. 11 | 12 | {% include youtube.html param="g15_vDp0HIg" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-08-JSPs-and-Servlets-Tutorial-15---Understanding-the-MVC-Pattern.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding the MVC Pattern 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-15.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | Introduction and explanation of the Model-View-Controller pattern. 11 | 12 | {% include youtube.html param="zk_zEp-mtvQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-09-JSPs-and-Servlets-Tutorial-16-Part-1--Writing-an-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing an MVC Application Part 1 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-16-part-1.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We now set out to write our own MVC application from the scratch. 11 | 12 | {% include youtube.html param="QOUIVsBN82Q" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-10-JSPs-and-Servlets-Tutorial-16-Part-2--Writing-an-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing an MVC Application Part 2 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-16-part-2.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | Calling a Business Service method from the controller. 11 | 12 | {% include youtube.html param="EOdvmGVdndA" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-11-JSPs-and-Servlets-Tutorial-16-Part-3--Using-Model-object-in-the-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using Model object in the MVC Application 4 | comments: false 5 | redirect_from: 2011/06/jsps-and-servlets-tutorial-16-part-3.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll introduce the Model object to pass data between layers. 11 | 12 | {% include youtube.html param="WxeY-LxMIbE" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-12-JSPs-and-Servlets-Tutorial-16-Part-4--Using-RequestDispatcher-in-the-MVC-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using RequestDispatcher in the MVC Application 4 | comments: false 5 | redirect_from: 2011/06/jsps-and-servlets-tutorial-16-part-4.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | The RequestDispatcher object helps us transfer the request from the controller to the view. 11 | 12 | {% include youtube.html param="3ZTxMDDmBqg" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-13-JSPs-and-Servlets-Tutorial-17---Introduction-to-JSTL-and-the-useBean-tag.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to JSTL and the useBean tag 4 | comments: false 5 | redirect_from: 2011/06/jsps-and-servlets-tutorial-17.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll learn what is JSTL and why it is used. We'll also use the useBean tag. 11 | 12 | {% include youtube.html param="-mjYAf0ILZs" %} -------------------------------------------------------------------------------- /_posts/tutorials/jsps_intro/2011-06-14-JSPs-and-Servlets-Tutorial-18---Request-Parameters-with-the-setProperty-tag.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Request Parameters with the setProperty tag 4 | comments: false 5 | redirect_from: 2011/06/jsps-and-servlets-tutorial-18-request.html 6 | tags: servlets_jsps 7 | categories: tutorials jsps_intro 8 | --- 9 | 10 | We'll learn JSTL's support for the request parameters and the setProperty tag. 11 | 12 | {% include youtube.html param="4GAJ5pxQ-3c" %} -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-03-Maven-Tutorial-01-Part-1--Introduction-and-Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction and Setting up Part 1 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-01-part-1-introduction.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | In this tutorial, we'll download and install Maven in our development environment. 10 | 11 | {% include youtube.html param="al7bRZzz4oU" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-04-Maven-Tutorial-01-Part-2--Introduction-and-Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction and Setting up Part 2 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-01-part-2-introduction.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | In this tutorial, we'll have our first look at pom.xml and we'll compile our project. 10 | 11 | {% include youtube.html param="KlIM897RGwc" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-05-Maven-Tutorial-02--Understanding-Archetypes-and-pom.xml.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding Archetypes and pom.xml 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-02-understanding.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | We'll now understand what happens when we run the archetype:generate command and how that affects the pom.xml. 10 | 11 | {% include youtube.html param="AI8Kjag1vGk" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-06-Maven-Tutorial-03--Maven-Build-Phases.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Maven Build Phases 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-03-maven-build-phases.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | We'll now learn what the build process in Maven consists of, the build phases and we'll run commands to execute some phases. 10 | 11 | {% include youtube.html param="IYRYbPR5Gek" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-16-Maven-Tutorial-04---Adding-a-Dependency.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Adding a Dependency 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-04-adding-dependency.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | In this tutorial we'll learn about dependencies by adding one. We'll write code to use the slf4j logging framework, and we'll modify our pom.xml to specify the dependency to Maven. 10 | 11 | {% include youtube.html param="IRKu8_l5YiQ" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-17-Maven-Tutorial-05---A-Web-Application-Using-Maven.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: A Web Application Using Maven 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-05-web-application-using.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | We'll use the web application archetype to create a barebones web application. We'll then package, deploy in Tomcat and access this application. 10 | 11 | {% include youtube.html param="mpNnbBmh5J4" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-18-Maven-Tutorial-06---Introduction-to-Plugins-with-the-Maven-Compiler-Plugin.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to Plugins with the Maven Compiler Plugin 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-06-introduction-to.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | In this tutorial, we'll add the Maven compiler plugin configuration to the pom.xml. 10 | 11 | {% include youtube.html param="OQLBcd8QrWk" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-19-Maven-Tutorial-07---Using-the-Jetty-Plugin.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using the Jetty Plugin 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-07-using-jetty-plugin.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | There are some Maven plugins that are full Servlet containers. We'll look at an example: the Jetty plugin, and we'll see how it makes developing web applications easier. 10 | 11 | {% include youtube.html param="6sIhJuaZhF0" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/maven_intro/2011-06-20-Maven-Tutorial-08---Eclipse-Plugin-for-Maven-and-Maven-Plugin-for-Eclipse.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Eclipse Plugin for Maven and Maven Plugin for Eclipse 4 | comments: false 5 | redirect_from: 2011/06/maven-tutorial-08-eclipse-plugin-for.html 6 | categories: tutorials maven_intro 7 | --- 8 | 9 | More plugins! We'll use the Maven's Eclipse plugin to get our Maven project into the Eclipse IDE. We'll also download and install the m2eclipse plugin of Eclipse to bring Maven functionality into the Eclipse GUI. 10 | 11 | {% include youtube.html param="xE2F4Z_wKCU" %} 12 | -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-03-JSPs-and-Servlets-Tutorial-01---Setting-up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting up 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-01-setting.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll set up and configure Eclipse and Tomcat in our development environment. 11 | 12 | {% include youtube.html param="b42CJ0r-1to" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-04-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: First Servlet Part 1 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-02-first.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | Using Eclipse wizards to create a Dynamic Web Project. 11 | 12 | {% include youtube.html param="oX2rw5pAdxw" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-05-JSPs-and-Servlets-Tutorial-02---First-Servlet-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: First Servlet Part 2 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-02-first_29.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | Creating and running our first Servlet. 11 | 12 | {% include youtube.html param="gU0RebsaFzQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-06-JSPs-and-Servlets-Tutorial-03---Understanding-the-Servlet.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding the Servlet 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-03.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll understand how our servlet intercepts HTTP requests, and the methods it runs. 11 | 12 | {% include youtube.html param="YxuCG0f14hM" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-07-JSPs-and-Servlets-Tutorial-04---Servlet-XML-Configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Servlet XML Configuration 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-04-servlet.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | In this tutorial, we'll learn how to configure our servlets using XML instead of annotations. 11 | 12 | {% include youtube.html param="w6YPK9xunCk" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-08-JSPs-and-Servlets-Tutorial-05---The-POST-Method-and-Passing-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: The POST Method and Passing Parameters 4 | comments: false 5 | redirect_from: 2011/04/jsps-and-servlets-tutorial-05-post.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | Now we'll understand how to intercept GET and POST requests using the `doGet` and the `doPost` methods. We also look at how parameters are passed in HTTP requests. 11 | 12 | {% include youtube.html param="MnUJl3NYRRc" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-09-JSPs-and-Servlets-Tutorial-06---Passing-More-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Passing More Parameters 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-06-passing.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | We'll look at few other options in the types of parameters that can be passed to the servlet. 11 | 12 | {% include youtube.html param="0WPfqrSCb6c" %} 13 | -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-10-JSPs-and-Servlets-Tutorial-07---Understanding-GET-and-POST.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding GET and POST 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-07.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | We'll look at the GET and POST methods in more detail, and we'll learn when to do what. We'll also have a sneak peek at Apache Tomcat's implementation of the `doGet` and `doPost` methods. 11 | 12 | {% include youtube.html param="yzC4oDXfkl0" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-11-JSPs-and-Servlets-Tutorial-08---Request,-Session-and-Context.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Request, Session and Context 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-08-request.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | This two part tutorial introduces scopes and the Request, Session and Context objects. 11 | 12 | Part 1: 13 | 14 | {% include youtube.html param="GbvuAIhLUZU" %} 15 | 16 | 17 | Part 2: 18 | 19 | {% include youtube.html param="sHpUrCJmCWs" %} -------------------------------------------------------------------------------- /_posts/tutorials/servlets_intro/2011-06-12-JSPs-and-Servlets-Tutorial-09---Understanding-init,-service-and-ServletConfig.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding init, service and ServletConfig 4 | comments: false 5 | redirect_from: 2011/05/jsps-and-servlets-tutorial-09.html 6 | tags: servlets_jsps 7 | categories: tutorials servlets_intro 8 | --- 9 | 10 | In this three part tutorial, we understand how a servlet is initialized, the methods that get called and the objects used on initialization and execution. 11 | 12 | Part 1: {% include youtube.html param="ji_N8pspwn0" %} 13 | 14 | Part 2: {% include youtube.html param="KPh1nPWB9ac" %} 15 | 16 | Part 3: {% include youtube.html param="cv1lp_uCtQc" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-24---Introduction-to-AOP.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to AOP 4 | date: 2012-01-31 02:01:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-24-introduction-to-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | 11 | --- 12 | 13 | This video provides a brief introduction to Aspect Oriented Programming concepts. 14 | 15 | {% include youtube.html param="QdyLsX0nG30" %} 16 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-25---Setting-Up-AOP-Dependencies.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting Up AOP Dependencies 4 | date: 2012-01-31 02:02:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-25-setting-up-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | In this tutorial, we'll add the additional dependencies required for Spring AOP and we'll configure our project's class path with these dependencies. 13 | 14 | {% include youtube.html param="4P0TME-AbSw" %} 15 | 16 | The links for the dependencies are: 17 | 18 | AspectJ: [http://www.eclipse.org/aspectj/downloads.php] (http://www.eclipse.org/aspectj/downloads.php) 19 | 20 | AOP Alliance: [http://aopalliance.sourceforge.net/] (http://aopalliance.sourceforge.net/) 21 | 22 | CGILIB: [http://cglib.sourceforge.net/] (http://cglib.sourceforge.net/) 23 | 24 | Spring 3 ASM: [http://asm.ow2.org/] (http://asm.ow2.org/) -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-26---Writing-Our-First-Aspect-Part-1.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing Our First Aspect Part 1 4 | date: 2012-01-31 02:03:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-26-writing-our-first.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | In this first part of the tutorial, we'll create a Spring project that forms the basis for our Aspect. This is a good refresher of some of the core Spring concepts, and it also give us an opportunity to introduce a service layer in our code that we'll build on in the subsequent tutorials. 13 | 14 | {% include youtube.html param="D0ekfQNGgpY" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-27---Writing-Our-First-Aspect-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing Our First Aspect Part 2 4 | date: 2012-01-31 02:04:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-27-writing-our-first.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | Now that we have a basic Spring application, we'll implement the Logging aspect. We'll learn how to create a new Aspect using annotations and configure an advice to run before a getter method. 13 | 14 | {% include youtube.html param="4-z-YsRfSF0" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-28---Pointcuts-and-Wildcard-Expressions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Pointcuts and Wildcard Expressions 4 | date: 2012-01-31 02:05:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-28-pointcuts-and.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | We'll now learn what a Pointcut is, the Pointcut annotation and how to apply advice to multiple pointcuts. 13 | 14 | {% include youtube.html param="h7IdaLybg9A" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-29---A-Few-More-Pointcut-Expressions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: A Few More Pointcut Expressions 4 | date: 2012-01-31 02:06:35 UTC 5 | redirect_from: 2011/08/spring-tutorial-29-few-more-pointcut.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | In this tutorial, we'll learn about a few other Pointcut expressions that can be used to advice different methods. 13 | 14 | {% include youtube.html param="UxzTk57CJD8" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-30---JoinPoints-and-Advice-Arguments.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: JoinPoints and Advice Arguments 4 | date: 2012-01-31 02:07:35 UTC 5 | redirect_from: 2011/09/spring-tutorial-30-joinpoints-and.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | We'll now learn about join points, and how we can use arguments in the advice methods to get information about join points. 13 | 14 | {% include youtube.html param="nrAN0E_A7fc" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-31---After-Advice-Types.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: After Advice Types 4 | date: 2012-01-31 02:08:35 UTC 5 | redirect_from: 2011/10/spring-tutorial-31-after-advice-types.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | We'll learn about the After Advice types: `After` (finally), `AfterReturning` and `AfterThrowing`. 13 | 14 | {% include youtube.html param="tU6eQh9Hmqk" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-32---Around-Advice-Type.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Around Advice Type 4 | date: 2012-01-31 02:09:35 UTC 5 | redirect_from: 2011/10/spring-tutorial-32-around-advice-type.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | This tutorial covers the Around advice type. We'll learn how to use it, and we'll also look at some of the unique and powerful features that are specific to this advice type. 13 | 14 | {% include youtube.html param="jwRwHOIwwdQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-33---Naming-Conventions-and-Custom-Advice-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Naming Conventions and Custom Advice Annotations 4 | date: 2012-01-31 02:10:35 UTC 5 | redirect_from: 2011/10/spring-tutorial-33-naming-conventions.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | In this video, I share some thoughts on naming conventions, and how it helps in the case of writing aspects in Spring. We will also understand how to write our own custom annotations to apply advice to methods. 13 | 14 | {% include youtube.html param="Clz78J7SBKQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-34---AOP-XML-configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: AOP XML configuration 4 | date: 2012-01-31 02:11:35 UTC 5 | redirect_from: 2011/10/spring-tutorial-34-aop-xml.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | We'll learn how to configure aspects, advice and pointcuts using the traditional XML way. 13 | 14 | {% include youtube.html param="ewWzxcNnI7k" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_aop/2012-01-31-Spring-Tutorial-35---Understanding-AOP-Proxies.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding AOP Proxies 4 | date: 2012-01-31 02:12:35 UTC 5 | redirect_from: 2011/10/spring-tutorial-35-understanding-aop.html 6 | updated: 2012-01-31 02:38:35 UTC 7 | comments: false 8 | tags: Spring AOP 9 | categories: tutorials spring_aop 10 | --- 11 | 12 | In this video, we go where no Spring AOP tutorial has gone before! We'll understand how Spring AOP works and how it uses proxy classes to apply advice. And we'll do this by implementing our own simple factory service. The way Spring AOP works is much more complicated, but this simple implementation should give us a solid understanding of proxy objects and clarify the core concepts. 13 | 14 | {% include youtube.html param="yiinKulgm4U" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-17---Coding-To-Interfaces.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Coding To Interfaces 4 | date: 2011-08-10 00:57:10 UTC 5 | updated: 2011-08-11 04:23:07 UTC 6 | comments: false 7 | categories: tutorials spring_core 8 | redirect_from: 2011/08/spring-tutorial-17-coding-to-interfaces.html 9 | --- 10 | 11 | When using Spring for dependency injection, it's a good practice to use interfaces for referencing dependencies. In this tutorial, we'll learn how to "code to interfaces". 12 | 13 | {% include youtube.html param="5IDIEMxdkC8" %} 14 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-18---Introduction-to-Annotations-and-the-Required-Annota....markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to Annotations and the Required Annotation 4 | date: 2011-08-10 00:58:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-18-introduction-to.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | Here we'll have our first look at Spring annotations. We'll understand and implement the Required annotation, and we'll also learn how it's actually a BeanPostProcessor that's working behind the scenes. 13 | 14 | {% include youtube.html param="Fs_IoEGSP-A" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-19---The-Autowired-Annotation.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: The Autowired Annotation 4 | date: 2011-08-10 00:59:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-19-autowired-annotation.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | In this tutorial, we'll use the Autowired annotation to wire up dependencies. We'll learn how to add dependencies by type and name. We'll also use Qualifiers to narrow down dependency contenders. 13 | 14 | {% include youtube.html param="IVIhVJJGo68" %} 15 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-20---Some-JSR-250-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Some JSR-250 Annotations 4 | date: 2011-08-10 01:00:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-20-some-jsr-250.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | We'll learn and implement three JSR-250 annotations that Spring supports:Resource, PostConstruct and PreDestroy. 13 | 14 | {% include youtube.html param="apTEbKPW3ow" %} 15 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-21---Component-and-Stereotype-Annotations.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Component and Stereotype Annotations 4 | date: 2011-08-10 01:01:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-21-component-and.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | We'll now use the Component annotation to define Spring beans. We'll also look at some Stereotype annotations. 13 | 14 | {% include youtube.html param="oTcSW4-_1Ew" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-22---Using-MessageSource-To-Get-Text-From-Property-Files.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using MessageSource To Get Text From Property Files 4 | date: 2011-08-10 01:02:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-22-using-messagesource.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | In this tutorial, we'll use the MessageSource interface to retrieve messages out of property files. 13 | 14 | {% include youtube.html param="cUqquQDZR-c" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2011-08-11-Spring-Tutorial-23---Event-Handling-in-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Event Handling in Spring 4 | date: 2011-08-10 01:03:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-23-event-handling-in.html 6 | updated: 2011-08-11 04:23:07 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring_core 10 | --- 11 | 12 | We'll now look at Spring's support for Event Handling. We'll write an event listener in this tutorial. I'll also show you how to write custom events and publish them anywhere in the code. 13 | 14 | {% include youtube.html param="ZUe1Xz7DAcY" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-18-Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting Up 4 | date: 2011-08-10 00:42:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-02-setting-up.html 6 | updated: 2013-05-18 04:17:20 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn how to set up our Eclipse development environment to write Spring code. 15 | 16 | {% include youtube.html param="Z5gubdHLJIc" %} 17 | 18 | ###Summary 19 | 20 | In this tutorial, you will download the required software and binaries to set up your development environment. 21 | 22 | ####Step 1: Downloading the software 23 | 24 | Here are the links to download the required software and binaries. 25 | 26 | **Eclipse**: http://www.eclipse.org/downloads 27 | 28 | **Spring Binaries**: http://repo.springsource.org/release/org/springframework/spring/ 29 | 30 | **Apache Commons Logging**: http://commons.apache.org/logging 31 | 32 | 33 | ####Step 2: Installing Eclipse 34 | 35 | Go through the standard installation procedure for the Eclipse download based on your operating system. 36 | 37 | ####Step 3: Configuring Spring libraries 38 | 39 | Create a User library in Eclipse that contains all the required Spring jars. This library will come in handy when you need to start a Spring project. Just add this library to every project that you need to use Spring. 40 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Bean-Autowiring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Bean Autowiring 4 | date: 2011-08-10 00:50:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-10-bean-autowiring.html 6 | updated: 2013-05-20 22:14:20 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | We'll now look at a configuration feature provided by Spring to wire dependencies automatically: Bean Autowiring. We'll learn about different types of autowiring, and we'll write some code to implement bean autowiring by name. 15 | 16 | {% include youtube.html param="suiEGbKf21g" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Bean-Definition-Inheritance.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Bean Definition Inheritance 4 | date: 2011-08-10 00:53:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-13-bean-definition.html 6 | updated: 2013-05-20 22:34:35 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn what bean definition inheritance is, and how to configure a parent bean definition and have children beans inherit the bean definitions. 15 | 16 | {% include youtube.html param="LxRiFFEXs5I" %} 17 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Initializing-Collections.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Initializing Collections 4 | date: 2011-08-10 00:49:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-09-initializing.html 6 | updated: 2013-05-20 22:11:59 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll initialize a member variable that's a collection and each of the elements are references to other beans. 15 | 16 | {% include youtube.html param="MgYURkcYeDQ" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Injecting-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Injecting Objects 4 | date: 2011-08-10 00:47:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-07-injecting-objects.html 6 | updated: 2013-05-20 22:05:04 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll use dependency injection to inject an object dependency to a Spring bean. 15 | 16 | {% include youtube.html param="g15RcFyEcrk" %} 17 | 18 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Inner-Beans,-Aliases-and-idref.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Inner Beans, Aliases and idref 4 | date: 2011-08-10 00:48:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-08-inner-beans-aliases.html 6 | updated: 2013-05-20 22:09:49 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll look at some concepts related to bean naming and usage like alias and idref. We'll also understand how to write inner beans. 15 | 16 | {% include youtube.html param="TW51XsixMqA" %} 17 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Lifecycle-Callbacks.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Lifecycle Callbacks 4 | date: 2011-08-10 00:54:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-14-lifecycle-callbacks.html 6 | updated: 2013-05-20 22:39:24 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | We'll use two different ways to run methods on initialization and destruction of beans. 15 | 16 | {% include youtube.html param="8LCpo4sfdQU" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Understanding-Bean-Scopes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding Bean Scopes 4 | date: 2011-08-10 00:51:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-11-understanding-bean.html 6 | updated: 2013-05-20 22:16:27 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | This tutorial covers the concepts of Bean Scopes in Spring. We'll understand when beans are created and how to configure different scopes for the beans. 15 | 16 | {% include youtube.html param="NnNvDknQJt0" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Using-ApplicationContextAware.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using ApplicationContextAware 4 | date: 2011-08-10 00:52:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-12-using.html 6 | updated: 2013-05-20 22:27:56 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | We'll provide our beans with access to the ApplicationContext object by implementing the ApplicationContextAware interface. We'll also use BeanNameAware interface to get the name of the bean configured in the Spring XML. 15 | 16 | {% include youtube.html param="WUqyoH_G4Ko" %} 17 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Using-Constructor-Injection.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using Constructor Injection 4 | date: 2011-08-10 00:46:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-06-using-constructor.html 6 | updated: 2013-05-20 22:00:04 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | We'll now use constructors to set the member variable values for our Spring beans. We'll also look at some techniques to resolve conflicts in the case of overloaded constructors. 15 | 16 | {% include youtube.html param="IOZzxmJVus0" %} 17 | 18 | -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Writing-a-BeanFactoryPostProcessor.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a BeanFactoryPostProcessor 4 | date: 2011-08-10 00:56:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-16-writing.html 6 | updated: 2013-05-20 23:03:17 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll learn about and write our own BeanFactoryPostProcessor. We'll also try out a handy BeanFactoryPostProcessor that comes with Spring: the PropertyPlaceholderConfigurer. 15 | 16 | {% include youtube.html param="szNWTBlewQI" %} 17 | 18 | Note: As of Spring 3.1, it is recommended to use PropertySourcesPlaceholderConfigurer instead as mentioned in the Java Docs: http://static.springsource.org/spring/docs/3.1.4.RELEASE/javadoc-api/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.html. *Thanks Fredrik!* -------------------------------------------------------------------------------- /_posts/tutorials/spring_core/2013-05-20-Writing-a-BeanPostProcessor.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a BeanPostProcessor 4 | date: 2011-08-10 00:55:10 UTC 5 | redirect_from: 2011/08/spring-tutorial-15-writing.html 6 | updated: 2013-05-20 22:41:52 UTC 7 | comments: false 8 | tags: spring core 9 | categories: tutorials spring 10 | topic: core 11 | categories: tutorials spring_core 12 | --- 13 | 14 | In this tutorial, we'll understand what a BeanPostProcessor is. We'll also write a BeanPostProcessor that prints a message upon initializing each and every bean in the Spring XML. 15 | 16 | {% include youtube.html param="ycOZTpMkow" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-36---Introduction-to-Spring-Data-and-Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to Spring Data and Setting Up 4 | date: 2012-01-31 02:01:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-36-introduction-to.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | This tutorial serves as an introduction to Spring Data support. We'll also install a lightweight database Apache Derby that we'll use in subsequent tutorials. We'll learn how to start Derby in Network server mode, and how to connect and run SQL queries using the ij client tool. 13 | 14 | {% include youtube.html param="eR_JFtqyNL4" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-37---Using-JDBC-without-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using JDBC without Spring 4 | date: 2012-01-31 02:02:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-37-using-jdbc-without.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll now implement a simple DAO class that fetches data from the database using JDBC. We'll look at all the boilerplate code we need to write to establish connections, execute queries, close objects and handle exceptions. 13 | 14 | {% include youtube.html param="B3gEbC37DAM" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-38---Adding-Spring-and-DataSource-Configuration.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Adding Spring and DataSource Configuration 4 | date: 2012-01-31 02:03:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-38-adding-spring-and.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll now add the Spring framework to our JDBC project. We'll add dependency injection to our Main and DAO class. We'll also learn how to configure DataSource as a Spring bean and supply connection parameters to it in the XML file. 13 | 14 | {% include youtube.html param="f-k823MZ02Q" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-39---Using-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using JdbcTemplate 4 | date: 2012-01-31 02:04:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-39-using-jdbctemplate.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll use the JdbcTemplate class provided by Spring to implement a DAO method. We'll see how using the template class makes the DAO methods simple, and how it takes care of much of the boilerplate code we'd have to write otherwise. 13 | 14 | {% include youtube.html param="0LYqy0wvS20" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-40---Returning-Other-Datatypes-from-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Returning Other Datatypes from JdbcTemplate 4 | date: 2012-01-31 02:05:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-40-returning-other.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We returned an integer datatype result from our query in the previous tutorial. In this tutorial, we'll learn how to return other datatypes. We'll implement a method that returns a String query output. 13 | 14 | {% include youtube.html param="QrU6UI_bSbU" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-41---Implementing-RowMapper.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Implementing RowMapper 4 | date: 2012-01-31 02:06:24 UTC 5 | redirect_from: 2011/10/spring-tutorial-41-implementing.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | In this tutorial, we implement a custom RowMapper class to map our domain objects. We then use this class to write fetch methods that return custom model objects. 13 | 14 | {% include youtube.html param="i-_CUlER3z8" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-42---Performing-Write-Operations-with-JdbcTemplate.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Performing Write Operations with JdbcTemplate 4 | date: 2012-01-31 02:07:24 UTC 5 | redirect_from: 2011/11/spring-tutorial-42-performing-write.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll now implement some database write operations. We'll write a DAO method to update a value in the database, as well as use the execute() method to run a DDL SQL query. 13 | 14 | {% include youtube.html param="BiSIAzSZHpY" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-43---Named-Parameter-JDBC-Template.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Named Parameter JDBC Template 4 | date: 2012-01-31 02:08:24 UTC 5 | redirect_from: 2011/11/spring-tutorial-43-named-parameter-jdbc.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll use the NamedParameterJdbcTemplate class to run queries with named placeholders. 13 | 14 | {% include youtube.html param="W_9DJYXuhwk" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-44---DAO-Support-Classes.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: DAO Support Classes 4 | date: 2012-01-31 02:09:24 UTC 5 | redirect_from: 2011/11/spring-tutorial-44-dao-support-classes.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | We'll wrap up discussion on the Spring JDBC support by using the DAO support classes that Spring provides out of the box. We'll see how this makes our DAO classes cleaner than ever. 13 | 14 | {% include youtube.html param="UOyjFjilPIo" %} -------------------------------------------------------------------------------- /_posts/tutorials/spring_data/2012-01-31-Spring-Tutorial-45---Using-Hibernate-with-Spring.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using Hibernate with Spring 4 | date: 2012-01-31 02:10:24 UTC 5 | redirect_from: 2011/12/spring-tutorial-45-using-hibernate-with.html 6 | updated: 2012-01-31 02:39:24 UTC 7 | comments: false 8 | tags: Spring Data Support 9 | categories: tutorials spring_data 10 | --- 11 | 12 | In this video, we'll learn how to integrate the Hibernate framework in our Spring application. We'll create a SessionFactory as a Spring singleton and use that in our DAO class to work with the database. 13 | 14 | {% include youtube.html param="0lqlg5tnDag" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-01-31-Struts-2-Tutorial-01---Introduction-To-MVC.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction To MVC 4 | date: 2012-01-31 02:39:36 UTC 5 | updated: 2012-01-31 02:39:36 UTC 6 | redirect_from: 2011/12/struts-2-tutorial-01-introduction-to.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In this video, we'll learn about the MVC architectural pattern. We'll learn what the Model, View and Controller roles are with a real world example. 14 | 15 | {% include youtube.html param="f46WEeM8HTA" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-01-31-Struts-2-Tutorial-02---Introduction-to-Struts-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introduction to Struts 2 4 | date: 2012-01-31 02:40:36 UTC 5 | updated: 2012-01-31 02:39:36 UTC 6 | redirect_from: 2012/01/struts-2-tutorial-02-introduction-to.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll try to understand what an MVC framework should typically do, and what components any such framework should have. We'll then have a high level look at some of the core Struts 2 modules. 14 | 15 | {% include youtube.html param="9BvQpf7JcOI" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-02-09-Struts-2-Tutorial-04-Part-1---Writing-a-Struts-2-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Struts 2 Application Part 1 4 | date: 2012-02-09 18:49:51 UTC 5 | updated: 2012-02-09 18:49:51 UTC 6 | redirect_from: 2012/02/struts-2-tutorial-04-part-1-writing.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll begin to write a simple Struts 2 project. We'll create the Struts XML and an action class, and also configure a mapping. 14 | 15 | {% include youtube.html param="u4Pn1rdv5Is" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-02-09-Struts-2-Tutorial-04-Part-2---Writing-a-Struts-2-Application.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Writing a Struts 2 Application Part 2 4 | date: 2012-02-09 18:50:51 UTC 5 | updated: 2012-02-09 18:49:51 UTC 6 | redirect_from: 2012/02/struts-2-tutorial-04-part-2-writing.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In the second part of this two part video, we'll continue with our Struts 2 application by adding result mapping to JSPs, Struts 2 filters, and complete the request response flow. 14 | 15 | {% include youtube.html param="1rDnWURZOWI" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-02-14-Struts-2-Tutorial-05---Understanding-Namespaces.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Understanding Namespaces 4 | date: 2012-02-14 08:26:05 UTC 5 | updated: 2012-02-14 08:26:05 UTC 6 | redirect_from: 2012/02/struts-2-tutorial-05-understanding.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll understand the concept of namespaces when mapping Struts 2 actions. We'll configure a namespace, and also understand the default "/" namespace. 14 | 15 | {% include youtube.html param="BlFHGscURC4" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-02-20-Struts-2-Tutorial-03---Setting-Up.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Setting Up 4 | date: 2012-01-31 02:41:36 UTC 5 | updated: 2012-02-20 23:10:06 UTC 6 | redirect_from: 2012/01/struts-2-tutorial-02-setting-up.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll set up our development environment to use Struts 2. We'll download the Struts 2 distribution, configure a user library and create a blank web application. 14 | 15 | {% include youtube.html param="LhjEgxJ080g" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-04-08-Struts-2-Tutorial-06---A-Tag-And-A-Business-Service.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: A Tag And A Business Service 4 | date: 2012-04-08 19:39:09 UTC 5 | updated: 2012-04-08 19:39:09 UTC 6 | redirect_from: 2012/04/struts-2-tutorial-06-tag-and-business.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In this tutorial, we'll quickly recap the concepts we've learnt so far by creating a new Struts 2 application. We'll then add an sample business service, and take our first look at Struts 2 tags, starting with s:property tag. 14 | 15 | {% include youtube.html param="nrYLnbGZ_4E" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-04-15-Struts-2-Tutorial-07---The-ValueStack.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: The ValueStack 4 | date: 2012-04-15 04:07:07 UTC 5 | updated: 2012-04-15 04:07:07 UTC 6 | redirect_from: 2012/04/struts-2-tutorial-07-valuestack.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll now look at how data from the action class is made available to Struts 2 tags. We'll understand a few core concepts of the framework. This will also be our first look at the ValueStack object. 14 | 15 | {% include youtube.html param="EZpwBJ6EfDw" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-07-17-Struts-2-Tutorial-08---Accessing-Input-Parameters.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Accessing Input Parameters 4 | date: 2012-07-17 02:09:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | redirect_from: 2012/06/struts-2-tutorial-08-accessing-input.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll now try passing input parameters to our Struts 2 application and learn how we can capture that in our Action class. 14 | 15 | {% include youtube.html param="hBljGA8wyv0" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-07-17-Struts-2-Tutorial-09---Post-requests-to-actions.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Post requests to actions 4 | date: 2012-07-17 02:10:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | redirect_from: 2012/06/struts-tutorial-09-post-requests-to.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll now learn how to make POST requests to actions, using both HTML forms and Struts 2 tags. 14 | 15 | {% include youtube.html param="cG7FNgD11iE" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-07-17-Struts-2-Tutorial-10---Login-Action-and-Best-Practices.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Login Action and Best Practices 4 | date: 2012-07-17 02:11:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | redirect_from: 2012/06/struts-2-tutorial-10-login-action-and.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | In this video, we'll learn how to implement a very common use case: basic login functionality using Struts 2 framework. In the next tutorial, we'll enhance this code with some best practices. 14 | 15 | {% include youtube.html param="Oo9lMGfis1c" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-07-17-Struts-2-Tutorial-11---Login-Action-and-Best-Practices-Part-2.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Login Action and Best Practices Part 2 4 | date: 2012-07-17 02:12:54 UTC 5 | updated: 2012-07-17 02:09:54 UTC 6 | redirect_from: 2012/06/struts-2-tutorial-11-login-action-and.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | 11 | --- 12 | 13 | We'll continue looking at the login action and learn about some best practices that we can implement in our Struts 2 application. 14 | 15 | {% include youtube.html param="7yYs39-ZDOE" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-07-28-Struts-2-Tutorial-12---Action-Wildcards.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Action Wildcards 4 | date: 2012-07-28 21:07:14 UTC 5 | updated: 2012-07-28 21:07:14 UTC 6 | redirect_from: 2012/07/struts-2-tutorial-12-action-wildcards.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | We'll now learn how to use wildcards when mapping Struts 2 Actions. Wildcards let us map multiple Action names with a single Action mapping. This simplifies the XML mapping configuration, especially if your application uses some sort of standard naming conventions for the Action and JSP names. 13 | 14 | {% include youtube.html param="gBhGREQyeFk" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-09-01-Struts-2-Tutorial-13---The-ActionSupport-Class.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: The ActionSupport Class 4 | date: 2012-09-01 01:28:29 UTC 5 | updated: 2012-09-01 01:28:29 UTC 6 | redirect_from: 2012/08/struts-2-tutorial-13-actionsupport-class.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | This video introduces the ActionSupport class and one of the features of the class, validation. We'll look at the validate() method and how we can implement simple form validations in Struts 2. 13 | 14 | {% include youtube.html param="R6n511ZC50Q" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-10-02-Struts-2-Tutorial-14---Configuring-methods-in-Action-mappings.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Configuring methods in Action mappings 4 | date: 2012-10-02 01:29:38 UTC 5 | updated: 2012-10-02 01:29:38 UTC 6 | redirect_from: 2012/10/struts-2-tutorial-14-configuring.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | This tutorial explores the method attribute in action mappings and how we can have multiple methods in a single Action class run for different URL mappings. 13 | 14 | {% include youtube.html param="toCQ_CSXpgw" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2012-10-30-Struts-2-Tutorial-15---Using-Model-Objects.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Using Model Objects 4 | date: 2012-10-30 02:35:43 UTC 5 | updated: 2012-10-30 02:35:43 UTC 6 | redirect_from: 2012/10/struts-2-tutorial-15-using-model-objects.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | In this tutorial, we'll learn a few techniques for using model objects in Struts 2 actions. We'll also learn about the ModelDriven interface. 13 | 14 | {% include youtube.html param="ATLP7ZimjVU" %} -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2013-02-05-Struts-2-Tutorial-16---Introducing-Interceptors.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Introducing Interceptors 4 | date: 2013-02-05 21:39:20 UTC 5 | updated: 2013-02-05 21:39:20 UTC 6 | redirect_from: 2013/02/struts-2-tutorial-16-introducing.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | In this tutorial, we'll discuss one of the most important concepts in Struts 2: Interceptors. We will understand what interceptors are and how they've been working all along in our Struts 2 application. 13 | 14 | {% include youtube.html param="DjeAqwW_J2U" %} 15 | 16 | View the presentation online here: http://prezi.com/bteb_edyc2di/interceptors/?kw=view-bteb_edyc2di&rc=ref-17278314 17 | 18 | -------------------------------------------------------------------------------- /_posts/tutorials/struts2_intro/2013-03-31-Struts-2-Tutorial-17---Configuring-Interceptors.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Configuring Interceptors 4 | date: 2013-03-31 00:10:28 UTC 5 | updated: 2013-03-31 00:10:28 UTC 6 | redirect_from: 2013/03/how-does-default-interceptor.html 7 | comments: false 8 | tags: struts2 9 | categories: tutorials struts2_intro 10 | --- 11 | 12 | How does the default interceptor configuration work? What is the necessary configuration to setup an interceptor in Struts 2? We answer these questions in this tutorial. 13 | 14 | {% include youtube.html param="Kkn_8BcmopA" %} -------------------------------------------------------------------------------- /about.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Courses 4 | excerpt: About Java Brains and Koushik Kothagal 5 | --- 6 | -------------------------------------------------------------------------------- /bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /courses.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Courses 4 | excerpt: Choose a course topic to see available courses. Free tutorials on Spring Framework, Hibernate, Struts 2, Java EE, Maven. 5 | --- 6 | -------------------------------------------------------------------------------- /courses/maven.json: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | { 4 | "name": "Maven", 5 | "about": "

Apache Maven is a software project management and dependency management tool.

The courses on this page cover concepts and usage scenarios for Apache Maven.

", 6 | "courses": [{ 7 | "id": "01", 8 | "code": "maven_intro", 9 | "name": "Introduction to Maven", 10 | "details": "

This course is an introduction to the basic features of Apache Maven. You will learn what Maven is and how it helps managing dependencies in your Java project. You will understand POM configuration, build phases and use plugins.

", 11 | "tutorials": [ 12 | {% assign course = site.categories["maven_intro"] | where:"layout","blank" | sort: 'date' %} 13 | {% for tut in course %} 14 | {"id": "{{forloop.index}}","name": "{{tut.title}}","href": "{{tut.url}}"}{% unless forloop.last %},{% endunless %} 15 | {% endfor %} 16 | ]} 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /courses/struts2.json: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | { 4 | "name": "Struts 2", 5 | "about": "

Apache Struts 2 is an elegant and extensible framework for creating Java web applications. The framework is designed to let developers write web applications using the Model-View-Controller (MVC) pattern.

The courses on this page cover various concepts and features of the Struts 2 framework.

", 6 | "courses": [{ 7 | "id": "01", 8 | "code": "struts2_intro", 9 | "name": "Beginning Struts 2", 10 | "details": "

This course provides an introduction to the Struts 2 framework. You will understand the concepts of MVC, and learn to write a web application from scratch using Struts 2.

", 11 | "tutorials": [ 12 | {% assign course = site.categories["struts2_intro"] | where:"layout","blank" | sort: 'date' %} 13 | {% for tut in course %} 14 | {"id": "{{forloop.index}}","name": "{{tut.title}}","href": "{{tut.url}}"}{% unless forloop.last %},{% endunless %} 15 | {% endfor %} 16 | ]} 17 | 18 | ] 19 | 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /fonts/Flat-UI-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/fonts/Flat-UI-Icons.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /hibernate.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Hibernate 4 | excerpt: Hibernate is an open source Java persistence framework that lets Java applications connect to and work with a relational database using Object Relational Mapping. The courses on this page cover various concepts and features of ORM, JPA and Hibernate. 5 | --- 6 | -------------------------------------------------------------------------------- /images/cross.39f706da.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/images/cross.39f706da.png -------------------------------------------------------------------------------- /images/logo.68a1f4a6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/images/logo.68a1f4a6.png -------------------------------------------------------------------------------- /images/logo_bkp.a7dfc284.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/images/logo_bkp.a7dfc284.png -------------------------------------------------------------------------------- /images/menu.7e146029.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/images/menu.7e146029.png -------------------------------------------------------------------------------- /images/yeoman.d2754b85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koushikkothagal/javabrains-site-old/6453a278360b93a150dfbc4dfe9e00e76f636dcd/images/yeoman.d2754b85.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Home 4 | excerpt: Java Brains is an Enterprise Java tutorial website. Free tutorials on Spring Framework, Hibernate, Struts 2, Java EE, Maven. 5 | --- 6 | -------------------------------------------------------------------------------- /javaee.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Java EE 4 | excerpt: Java EE is the platform for Enterprise Java. The courses on this page cover various technologies and APIs that can be used to write Enterprise Java applications with Java EE 7. 5 | --- 6 | -------------------------------------------------------------------------------- /maven.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Apache Maven 4 | excerpt: Apache Maven is a software project management and dependency management tool. The courses on this page cover concepts and usage scenarios for Apache Maven. 5 | --- 6 | -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | # robotstxt.org 2 | 3 | User-agent: * 4 | -------------------------------------------------------------------------------- /servlets.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Servlets and JSPs 4 | excerpt: Servlets and JSPs are Java technologies that allow server side programming in Java. The courses on this page cover various concepts related to Servlets and JSPs using Apache Tomcat as the servlet container. 5 | --- 6 | -------------------------------------------------------------------------------- /spring.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Spring Framework 4 | excerpt: Spring is one of the most popular application development frameworks for writing enterprise Java applications. The courses on this page cover various features and technologies of the Spring framework. 5 | --- 6 | -------------------------------------------------------------------------------- /struts2.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: blank 3 | title: Struts 2 4 | excerpt: Apache Struts 2 is an elegant and extensible framework for creating Java web applications. The courses on this page cover various concepts and features of the Struts 2 framework. 5 | --- 6 | -------------------------------------------------------------------------------- /views/directives/global-menu.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /views/includes/disqus.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /views/includes/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /views/quiz.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /views/tutorial.html: -------------------------------------------------------------------------------- 1 |

-

--------------------------------------------------------------------------------