CDM setup in react app - "method not found" error

Hi,

I am trying to get my CDM model to work in the react app. The setup for relationships I already did, see here, and it works.
In the preview app control (PAC) the CDM works fine, but within the react app it doesn’t.

What I did was following the steps mentioned here. My appsetup.ts now has the following changes:

image
(for createCdmMiddlewares(createEngineMiddlewares()), it won’t let me pass createEngineMiddlewares() as an argument. but i think it can also be skipped, as it is still passed as an argument internally!?)

When running my react app, the CDM overview always appears as “disabled”:
image

And I have the following error in the console:

core/application Error while loading activity (ID 2) 
...
Object { code: -32601, message: "method not found" }

What could I be missing here?

me neither can find anything wrong in your screenshot.
what i can think of is that maybe something in the data-service setup is missing. did you already checked the docs about A12 Data Services - CDD

Thank you for pointing that out.

I needed to add

spring.artemis.mode=embedded
spring.artemis.embedded.enabled=true

mgmtp.a12.dataservices.cdd.dirtyDocuments.producer.enabled=true
mgmtp.a12.dataservices.cdd.dirtyDocuments.consumer.enabled=true

to application.properties.
Additionally, I needed to add LIST_CDDS,LOAD_DOCUMENT_GRAPH to the comma-separated list of mgmtp.a12.dataservices.jsonRpc.allowedOperations=...