Hi Team,

*Test Scenario*:
We are having an issue. I have created Destination dest =
session.createQueue("test-resource");
*Behaviour:*
Message should go to "queue", and if "queue" is not available then *throw
exception*. Is this correct outcome?


*What we experience:*
"test-resource" named topic exists instead of a Queue and when message is
send with - Destination dest = *session.createQueue*("test-resource");
*Behaviour observed:*
*Producer is sending message to topic *instead of raising exception.



While I am expecting the message should go to Topic, its going to Queue and
vice versa. As it seems that the library is checking only for resource
names and does not care whether its a Topic or a Queue;

As it seems the implementation is mis-leading.  Is this an expected
behavior from the library?

Regards,
Abhishek Kumar

Reply via email to