I have a JMS which calls webservices inside the onMessage. When I run program it works fine but over the time it gives out of memory issue. I suspect some kind of memory leak.
Question 1)If the webservices are not available and if it throws error connecting to webservice will it lead into memory leak. I read on net that if any call within onMessage throws exceptions it leads to memory leak. How can that be possible?
question 2) best approach to call webservice within onMessage.
Any help on this will be appreciated. New to JMS working on college project.