# \#java

**URL:** https://community.cumulocity.com/tag/java/685.md

[Latest](https://community.cumulocity.com/latest.md) · [Categories](https://community.cumulocity.com/categories.md) · [Tags](https://community.cumulocity.com/tags.md)

---

## [Jump-Start your Cumulocity Microservice Project in Java - 2026 Edition](https://community.cumulocity.com/t/jump-start-your-cumulocity-microservice-project-in-java-2026-edition/14168)

<div class="topic-metadata">

**Author:** [@Alexander\_Pester](https://community.cumulocity.com/u/Alexander_Pester)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 2:41pm UTC](https://community.cumulocity.com/t/jump-start-your-cumulocity-microservice-project-in-java-2026-edition/14168 "2026-01-09T14:41:59Z")

</div>

Introduction Four years ago, I introduced the cumulocity-microservice-archetype - a Maven archetype that helps developers quickly scaffold Cumulocity microservice projects. Since then, I’ve gathered feedback from the c…

---

## [Java MS SDK MicroserviceSettingsService vs Tenant Options](https://community.cumulocity.com/t/java-ms-sdk-microservicesettingsservice-vs-tenant-options/13613)

<div class="topic-metadata">

**Author:** [@Michael\_Voigt2](https://community.cumulocity.com/u/Michael_Voigt2)\
**Replies:** 2\
**Last updated:** [November 4, 2025, 2:11pm UTC](https://community.cumulocity.com/t/java-ms-sdk-microservicesettingsservice-vs-tenant-options/13613 "2025-11-04T14:11:21Z")

</div>

Hi guys, I need some help in understanding the behaviour of tenant options together with the MicroserviceSettingsService of the Java MS SDK (2025.78.0). If I define a setting in the settings array in the cumulocity.jso…

---

## [Java MS SDK IdentityApi inconsistency](https://community.cumulocity.com/t/java-ms-sdk-identityapi-inconsistency/12811)

<div class="topic-metadata">

**Author:** [@Michael\_Voigt2](https://community.cumulocity.com/u/Michael_Voigt2)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 1:43pm UTC](https://community.cumulocity.com/t/java-ms-sdk-identityapi-inconsistency/12811 "2025-10-14T13:43:11Z")

</div>

Hi guys, we’re currently working with the IdentityAPI of the Java MS SDK and found an inconsistency between the API Spec Cumulocity - OpenAPI and the implementation in the SDK. The API Spec for “Retrieve all external I…

---

## [How to get the version of the Microservice programmatically](https://community.cumulocity.com/t/how-to-get-the-version-of-the-microservice-programmatically/12700)

<div class="topic-metadata">

**Author:** [@Michael\_Voigt2](https://community.cumulocity.com/u/Michael_Voigt2)\
**Replies:** 6\
**Last updated:** [September 3, 2025, 8:22am UTC](https://community.cumulocity.com/t/how-to-get-the-version-of-the-microservice-programmatically/12700 "2025-09-03T08:22:09Z")

</div>

Hi, is there a way to programmatically retrieve of the version of a Java Microservice? It is specified in the “version” field in the cumulocity.json but how can I “read” that in the same microservice’s Java code? The mi…

---

## [Fetch users Data from tenant using java microservice using cumulocity sdk](https://community.cumulocity.com/t/fetch-users-data-from-tenant-using-java-microservice-using-cumulocity-sdk/4308)

<div class="topic-metadata">

**Author:** [@jkpatil1010](https://community.cumulocity.com/u/jkpatil1010)\
**Replies:** 7\
**Last updated:** [June 20, 2024, 7:15am UTC](https://community.cumulocity.com/t/fetch-users-data-from-tenant-using-java-microservice-using-cumulocity-sdk/4308 "2024-06-20T07:15:59Z")

</div>

Hi, i want to develop a service that reads all the users data from the tenant, ex: user email, tenatant url, lastlogin time etc. as of now i am calling api using rest template in java, but i want to use cumulocity sdk…

---

## [Easily run your java microservice locally with go-c8y-cli](https://community.cumulocity.com/t/easily-run-your-java-microservice-locally-with-go-c8y-cli/1300)

<div class="topic-metadata">

**Author:** [@Cyril\_Poder](https://community.cumulocity.com/u/Cyril_Poder)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 12:44pm UTC](https://community.cumulocity.com/t/easily-run-your-java-microservice-locally-with-go-c8y-cli/1300 "2024-02-12T12:44:47Z")

</div>

Introduction A recurrent question I get is how the hell can we easily run a microservice locally. Regardless of the technology, one needs to provide the following environment variables to the microservice (given it is…

---

## [Need to calculate average of measurement in java microservice](https://community.cumulocity.com/t/need-to-calculate-average-of-measurement-in-java-microservice/3484)

<div class="topic-metadata">

**Author:** [@jkpatil1010](https://community.cumulocity.com/u/jkpatil1010)\
**Replies:** 5\
**Last updated:** [January 31, 2024, 4:35pm UTC](https://community.cumulocity.com/t/need-to-calculate-average-of-measurement-in-java-microservice/3484 "2024-01-31T16:35:35Z")

</div>

Hi, we have option to calculate measurement average in Epl, as using com.apama.aggregates.avg; using com.apama.aggregates.last; using com.apama.cumulocity.Measurement; monitor HourlyAvgMeasurementDeviceContext { ev…

---

## [Why are my tenant subscriptions working locally but not in cloud](https://community.cumulocity.com/t/why-are-my-tenant-subscriptions-working-locally-but-not-in-cloud/3606)

<div class="topic-metadata">

**Author:** [@stefan.reichmann](https://community.cumulocity.com/u/stefan.reichmann)\
**Replies:** 3\
**Last updated:** [November 20, 2023, 11:26am UTC](https://community.cumulocity.com/t/why-are-my-tenant-subscriptions-working-locally-but-not-in-cloud/3606 "2023-11-20T11:26:44Z")

</div>

Product/components used and version/fix level: Cumulocity IoT Hosted, BE v 1017.0.289, JavaSDK v 1017.0.375 Detailed explanation of the problem: We have a Microservice that is on Multitenant context. When using the JavaS…

---

## [How to connect to database using cumulocity json, In java spring boot application](https://community.cumulocity.com/t/how-to-connect-to-database-using-cumulocity-json-in-java-spring-boot-application/3071)

<div class="topic-metadata">

**Author:** [@jkpatil1010](https://community.cumulocity.com/u/jkpatil1010)\
**Replies:** 3\
**Last updated:** [October 18, 2023, 12:57pm UTC](https://community.cumulocity.com/t/how-to-connect-to-database-using-cumulocity-json-in-java-spring-boot-application/3071 "2023-10-18T12:57:18Z")

</div>

Hi, i want to connect postgres database in inorder to read some data, currently i am connecting to database using application.properties file. But I need to connect to data base using cumulocity json file. please prov…

---

## [Java based connectivity codec for transforming messages with regular expressions](https://community.cumulocity.com/t/java-based-connectivity-codec-for-transforming-messages-with-regular-expressions/82)

<div class="topic-metadata">

**Author:** [@system](https://community.cumulocity.com/u/system)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 10:44am UTC](https://community.cumulocity.com/t/java-based-connectivity-codec-for-transforming-messages-with-regular-expressions/82 "2018-03-07T10:44:39Z")

</div>

Java based Connectivity Codec for performing regular expression operations on messages for use with Apama. Description Applies a regular expression on the given event map data. For more information on the Apama Connec…

---

## [Java based Connectivity Transport for reading and writing to files for use with Apama](https://community.cumulocity.com/t/java-based-connectivity-transport-for-reading-and-writing-to-files-for-use-with-apama/5080)

<div class="topic-metadata">

**Author:** [@system](https://community.cumulocity.com/u/system)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 10:44am UTC](https://community.cumulocity.com/t/java-based-connectivity-transport-for-reading-and-writing-to-files-for-use-with-apama/5080 "2018-03-07T10:44:58Z")

</div>

A Java based connectivity transport for reading/writing files Apama community website. Description File Transport Connectivity Plugin. Will operate on files line by line, either sending each line as a message toward…

---

## [Java based Connectivity Codec for converting to or from CSV for use with Apama](https://community.cumulocity.com/t/java-based-connectivity-codec-for-converting-to-or-from-csv-for-use-with-apama/3306)

<div class="topic-metadata">

**Author:** [@system](https://community.cumulocity.com/u/system)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 10:44am UTC](https://community.cumulocity.com/t/java-based-connectivity-codec-for-converting-to-or-from-csv-for-use-with-apama/3306 "2018-03-07T10:44:51Z")

</div>

A Java based connectivity codec for transforming CSV data Description Converts the given event map data to the CSV format (and vice versa). For more information on the Apama Connectivity Framework, as well as Apama in…
