I have this system :
- a jms message is sent
- a mdb receives and calls a method on a stateless session bean A
- A does his work, but it takes a while
- while A is still busy, a new message is sent and received by the mdb who calls again the same method.
How can I avoid that another stateless session bean is being created and that the two processes are done simultaneously ? This process should only be running once and not concurrently.
Any ideas ?
Configure the container so that either the message driven bean or the session bean is in a pool of at most one instances.
See the administrators and developers guide (Available from the Free JBoss Docs link to the right).