Description:
We have a CAP Java application configured to consume events from an internal Event Hub service (using kind: "event-hub" and cds-feature-event-hub:4.0.1).
Setup:
- cds-feature-event-hub added to pom.xml
- application.yml configured with kind: "event-hub" and format: cloudevents
- apm-event-hub service bound with authentication-type: X509_IAS
- apm-cloud-identity (IAS) bound with credential-type: X509_GENERATED
- Webhook URL configured as srv-cert-api URL
- Event handler registered with @on(service = "apm-event-hub", event = "sap.s4.beh.measurementdocument.v1.MeasurementDocument.Created.v1")
Event Hub service instance config (apm-resources mta.yml):
name: apm-event-hub
type: org.cloudfoundry.managed-service
parameters:
service: eventmesh-sap2sap-internal
service-plan: event-mesh-multi-tenant
config:
ceSource:
- /cf-eu10-canary/sap.apm
deploymentRegion: cf-eu10-canary
displayName: event-hub
webhookUrl: https://{srv-cert-api}/messaging/v1.0/eb
We also enabled DEBUG logging for com.sap.cds.feature.messaging.eventhub.
We also tried sending a test POST request to event hub URL using the Event Hub client certificate and the below headers :
ce-specversion - 1.0
ce-type - sap.s4.beh.measurementdocument.v1.MeasurementDocument.Created.v1
ce-Source - /cf-eu10-sharks/sap.apm/{instance Id}
The request returned 202 Accepted, but we still don't see anything in the application logs.
Problem:
Events are successfully published to Event Hub, but the handler is never triggered. No incoming requests are observed at the webhook endpoint. The S/4 event is acknowledged, and no corresponding logs are visible in APM.
Are there any additional configuration steps not covered in the documentation for internal event mesh?
Description:
We have a CAP Java application configured to consume events from an internal Event Hub service (using kind: "event-hub" and cds-feature-event-hub:4.0.1).
Setup:
Event Hub service instance config (apm-resources mta.yml):
name: apm-event-hub
type: org.cloudfoundry.managed-service
parameters:
service: eventmesh-sap2sap-internal
service-plan: event-mesh-multi-tenant
config:
ceSource:
deploymentRegion: cf-eu10-canary
displayName: event-hub
webhookUrl: https://{srv-cert-api}/messaging/v1.0/eb
We also enabled DEBUG logging for com.sap.cds.feature.messaging.eventhub.
We also tried sending a test POST request to event hub URL using the Event Hub client certificate and the below headers :
ce-specversion - 1.0
ce-type - sap.s4.beh.measurementdocument.v1.MeasurementDocument.Created.v1
ce-Source - /cf-eu10-sharks/sap.apm/{instance Id}
The request returned 202 Accepted, but we still don't see anything in the application logs.
Problem:
Events are successfully published to Event Hub, but the handler is never triggered. No incoming requests are observed at the webhook endpoint. The S/4 event is acknowledged, and no corresponding logs are visible in APM.
Are there any additional configuration steps not covered in the documentation for internal event mesh?