Hi,
I am facing the following issue.
I have a Message driven bean, which accepts messages of type TextMessage. However, just for
testing, i wrote some Client which posts the msg in the queue being listened to by the MDB, and i posted MapMessage from that client.
Now, it fails with a class cast exception but the problem is that the messages just keep on coming, one after the other, after a certain interval of time, and exceptions keep getting thrown on the console, probably because the subscription is durable.
Basically, i want to get rid of the exceptions by making the subscription as non-durable(if it can be made).
Where does the Server store that it needs to post this message in the queue again and again, so that probably i can remove the setting from there.
Or is there any other way i can stop getting the msg in the MDB.
Also, i would like to change minimal code, because its part of the application, like i would not like to modify the existing MDB to filter out the messages.
I am using Weblogic 10.
Thanks a lot,