Author: Tim Kelly Original post on Foojay: Read More Table of Contents What is BSON? Why not just JSON? BSON vs. JSONCommon BSON data types (and their Java equivalents)BSON and MongoDB internalsSetup and project structureBSON data types and document creation Nested fields and arrays Why use nested structures? Raw BSON manipulationQuerying with BSONAggregation with BSONPOJO mapping: Bridging Java and BSON …
Read More »Classic Layout
How to send prompts in bulk with Spring AI and Java Virtual Threads
Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending them one by one, you want to do it in …
Read More »How Deep Netts and Java AI Transformed Particle Physics at US DoE, Jefferson Lab
Author: Zoran Sevarac Original post on Foojay: Read More At the intersection of nuclear physics and artificial intelligence, Jefferson Lab is leveraging Java-based AI to overcome one of the most computationally intense challenges in modern science: reconstructing particle trajectories from high-frequency electron scattering experiments. Each second, over 16,000 interactions are recorded as particles pass through a complex array of drift …
Read More »Join the NLJUG JSpring Conference on Thursday, June 5
Author: Martin Smelt Original post on Foojay: Read More Join the Dutch Java community at J-Spring 2025, the premier Java conference in the Netherlands, taking place Thursday, June 5th at Jaarbeurs Utrecht. This international event, organized by the NLJUG (Dutch Java User Group), will be bigger than ever before, offering attendees a comprehensive program featuring world-class speakers from across the globe. Dive deep into …
Read More »How to Deploy a Vaadin Application as a WAR on Tomcat 11
Author: Simon Martinelli Original post on Foojay: Read More Table of Contents Step 1: Download Tomcat 11Step 2: Create a New Vaadin ProjectStep 3: Adjust the pom.xmlStep 4: Update the Spring Boot Application ClassStep 5: Build the Application for ProductionStep 6: Deploy the WAR to TomcatConclusion If you want to run a Vaadin application on an external servlet container like Apache Tomcat …
Read More »What is RAG, and How to Secure It
Author: Brian Vermeer Original post on Foojay: Read More Table of Contents Why use RAGHow RAG Works 1. Retrieval 2. Generation Security implications of using RAG Prompt injection through retrieved content Data poisoning Access control gaps in retrieval Leaking PII to third-party models Caching risks and session bleed Contradictory or low-quality information Proactive and remediation strategies for securing RAG Sanitize …
Read More »Building a Real-Time AI Fraud Detection System with Spring Kafka and MongoDB
Author: Tim Kelly Original post on Foojay: Read More Table of Contents What we are buildingPrerequisitesCreate our MongoDB databaseCreate a Vector Search indexCreate a Spring applicationSetting up configuration MongoDB configuration Spring AI configuration Kafka configuration Generate our synthetic customer profiles The customer model Customer seeding How the sample customers are structured The transaction model Generating random transactions How do we …
Read More »Foojay Live @ JCON Köln
Author: Frank Delporte Original post on Foojay: Read More Today and tomorrow, we will be at the JCON Conference in Köln, Germany. We have set up an interview booth to talk to speakers and visitors about all things Java. Please follow us on LinkedIn and/or YouTube for the live interviews. Just like last year, these interviews will be grouped into …
Read More »Building Autopo: An AI-powered Open Source Application to Manage .po Files
Author: Andrea Vacondio Original post on Foojay: Read More Table of Contents Discovering localization Gettext Building a localization workflowIntroducing ZanataPain points with Zanata Pain points gradually became real blockers The Side ProjectFrom side project to pet project Requirements Building the Pet From jgettext to Potentilla AtlantaFX The AI Role Autopo in ActionTakeaways As a developer today, you’ve almost certainly encountered …
Read More »GenAI blood, sweat, and tears: Loading data to Pinecone
Author: Jennifer Reif Original post on Foojay: Read More Table of Contents Getting startedIssue #1: APIs, SDKs, and rapid changeIssue #2: ConfigIssue #3: JSON formatIssue #4: Loading data to Pinecone 1. Metadata keys Alternative embeddings – Book descriptionsWrapping up!Resources As someone who is pretty familiar with relational and graph databases, I wanted to dig a little deeper into vector databases …
Read More »