Message type for Object type (JAVA)

Hi @RicsNsuka ,
Welcome to the Solace Community! I hope you have a great first experience with PubSub+.
With Spring Cloud Stream you can use StreamBridge to send messages from anywhere that you need to. Since you’re new to Spring Cloud Stream I’d suggest taking a little bit of time to read through their docs (their reference guide) on the Spring site, and also checking out a few codelabs that we have available.
Spring Cloud Stream Basics Spring Cloud Stream - Beyond the Basics (Section 6 in this one covers StreamBridge) It sounds like you’re trying to do something similar to @mdavis does in this repo where his MessagingService has a send method that his EndpointController calls on demand. scs-sample/src/main/java/com/damaru/scs/scssample at master · damaru-inc/scs-sample · GitHub
Hope that helps!