Real-Time Fraud Detection in Java with Kafka Streams and Vector Similarity
How Java, Kafka Streams, and MongoDB vector search combine to catch fraud in real time, from rule-based guardrails to behavioral similarity scoring.
At the crossroads of Java innovation and artificial intelligence, the Foojay AI Hub is your gateway to the ever-expanding world of AI-powered Java development. From foundational AI/ML tutorials using pure Java tools to cutting-edge applications like LangChain4j and integration with frameworks like Deep Netts, this is where Java’s runtime robustness and type-safe elegance meet AI’s transformative capabilities.
Whether you’re reconstructing particle trajectories with Java-based AI at Jefferson Lab or building retrieval-augmented generation systems in Spring Boot, our curated content empowers Java developers to harness AI seamlessly, without switching languages.
This is the place to come to for practical guides, webinars like “Java’s Place in the AI Revolution,” success stories, libraries, and more—designed for developers ready to elevate their Java projects with AI’s predictive and generative power.
69 articles on AI and machine learning in Java.
RSS feed
How Java, Kafka Streams, and MongoDB vector search combine to catch fraud in real time, from rule-based guardrails to behavioral similarity scoring.
Ricardo Mello
74 views
Viktoria Evdokimova
209 viewsSomewhere in every coding agent there is an HTTP client. Claude Code, Codex, Cursor, Cline, OpenCode: strip away the terminal UI or the …

Viktoria Evdokimova
346 viewsA detailed report reads like proof. The agent lists the files it touched, names the branch, quotes a commit hash, adds a test count and …

Most Java teams who want a machine learning model in production end up standing up a Python service and calling it over HTTP. That works, …

Miro Wengner
3,838 viewsOver the past two weeks, the field of artificial intelligence has continued its remarkable pace of advancement. As AI becomes increasingly …

Geertjan Wielenga
643 viewsCan an agent initiate a payment, decline a loan, or file a compliance report in a way that's deterministic enough to defend?

Mahendra Rao B
1,758 viewsLearn how to use Spring AI SDK with the Amazon Bedrock AgentCore to build scalable AI-powered applications.

Miro Wengner
8,327 viewsOver the past two weeks, the field of artificial intelligence has continued its remarkable pace of advancement. As AI becomes increasingly …

Miro Wengner
6,910 viewsTwo weeks have passed and a lot have been happening on the field of artificial-intelligence. Two weeks have passed and a lot has been …

Michal Maléř
2,895 viewsx402, ERC-8004, A2A, and The Next Wave of AI Commerce: Do AI Agents Dream of Electric Langoustines? A Blade Runner riff for a world where …

Bruno Borges
3,339 viewsEvery Java developer has been there. Something breaks, and the first instinct is to litter the code with System.out.println(">>> HERE…

Zikani Nyirenda Mwase
2,092 viewsSee how to use machine learning in java by building a Spring Boot API for Spam Detection using the ONNX Runtime for Java.

Miro Wengner
9,495 viewsTwo weeks have passed, and it is time to present a new collection of readings that may shape developments, utilization or ideas in the field …

Miro Wengner
6,236 viewsFirst of all, Happy New Year 2026! This year is designated in the Chinese Calendar as the Year of the Fire Horse (starting on February 17.). …

Nehal Gajraj
2,297 viewsThe days of brittle, monolithic prompts and plug-and-play model swaps are over. Instead, modular prompting, paired with deliberate model …

Ewa Szyszka
3,361 viewsInstead of chasing higher benchmark scores or relying on traditional metrics, CodeRabbit focuses on how AI systems actually perform in live …

Miro Wengner
9,927 viewsFourteen days have passed, and it is time to present a fresh collection of readings that could influence developments in the field of …

Miro Wengner
11,583 viewsFourteen days have passed, and it is time to present a fresh collection of readings that could influence developments in the field of …

Miro Wengner
9,444 viewsA few months ago, I launched the AI Newsletter to provide a minimally biased perspective on the growing challenges surrounding artificial …

Miro Wengner
11,042 viewsThis newsletter focuses on examining how AI enhances productivity through enterprise studies, agentic system architecture, attack vectors, …

Miro Wengner
7,334 viewsFourteen days have passed, and it is time to present a fresh collection of readings that could influence developments in the field of …

Miro Wengner
9,809 viewsFourteen days have passed, and it is time to present a fresh collection of readings that could influence developments in the field of …

Miro Wengner
10,827 viewsFourteen days have passed, and it is time to present a fresh collection of readings that could influence developments in the field of …

Miro Wengner
8,613 viewsThe name “Stochastic AI Agility” suggests that the output of using AI-LLM definitely contributes to the goal, but the impact may not be …

Miro Wengner
6,985 views14 days have passed and it's time for a new batch of readings that could shape developments in the field of artificial intelligence.

Miro Wengner
4,399 viewsThe current newsletter vol.3, brings a collection of valuable articles focusing on challenges that are commonly reported through reported …

Jonathan Ellis
5,322 viewsThe Brokk Power Ranking is a new open-source coding benchmark, featuring 93 tasks from large, real-world codebases.

Miro Wengner
9,190 viewsThe JC-AI Newsletter Vol.2 brings again a very interesting collection of articles worth considering.

A N M Bazlur Rahman
4,115 viewsLearn how to build secure AI applications using LangChain4j guardrails in Spring Boot. Implement input/output validation, prevent prompt …
For Java developers, CodeRabbit offers specialized analysis that understands Java syntax, best practices, and common patterns.

Miro Wengner
15,143 viewsAfter brainstorming, our Java Champion Education group agreed to create a newsletter with a 14 days cadence.

Tim Kelly
4,465 viewsLet's use MongoDB with LangChain4j to create a simple RAG application. LangChain4j abstracted away a lot of the steps along the way, from …
David Parry
36,950 viewsGet hands-on experience with the exact code examined in this article, along with exercises, debugging techniques, and best practices for …

Karin Lauria
2,664 viewsWe’re in the middle of a fundamental change in how enterprise software works. In the next decade, your database will become your AI.

Raphael De Lio
8,801 viewsLearn how I improved zero-shot classification in Deep Java Library (DJL) by fixing token_type_ids support, optimizing logit handling, and …

Jennifer Reif
6,641 viewsIn this blog post, we'll explore the different layers of RAG, including vector RAG, graph RAG, and agents.

Jennifer Reif
10,213 viewsExplore a few introductory concepts around Retrieval Augmented Generation (RAG), why it exists and the problems it solves.

Zoran Sevarac
8,895 viewsJefferson Lab is leveraging Java-based AI to overcome one of the most computationally intense challenges in modern science.

A N M Bazlur Rahman
3,356 viewsMy Journey Creating an AI-Powered Form Filler with RAG, LangChain4j, and Ollama

This first online Foojay Webinar highlights Java's place in the AI revolution, focusing on exploring AI/ML using pure Java tools.

This first online Foojay Webinar will highlight Java's place in the AI Revolution, focusing on Exploring AI/ML Using Pure Java Tools.

Experience AI technology in Jakarta EE and MicroProfile applications that run on Open Liberty by using LangChain4j APIs.

Frank Delporte
6,931 viewsIn this Foojay podcast, we enter the world of mathematics by discussing Vectors and how they are crucial for AI and machine learning.

In this episode you'll hear Simon Martinelli, Nicolas Fränkel, Marcus Hellberg, Rick Ossendrijver, and Abdel Sghiouar.

On Tuesday, May 14th, the Foojay Podcast went live at the JCON conference in Cologne, Germany, to talk with speakers and visitors about all …

Jansen Ang
12,207 viewsDiscover how to build a smart home assistant using Langchain4j and Raspberry Pi, featuring capabilities such as question-answering with RAG, …

Frank Delporte
21,637 viewsThe way we search for information and develop software has changed a lot since then as the use of Artificial Intelligence suddenly became a …

Guillaume Laforge
6,554 viewsLately, for my Generative AI powered Java apps, I've used the Gemini multimodal large language model from Google. But there's also Gemma, …

Frank Delporte
19,950 viewsLet's use an existing documentation set as the data for a ChatGPT-like application, created with JavaFX and LangChain4J.

Soham Dasgupta
6,387 viewsRecap of spending the day in AI and Machine Learning Developer Room at FOSDEM’24!

Johannes Bechberger
5,770 viewsLearn about the website that gives an overview of JFR events, with descriptions from the OpenJDK, their properties, examples, …

Marit van Dijk
4,349 viewsDon’t miss the online JetBrains AI launch event, where we'll release our AI-powered coding companion, JetBrains AI Assistant.

Marit van Dijk
3,301 viewsIn this session, Anton Arhipov will demonstrate the capabilities of AI Assistant in IntelliJ IDEA. You will learn how the tool helps you …

Steve Poole
3,856 viewsAI and Java what is there?, what can it do?, what do we want it to do?, Asking for your input readers. Share your thoughts at Foojay.io

Simon Verhoeven
14,121 viewsThorough, practical examples using a new & rapidly evolving tool. Pro or contra, it's a very worthwhile read.

Frank Delporte
3,638 viewsThe first week of October, the 20th edition of Devoxx took place in Antwerp, Belgium. I got the opportunity to walk around with a microphone …

Jonathan Ellis
13,006 viewsJVector is a pure Java embedded vector search engine that powers DataStax Astra and is being added to Apache Cassandra.

Frank Delporte
4,092 viewsEvery conference has several talks about these technologies, and on Foojay, you can find multiple posts about it. Let's take a look at it …

Antonio Perrone
5,782 viewsWe explore image generation with Quarkus and OpenAI using the new REST Client Reactive to invoke the OpenAI DALL.E API.

Geoffrey De Smet
8,765 viewsTimefold continues OptaPlanner, open source project optimizing operational planning, saving thousands of organizations time, money, …

Denis Magda
44,574 viewsLearn how to integrate the ChatGPT engine into your Java applications in a scalable way by sending prompts to the engine only when …

Zoran Sevarac
5,320 viewsFor more complex deep learning challenges, more data, and need better performance, take a look at Deep Netts Professional Edition.

Zoran Sevarac
6,185 viewsLearn how to make it easy to quickly start using deep learning and to integrate deep learning into existing Java applications.

Gagik Gavalian
5,053 viewsWe use the Deep Netts library to implement our neural networks to do track classification, using Multi-Layer Perceptron (MLP) Neural …
Learn about Deep Netts, a lightweight Java-native library, easy to learn, and solves many technical challenges related to ML.

Tremendous potential for Deep Netts in the drug discovery pipeline and it is necessary to share its existence with the scientific community!

Nguyen Pham
4,189 viewsThe goal of this research is to sensitize small and medium-sized enterprises (SMEs) to the topic of AI with the help of Open Source Tools.

Kevin Farnham
3,752 viewsI spoke with Fabiane recently about Tail Target, its objectives, the theory behind it, and the underlying technology. Read on!
Zoran Sevarac
4,112 viewsSo you're a Java developer and you want to do some machine learning. Meet JSR 381, a standard Java API for Visual Recognition using machine …