Title
An introduction to JDBC, JNDI and Spring JDBC with Tomcat
Spring JDBC Support

What you will 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
Why take this course?
π Spring JDBC Support: An Introduction to JDBC, JNDI, and Spring JDBC with Tomcat
Course Overview: Dive into the world of data access with our comprehensive course on Spring JDBC Support. This course is designed to provide you with a solid understanding of how to connect to databases using JDBC, manage database connections efficiently through JNDI, and integrate these functionalities within an embedded Tomcat server using Spring Framework.
What You'll Learn:
- Course Introduction: Discover the history of JDBC and understand its importance through a real-world user story.
- Our Spring JDBC Development Environment: Get familiar with the tools and environment you'll be working in.
- Connecting to the Database: Learn the fundamentals of establishing and managing database connections.
- DAO with Traditional JDBC vs Spring JDBC: Understand the differences and benefits of using Spring JDBC for data access object (DAO) design.
- Full CRUD with Spring JDBC Template: Master the implementation of Create, Read, Update, and Delete operations with practical examples.
Why Learn Spring JDBC? π Spring JDBC is a robust solution for database connectivity that's:
- Widely Used: JDBC is a staple in many large companies worldwide.
- Actively Maintained: With over 20 years of active maintenance, it's a reliable choice.
- Easy to Integrate: Spring JDBC offers a "quick win" for dealing with legacy JDBC codebases.
Sample User Story: Imagine you're an expatriate living abroad, and you want to access a comprehensive online database of charities operating in your home country. You need to:
- Find charities by their Tax ID.
- Search for charities by category (e.g., Environment or Education).
- Look up charities by program types.
Connecting to MariaDB with JDBC:
- Establishing a Connection: Learn how to use
DriverManager
to establish a direct database connection. - Using Spring for Connection: Discover how to define a Spring
DataSource
bean and use it to manage your database connections.
Connecting to MariaDB with JNDI:
- Using DataSource Objects: Register a
DataSource
object with a JNDI API, making it easier to retrieve database connections.- Launch an embedded Tomcat server from a Java main method.
- Set up the
DataSource
and its properties. - Utilize the registered
DataSource
object for your application's needs. - Deploy your application using Maven.
Connecting to MariaDB in Embedded Tomcat:
- Using Spring Application Context: Learn how to integrate JNDI with Spring by setting up a context listener and retrieving the Spring
DataSource
bean within your servlets.
Using Spring Annotation Config:
- Annotation-based Configuration: Streamline your setup by defining the
DataSource
in a Spring configuration class and accessing it directly within your servlets.
By the end of this course, you'll be equipped with the knowledge to handle database connections securely, efficiently, and with best practices in mind. Whether you're working with traditional JDBC or leveraging the power of Spring JDBC, this course will set you on the path to mastering database interactions within a Tomcat environment. π§ββοΈπ»
Join us and unlock the potential of your data access layer with Spring JDBC! π
Charts
Price

Rating

Enrollment distribution

Coupons
Submit by | Date | Coupon Code | Discount | Emitted/Used | Status |
---|---|---|---|---|---|
- | 29/11/2022 | 73CDE0AD16F9E0E829AB | 100% OFF | 1000/832 | expired |