From 903fe8360ffe34ca7ef8d441e49418b628958273 Mon Sep 17 00:00:00 2001 From: Raphael DALMON Date: Wed, 28 Jan 2026 11:09:12 +0100 Subject: [PATCH] docs: update Java ILP client artifact --- documentation/ingestion/clients/java.md | 31 +++++++++++-------------- src/components/InsertDataJava/index.tsx | 20 +++++----------- 2 files changed, 19 insertions(+), 32 deletions(-) diff --git a/documentation/ingestion/clients/java.md b/documentation/ingestion/clients/java.md index f050fd3e0..fe04e7f73 100644 --- a/documentation/ingestion/clients/java.md +++ b/documentation/ingestion/clients/java.md @@ -11,8 +11,6 @@ import TabItem from "@theme/TabItem" import CodeBlock from "@theme/CodeBlock" -import InterpolateReleaseData from "../../../src/components/InterpolateReleaseData" - import { RemoteRepoExample } from "@theme/RemoteRepoExample" :::note @@ -25,7 +23,8 @@ For embedded QuestDB, please check our ::: -The QuestDB Java client is baked right into the QuestDB binary. +The QuestDB Java client is distributed as a separate Maven artifact +(`org.questdb:client`). The client provides the following benefits: @@ -58,31 +57,27 @@ Here is a list of known incompatible JDKs: ## Quick start -Add QuestDB as a dependency in your project's build configuration file. +Add the QuestDB Java client as a dependency in your project's build configuration file. - ( - - {` + + {` org.questdb - questdb - ${release.name} + client + 1.0.0 `} - - )} - /> + - ( - - {`compile group: 'org.questdb', name: 'questdb', version: '${release.name}'`} - )} /> + + {`implementation 'org.questdb:client:1.0.0'`} + + + The code below creates a client instance configured to use HTTP transport to connect to a QuestDB server running on localhost, port 9000. It then sends two diff --git a/src/components/InsertDataJava/index.tsx b/src/components/InsertDataJava/index.tsx index 7c8012daf..feeeb4b0c 100644 --- a/src/components/InsertDataJava/index.tsx +++ b/src/components/InsertDataJava/index.tsx @@ -1,15 +1,10 @@ import React from "react" -import InterpolateReleaseData from "../InterpolateReleaseData" import CodeBlock from "@theme/CodeBlock" -import { Release } from "../../utils" const InsertDataJava = () => { return ( - { - return ( - - {` + + {` import io.questdb.cutlass.line.LineTcpSender; import io.questdb.network.Net; import io.questdb.std.Os; @@ -20,13 +15,13 @@ public class LineTCPSenderMain { org.questdb - questdb - ${release.name} + client + 1.0.0 Gradle: - compile group: 'org.questdb', name: 'questdb', version: '${release.name}' + implementation 'org.questdb:client:1.0.0' */ public static void main(String[] args) { @@ -51,10 +46,7 @@ public class LineTCPSenderMain { } } `} - - ) - }} - /> + ) }