MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-right

Java

plus Follow
Sign in to follow topics
A high-level, class-based, object-oriented programming language. With Java Virtual Machine (JVM) Java applications are called WORA (Write Once Run Anywhere).

Featured

Quickstart

Java - Mapping POJOs

Learn how to use the native mapping of POJOs using the MongoDB Java Driver....
alt not provided
MongoDBJava

Jan 26, 2023
Maxime Beugnet
Tutorial

Java Aggregation Expression Builders in MongoDB

alt not provided

Oct 24, 2023
Quickstart

Getting Started with MongoDB and Java - CRUD Operations Tutorial

alt not provided

Nov 23, 2023
Java Articles
All Java Articles
Article

Using Atlas Search from Java

alt not provided

Jul 14, 2023
Article

Using MongoDB Change Streams in Java

alt not provided

Apr 04, 2023
Article

MongoDB ORMs, ODMs, and Libraries

MongoDB ODMs, ORMs, and Libraries

Feb 13, 2023
All Java Articles
Java Quickstarts
All Java Quickstarts
Quickstart

Getting Started with MongoDB and Java - CRUD Operations Tutorial

alt not provided

Nov 23, 2023
Quickstart

Java - Mapping POJOs

alt not provided

Jan 26, 2023
Quickstart

Java - Client Side Field Level Encryption

alt not provided

Nov 14, 2023
Java Code Examples
All Java Code Examples
Code Example

How to Implement Client-Side Field Level Encryption (CSFLE) in Java with Spring Data MongoDB

alt not provided

Nov 05, 2023
Code Example

REST APIs with Java, Spring Boot, and MongoDB

alt not provided

Oct 25, 2023
Code Example

Build a MongoDB Spring Boot Java Book Tracker for Beginners

java logo

Mar 22, 2023
Java Tutorials
All Java Tutorials
Tutorial

Getting Started with MongoDB and AWS Codewhisperer

alt not provided

Nov 06, 2023
Tutorial

Serverless Development with AWS Lambda and MongoDB Atlas Using Java

alt not provided

Jul 20, 2023
Tutorial

Java Aggregation Expression Builders in MongoDB

alt not provided

Oct 24, 2023
All Java Content
search
  • Newest
  • Highest Rated
Tutorial

Getting Started with MongoDB and AWS Codewhisperer

...
alt not provided

Nov 06, 2023
Shane McAllister
Code Example
FULL APPLICATION

How to Implement Client-Side Field Level Encryption (CSFLE) in Java with Spring Data MongoDB

In this advanced MongoDB CSFLE Java template, you'll learn all the tips and tricks for a successful deployment of CSFLE with Spring Data MongoDB....
alt not provided

Nov 05, 2023
Maxime Beugnet (+1)
Code Example
FULL APPLICATION

REST APIs with Java, Spring Boot, and MongoDB

Take a shortcut to REST APIs with this Java/Spring Boot and MongoDB example application that embeds all you'll need to get going....
alt not provided

Oct 25, 2023
Maxime Beugnet
Video

Build an AWS Lambda Serverless function with Java and MongoDB

✅ Sign-up for a free cluster at → https://mdb.link/free-hMlUrnx9n84 ✅ Get help on our Community Forums → https://mdb.link/community-hMlUrnx9n84 👋 Hey there, welcome to this tutorial on Serverless Development with AWS Lambda and MongoDB Atlas using Java! If you're looking to build a scalable application without the hassle of managing infrastructure, you're in the right place. 🔍 What You'll Learn 🔍 → Set up a serverless function using AWS Lambda and Java → Connect your Lambda function to MongoDB Atlas → Best practices for dependency management with Gradle → Query data from MongoDB within your serverless function 🛠 Prerequisites 🛠 → AWS Lambda compatible version of Java → MongoDB Atlas instance deployed and configured → Amazon Web Services (AWS) account → Gradle or Maven for dependency management 📝 Key Takeaways 📝 → Cost-Efficiency: Serverless functions auto-scale, saving you from unnecessary infrastructure costs → Elasticity: MongoDB Atlas pairs perfectly with AWS Lambda's serverless architecture → Code Reusability: Learn how to write reusable MongoDB queries in Java → Security: Use environment variables for sensitive information like MongoDB Atlas URI → Deployment: Step-by-step guide to deploy your Java application to AWS Lambda 👀 Sample Code: We'll walk you through boilerplate AWS Lambda code for Java and Gradle tasks for building your project. You'll also learn how to query MongoDB collections based on user input. 🔗 Resources 🔗 ✅ Written article with code snippets → https://mdb.link/article-hMlUrnx9n84 ⏱️ Timestamps ⏱️ 00:00 - Intro 01:38 - Create a New Java Application 02:05 - Adding Gradle Dependencies for AWS Lambda and MongoDB 03:27 - Configure the Fat Jar in Gradle 04:47 - Create an AWS Lambda Function with Java 06:03 - Connect to MongoDB in Java 10:36 - Querying MongoDB in an AWS Lambda Function 13:58 - Build a Fat Jar of the AWS Lambda Application 14:38 - Navigating the AWS Lambda Dashboard 17:18 - Adding Match Criteria to a MongoDB Query 20:03 - A Review of the Project ------ Don't forget to like, share, and subscribe for more awesome tutorials! 🙌 ✅ Subscribe to our channel → https://mdb.link/subscribe...
alt not provided
Play Button

Sep 25, 2023
Tutorial

Serverless Development with AWS Lambda and MongoDB Atlas Using Java

Learn how to build and deploy a serverless function to AWS Lambda that communicates with MongoDB using the Java programming language....
alt not provided

Jul 20, 2023
Nic Raboy
Article

Using Atlas Search from Java

This article delves into using the Atlas Search support built into the MongoDB Java driver...
alt not provided

Jul 14, 2023
Erik Hatcher
Tutorial

Java Aggregation Expression Builders in MongoDB

Learn how expression builders can make coding aggregation pipelines in Java applications faster and more reliable....
alt not provided

May 31, 2023
Graeme Robinson
Tutorial

How to Use Azure Functions with MongoDB Atlas in Java

In this article, you'll learn how to use MongoDB Atlas, a cloud database, when you're getting started with Azure functions in Java....
alt not provided

Apr 14, 2023
Mohit Sharma
Article

Using MongoDB Change Streams in Java

Change streams are an API that allows the user to subscribe to their application to any change in collection, database, or even on the entire deployment. There is no middleware or data polling action to be initiated by the user to leverage this event-driven, real-time data capture feature. Learn how to use change streams with Java in this article. ...
alt not provided

Apr 04, 2023
Rajesh S Nair
Tutorial

Schema Performance Evaluation in MongoDB Using PerformanceBench

Learn how to use PerformanceBench, a Java-based framework application, to carry out empirical performance comparisons of schema design patterns in MongoDB....
schema performance evaluation

Jan 18, 2023
Graeme Robinson