Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Software Development Tools No-Code Development
Business
Entrepreneurship Communication Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certifications Network & Security Hardware Operating Systems & Servers Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Paid Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement & Gardening Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition & Diet Yoga Mental Health Martial Arts & Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Learning Teacher Training Test Prep Other Teaching & Academics
Web Development JavaScript React Angular CSS Node.Js HTML5 PHP Vue JS
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Amazon AWS Cisco CCNA Microsoft AZ-900 AWS Certified Developer - Associate
Microsoft Power BI SQL Tableau Data Modeling Business Analysis Business Intelligence MySQL Qlik Sense Blockchain
Unity Unreal Engine Game Development Fundamentals C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Virtual Reality
Google Flutter Android Development iOS Development React Native Swift Dart (programming language) Mobile App Development Kotlin SwiftUI
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting Canva InDesign Character Design Procreate Digital Illustration App
Life Coach Training Neuro-Linguistic Programming Personal Development Personal Transformation Life Purpose Mindfulness Meditation CBT Cognitive Behavioral Therapy Sound Therapy
Entrepreneurship Fundamentals Business Fundamentals Freelancing Business Strategy Startup Business Plan Online Business Blogging Home Business
Digital Marketing Social Media Marketing Marketing Strategy Internet Marketing Google Analytics Copywriting Email Marketing YouTube Marketing Podcasting

DevelopmentSoftware EngineeringJDBC

An introduction to JDBC, JNDI and Spring JDBC with Tomcat

Spring JDBC Support
Rating: 5.0 out of 55.0 (3 ratings)
14 students
Created by Nicolaas Kock
Last updated 12/2021
English
English [Auto]

What you'll learn

  • What is JDBC - Java Database Connectivity
  • What is the difference between regular Java JDBC and Spring JDBC
  • What is a JDBC Connection and an overview of the different types
  • How to set up a JDBC Datasource Connection
  • How to use the Spring JDBC Template to access a relational database
  • Understand JNDI and defining a DB Connection
  • Use Spring Boot to put together an Embedded Tomcat JDBC CRUD Application

Requirements

  • Be familiar with Java Software Development
  • Be familiar with modern Java IDE's such as IntelliJ
  • Be familiar with the concept of a Relational Database
  • A basic understanding of the Maven build tool
  • A basic understanding of Git source control and how to use Github

Description

Data Access with Spring JDBC Support using JNDI in an embedded Tomcat Server .


Course Modules :


  • Course Introduction - JDBC History & Sample User Story

  • Our Spring JDBC Development Environment

  • Connecting to the Database

  • DAO with Traditional JDBC vs Spring JDBC

  • Full CRUD with Spring JDBC Template example

Why learn Spring JDBC ?


  • JDBC use is widespread in large companies worldwide

  • Actively maintained for 20+ years and counting

  • Spring JDBC gives you a “quick win” when dealing with legacy JDBC code

Spring JDBC - Sample User Story


  • As an expatriate living abroad I want access to an online database of all charities (non-profits) that operate in my “home country”.

    • I want to be able to find Charities by their Tax Id

    • I want to be able to search by Charity Category such as Environment or Education

    • I want to be able to search by Charity Program Types


Connecting to the MariaDB with JDBC

Establishing a Connection


  • Using the DriverManager Class

  • Specify the database Connection URLs


Connecting to the MariaDB with Spring:

Define Spring DataSource Bean to get a DB Connection


  • Specify the database properties in application.xml

  • Using the MariaDB DataSource Bean Class


Connecting to the MariaDB :

Using JNDI DataSource Objects to Get a Connection


  • Registering DataSource Object with Naming Service That Uses JNDI API

  • Creating Instance of DataSource Class and Setting its Properties

  • Using Deployed DataSource Object



Connecting to the MariaDB :

Using JNDI to Get a JDBC Connection in Embedded Tomcat


  • Java Main Method to launch Embedded Tomcat

  • Registering DataSource Object with JNDI API

  • Using the registered JNDI DataSource Object

  • Running the JAR with Maven Plugin


Connecting to the MariaDB :

Using Spring App Context to Get a JDBC Connection Tomcat


  • Java Main Method to launch Embedded Tomcat

  • Defining the DataSource in Spring application.xml

  • Adding a context listener to web.xml

  • Retrieve the Spring Data Source bean in the Servlet


Connecting to the MariaDB :

Using Spring Annotation Config in Embedded Tomcat

  • Java Main Method to launch Embedded Tomcat

  • Defining the DataSource in Spring Config Class

  • Retrieve the Spring DataSource bean in the Servlet



Who this course is for:

  • Java Developers who have to write code to access a relational database
  • Java Developers who want to use Spring JDBC for streamlining database access to a relational database

Instructor

Nicolaas Kock
Senior Software Engineer
Nicolaas Kock
  • 3.9 Instructor Rating
  • 65 Reviews
  • 7,136 Students
  • 3 Courses

Accomplished in the full life cycle of software design from requirements definition, prototyping, proof of concept through to implementation, testing, maintenance and system enhancements.

Technical Expertise

Languages:

Java 8, SQL, XML, JavaScript

Frameworks:

Apache Camel, Spring Boot , JDBC, Mockito, Spring Security , Spring Data - JPA, Junit, Redis, RabbitMQ, ActiveMQ

API's:

RAML, REST/Json, Eclipse SWT, JavaBeans, JSP, Servlets, EJB 2.1, Collections, JTA, JDBC, Eclipse Platform SDK

Concepts:

OOA/OOD (UML, Design Patterns, Re-factoring), SOA, Micro Services, Unit Testing, Mock Objects, RUP, Agile, Scrum, TDD

App. Servers:

Jboss AS, IBM Webshpere, Equinox OSGI, BEA Weblogic, Tomcat, OpenCMS

Release Tools Docker, Maven, Bamboo, Subversion, Jira, Ant, CVS, Git, Rational Suite

IDE’s :

IntelliJ IDEA, Eclipse, Spring Tool Suite

Databases Mongo DB, Oracle, MS SQL Server, MySQL

OS:

Windows, Linux



Top companies choose Udemy Business to build in-demand career skills.
NasdaqVolkswagenBoxNetAppEventbrite
  • Udemy Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Investors
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Accessibility statement
Udemy
© 2022 Udemy, Inc.