I am using jboss5.1, EJB3.0 and standalone java application as a 'subscriber'
I have mechanism which publish messages via jms Topic to subscribers. when subscriber get the message it need to do few operations until it will start listening again for a future messages.
the problem is that if a subscriber get a message from the Topic it will need to get back fast enough to listen for further messages(else it will miss it in a case another message will be published)
So my solution is to putThread.sleep() for couple of seconds inside the ejb publisher.
This way ill make sure that all subscribers went back to listen before a new message will be published.
I know that using Thread inside EJB'S is not recommended.
any solution for that scenario?
thanks, ray.