cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Java: Config for Event Messaging with Message Queuing

simondold
Employee
Employee
0 Kudos
852

Hello,

I'm currently learning CAP Java and trying to implement an event messaging service using the Message Queue Message Broker.

Before I can use the broker I have to configure it in my application.yaml file. (as described in the cap documentation)

I did this as follows:

spring:
config.activate.on-profile: default
cds:
messaging.services:
- name: "messaging"
kind: "message-queuing"

Whenever I try to start the application I get the following error:

***************************
APPLICATION FAILED TO START
***************************

Description:

Field messagingService in customer.message_que_send.handlers.CatalogServiceHandler required a bean of type 'com.sap.cds.services.messaging.MessagingService' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.sap.cds.services.messaging.MessagingService' in your configuration.<br>

What am I doing wrong in my config?

Or is there another problem?

Thanks for your help.

View Entire Topic
MohanrajV
Newcomer
0 Kudos

can u give demo for java cap messaging please