I have created an MDB to act as a simulator which reads a message from a queue and then write a response to a different queue. To control this simulator i defined some public static methods in the MDB to stop reading/writing and to know if it's active or not.
I don't know if this is wrong since i didn't suffer from any problems yet. However, I can't find a good way to programmatically control the MDB.
Any ideas?