Hi,
In our application we are using
Jboss Message Queue and the MDB's for message processing .
We have a requirement like when jboss shuts down the messages should be deleted from the queue so that next time when jboss starts there should not be any old messages in the queue.
Is there any configuartion in jboss ?
Please suggest me the way in which i can do this?
If no configuartions present then please suggest me whether we can do it using EJB @Service destroy method?
We are using EJB Services for instantiating MDB's by pushing some dummy messages.
@Service
@Management(ServiceOneManagement.class)
void create() throws Exception;
Can we use void destroy(); method to delete the messages?