Activate a Spring Boot Profile for a Component
You have defined different Spring Boot profiles for your Java Domain Service service and want to activate one of them when deploying the service through an application composition project in order to apply a specific bunch of configurations.
Apply Best Practices for Code Implementation
In this document you can find some best practice code samples that might be helpful while writing code for Java domain service projects.
Define Entity Mapping (Java)
When working with Domain services mapping between api namespace and domain namespace is often needed, for example :
Define Unit Tests (Java)
You already have an existing Java Domain service, you want to include unit testing for that service.
Disable Security for Services and REST Endpoints
You want to disable security checks for REST endpoints or even the entire service in your project for a specific reason.
Extend MongoDB Repositories for advanced filtering
You have an already existing Java Domain Service and you want to retrieve root entities by complex filter criterias. To achieve this, the generated Repository class has to be extended.
Implement Error Handling for APIs
You have designed API operations with more than just one resoponse to cover both the success and error case. In your implementation code you want to return a specific response body if an error happens.
Integrate GenAI
Integrate Gen AI service into your Java application.
Integrate WatsonX
Integrate IBM WatsonX AI service into your Java application to summarize long texts.
Integrate WebSocket
Set up a WebSocket server in your Domain Java service using Java Stack 2.0 to enable real-time bidirectional communication.
Perform Remote Debugging
To debug your Java Solution, you can debug them in a number of ways. JUnit is one of them, and using the docker images for the events locally is another method. For more info, please see here.
Produce and Consume Events in Java Basic service
In order to integrate an event against Kafka, you need to publish an event to a Kafka topic.
Run Java Services locally by mirrord
You want to run Java services built with the Workbench locally by use of the tool mirrord.
Unit 1: Foundation of Domain Modeling and Implementation
Content on this page reflects earlier versions of the and will be updated soon.
Unit 10: Set up Project for Implementation
Content on this page reflects earlier versions of the and will be updated soon.
Unit 11: Implement Commands and Publish Events
Content on this page reflects earlier versions of the and will be updated soon.
Unit 12: Implement Domain Service
Content on this page reflects earlier versions of the and will be updated soon.
Unit 13: Implement Agent
Content on this page reflects earlier versions of the and will be updated soon.
Unit 14: Implement Integration Service
Content on this page reflects earlier versions of the and will be updated soon.
Unit 15: Implement API operation
Content on this page reflects earlier versions of the and will be updated soon.
Unit 16: Deploy Project
Content on this page reflects earlier versions of the and will be updated soon.
Unit 2: Design Entities
Content on this page reflects earlier versions of the and will be updated soon.
Unit 3: Design Commands
Content on this page reflects earlier versions of the and will be updated soon.
Unit 6: Create API Namespace
Content on this page reflects earlier versions of the and will be updated soon.
Unit 7: API Schemas
Content on this page reflects earlier versions of the and will be updated soon.
Unit 8: Design API Paths and Operations
Content on this page reflects earlier versions of the and will be updated soon.
Use a local Docker Container
You have a Domain Service Java project and want to do local debugging.
Use an existing Spring Boot Application in the Workbench
You already have an existing Spring Boot application which you want to transform to a Project to use the benefits of the Workbench.
Use custom JPA Annotations
You want to create robust data models that reflect the structure of relational databases using the .
Use External Entities
An External Entity is considered a proxy of an entity that is managed by another microservice. Normally, the external entity contains only the most important data that is regularly needed in the context of the aggregate to which the external entity belongs. Because of these specifics, it is handled differently than a usual Entity.
Use the Half-Sync/Half-Async in the Workbench
Your have a service that only offers async communication, but you need to call it synchronously.
Use the SAGA Pattern
You want to design transaction-like behaviour using the SAGA pattern support in your Java Domain Service based project.
View Distributed Tracing
Goal: Enable and configure distributed tracing for REST calls, MongoDB operations, and Kafka events in Java stack 2.0 applications using OpenTelemetry with Jaeger.