I am trying to listen to an EMS server as follows:
Topic clientTopic = _subscriberSession.CreateTopic(topicName);
TopicSubscriber clientTopicSubscriber = _subscriberSession.CreateSubscriber(clientTopic, selector, true);
clientTopicSubscriber.MessageHandler += new EMSMessageHandler(test_MessageHandler);
However, when i do this, an exception is thrown:
TIBCO.EMS.InvalidDestinationException: 'Not allowed to create destination'
I know that the EMS has been configured to disable queue and topic creation. However I'm only trying to listen to the topic. I've tried "CreateConsumer" as well. I do not understand what is going wrong. I am only trying to listen and not create a queue or topic. Do you guys know whats wrong?
Additionally, the Topic i'm trying to listen to exists and has been verified.