I have a Message Driven Bean. And this MDB 'onMessage' will be invoked very frequently since there is a producer who produces traffic to it.
In the MDB, i need to update to database traffic table whenever there is a message arrived. But i got "maximum DB connection" , perhaps because there are many stateless bean instances created and it requires a connection to database to do this update.
Increase maximum connection cannot ensure the bug fixed. Could you help me how to solve this issue?