satish kumar mandoddi wrote:however if i have more than 500 messages a single bean will crash processing them.
Really? Why is that? Could you post the stack trace from those crashes? I'm surprised that the error occurs after exactly 500 messages as there isn't anything obvious in the code to cause that.
any help/pointers to help me initialize a new bean for new message that is read from the queue will he helpful.
That doesn't sound like a good idea to me; seems to me that you're going to be doing a lot more work and opening yourself up to other unforeseen problems. I think
you should just work on fixing your 500 problem.