I am using java beam pipeline and want to extract topic name from solace. But I am not getting any such function or anything to do the same.
could you give a few more details? Which java beam connector/method are you using?
The topic is in a header of the messages and is accessible via API but I am not sure what context you are receiving the messages in.